diff options
Diffstat (limited to 'chip/g/hwtimer.c')
-rw-r--r-- | chip/g/hwtimer.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chip/g/hwtimer.c b/chip/g/hwtimer.c index 91dba78c40..267cf395cf 100644 --- a/chip/g/hwtimer.c +++ b/chip/g/hwtimer.c @@ -178,14 +178,13 @@ int __hw_clock_source_init(uint32_t start_t) return GC_IRQNUM_TIMELS0_TIMINT1; } -#ifdef CONFIG_HW_SPECIFIC_UDELAY /* * Custom chip/g udelay(), guaranteed to delay for at least us microseconds. * * Lost time during timer wrap is not taken into account since interrupt latency * and __hw_clock_source_irq() execution time likely exceeds the lost 3us. */ -void udelay(unsigned us) +__override void udelay(unsigned us) { unsigned t0 = __hw_clock_source_read(); @@ -210,4 +209,3 @@ void udelay(unsigned us) while (__hw_clock_source_read() - t0 <= us) ; } -#endif /* CONFIG_HW_SPECIFIC_UDELAY */ |