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:
Sebastian Huber
2020-10-10 14:00:37 +02:00
parent 6ca00e61dc
commit e1a0e0c308
6 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -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;
}