diff options
Diffstat (limited to 'nuttx/arch/z80/src/ez80/ez80_timerisr.c')
-rw-r--r-- | nuttx/arch/z80/src/ez80/ez80_timerisr.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/nuttx/arch/z80/src/ez80/ez80_timerisr.c b/nuttx/arch/z80/src/ez80/ez80_timerisr.c index 57a42cf01..60e46322b 100644 --- a/nuttx/arch/z80/src/ez80/ez80_timerisr.c +++ b/nuttx/arch/z80/src/ez80/ez80_timerisr.c @@ -93,10 +93,17 @@ int up_timerisr(int irq, chipreg_t *regs) reg = inp(EZ80_TMR0_CTL); #endif - /* Process timer interrupt */ + /* Process timer interrupt */ - sched_process_timer(); - return 0; + sched_process_timer(); + + /* Architecture specific hook into the timer interrupt handler */ + +#ifdef CONFIG_ARCH_TIMERHOOK + up_timerhook(); +#endif + + return 0; } /*************************************************************************** |