diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-08 18:44:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-12-08 18:44:43 +0000 |
commit | 8baf9790026651489d04c214c3b0001c696c54df (patch) | |
tree | 77af02b47bea9455b75ded30aed6969af31d0ec3 /nuttx/arch/z80/src/ez80/ez80_timerisr.c | |
parent | ac5415b0fe06eeb5d0766abaf2fcc2db07cd6f89 (diff) | |
download | px4-nuttx-8baf9790026651489d04c214c3b0001c696c54df.tar.gz px4-nuttx-8baf9790026651489d04c214c3b0001c696c54df.tar.bz2 px4-nuttx-8baf9790026651489d04c214c3b0001c696c54df.zip |
ez80f910200zco port
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1436 42af7a65-404d-4744-a932-0658087f49c3
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; } /*************************************************************************** |