mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-24 15:59:35 +08:00
grlib: Add and use irqmp_has_timestamp()
Replace leon3_irqmp_has_timestamp() with irqmp_has_timestamp() and move it to grlib.h. Close #4128.
This commit is contained in:
@@ -126,7 +126,7 @@ static rtems_device_driver tlib_clock_find_timer(void)
|
||||
volatile struct irqmp_timestamp_regs *irqmp_ts;
|
||||
|
||||
irqmp_ts = &LEON3_IrqCtrl_Regs->timestamp[0];
|
||||
if (leon3_irqmp_has_timestamp(irqmp_ts)) {
|
||||
if (irqmp_has_timestamp(irqmp_ts)) {
|
||||
priv.ops = &ops_irqamp;
|
||||
return RTEMS_SUCCESSFUL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user