mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-20 03:05:47 +08:00
bsps: Avoid unused argument in clock interrupt
Pass the parameter of the clock interrupt handler to Clock_driver_support_at_tick() and Clock_driver_timecounter_tick(). This makes it possible to use the interrupt handler argument in clock drivers. Use the interrupt handler provided by Clock_driver_support_install_isr() to avoid local delarations of Clock_isr(). Update #4862.
This commit is contained in:
@@ -433,10 +433,10 @@ static const struct ops ops_irqamp = {
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define Clock_driver_timecounter_tick() \
|
||||
#define Clock_driver_timecounter_tick(arg) \
|
||||
tlib_clock_timecounter_tick()
|
||||
|
||||
#define Clock_driver_support_at_tick() \
|
||||
#define Clock_driver_support_at_tick(arg) \
|
||||
do { \
|
||||
rtems_device_driver ret; \
|
||||
ret = tlib_clock_at_tick(); \
|
||||
|
||||
Reference in New Issue
Block a user