diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2009-06-06 01:54:11 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2009-06-06 01:54:11 +0000 |
commit | 69e9eacf388a39f3f3303178037debd79aa90635 (patch) | |
tree | 2f194e11c1167456abc1c7779009b800eebab1ee /nuttx/arch/arm/src/str71x/str71x_timerisr.c | |
parent | 9f0db2be27a67792803ffd6a0071cba6b53e4566 (diff) |
Need to set UART interrupt priority
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@1854 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/arch/arm/src/str71x/str71x_timerisr.c')
-rw-r--r-- | nuttx/arch/arm/src/str71x/str71x_timerisr.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/nuttx/arch/arm/src/str71x/str71x_timerisr.c b/nuttx/arch/arm/src/str71x/str71x_timerisr.c index ad4565cb95..1777be1598 100644 --- a/nuttx/arch/arm/src/str71x/str71x_timerisr.c +++ b/nuttx/arch/arm/src/str71x/str71x_timerisr.c @@ -55,6 +55,14 @@ * Definitions ****************************************************************************/ +/* Configuration */ + +#ifndef CONFIG_TIM_PRI +# define CONFIG_TIM_PRI 1 +#elif CONFIG_TIM_PRI <= 1 && CONFIG_TIM_PRI >15 +# error "CONFIG_TIM_PRI is out of range" +#endif + /* The desired timer interrupt frequency is provided by the definition * CLK_TCK (see include/time.h). CLK_TCK defines the desired number of * system clock ticks per second. That value is a user configurable setting @@ -189,9 +197,9 @@ void up_timerinit(void) putreg16(OCAR_VALUE, STR71X_TIMER0_OCAR); putreg16(0xfffc, STR71X_TIMER0_CNTR); - /* Set the IRQ interrupt priority */ + /* Set the timer interrupt priority */ - up_prioritize_irq(STR71X_IRQ_SYSTIMER, 1); + up_prioritize_irq(STR71X_IRQ_SYSTIMER, CONFIG_TIM_PRI); /* Attach the timer interrupt vector */ |