summaryrefslogtreecommitdiff
path: root/src/stm/ao_timer.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-06-26 23:11:10 -0700
committerKeith Packard <keithp@keithp.com>2012-06-26 23:11:10 -0700
commitf1ae622eff60e05c1f5d8f822a3cf6a85750c6cc (patch)
tree9652e24ae8a4e56a47b463419356da356f7ade7f /src/stm/ao_timer.c
parent936ecad62596f34773afb7460b10f63df7d0896d (diff)
altos: Optimize FEC encode and decode
Integrate interleaving, CRC and padding within the decode/encode functions. Provide for ISR priorities so that the 1120 RX interrupt takes precedence over the other interrupts or we risk losing bits. Optimize the viterbi decoder a bit (goes from 10ms per packet to 7ms per packet). Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_timer.c')
-rw-r--r--src/stm/ao_timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stm/ao_timer.c b/src/stm/ao_timer.c
index 0c44f352..936dc881 100644
--- a/src/stm/ao_timer.c
+++ b/src/stm/ao_timer.c
@@ -87,7 +87,7 @@ void
ao_timer_init(void)
{
stm_nvic_set_enable(STM_ISR_TIM6_POS);
- stm_nvic_set_priority(STM_ISR_TIM6_POS, 1);
+ stm_nvic_set_priority(STM_ISR_TIM6_POS, AO_STM_NVIC_CLOCK_PRIORITY);
/* Turn on timer 6 */
stm_rcc.apb1enr |= (1 << STM_RCC_APB1ENR_TIM6EN);