From 8baf9790026651489d04c214c3b0001c696c54df Mon Sep 17 00:00:00 2001 From: patacongo Date: Mon, 8 Dec 2008 18:44:43 +0000 Subject: ez80f910200zco port git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1436 42af7a65-404d-4744-a932-0658087f49c3 --- nuttx/arch/z80/src/ez80/ez80_timerisr.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'nuttx/arch/z80/src/ez80/ez80_timerisr.c') 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; } /*************************************************************************** -- cgit v1.2.3