altos/stm: Interrupt priority is in the upper bits of the priority mask
[fw/altos] / src / stm / ao_timer.c
index f86a51169293e78a4fb930f8e132f19557c378e7..1576a6c91f78e38132b119b025415e0c112a3970 100644 (file)
@@ -90,6 +90,7 @@ ao_timer_init(void)
        stm_systick.csr = ((1 << STM_SYSTICK_CSR_ENABLE) |
                           (1 << STM_SYSTICK_CSR_TICKINT) |
                           (STM_SYSTICK_CSR_CLKSOURCE_HCLK_8 << STM_SYSTICK_CSR_CLKSOURCE));
+       stm_nvic.shpr15_12 |= AO_STM_NVIC_CLOCK_PRIORITY << 24;
 }
 
 #endif