altos/stm: Interrupt priority is in the upper bits of the priority mask
[fw/altos] / src / stm / ao_dma_stm.c
index 6d77966076a88aefeac0f8a281fa81b5ebe0b662..63d6688a0c8258bea6e5a3620fec626d77c7c336 100644 (file)
@@ -155,7 +155,8 @@ ao_dma_init(void)
 
        for (index = 0; index < STM_NUM_DMA; index++) {
                stm_nvic_set_enable(STM_ISR_DMA1_CHANNEL1_POS + index);
-               stm_nvic_set_priority(STM_ISR_DMA1_CHANNEL1_POS + index, 4);
+               stm_nvic_set_priority(STM_ISR_DMA1_CHANNEL1_POS + index,
+                                     AO_STM_NVIC_MED_PRIORITY);
                ao_dma_allocated[index] = 0;
                ao_dma_mutex[index] = 0;
        }