altos/stm: Interrupt priority is in the upper bits of the priority mask
[fw/altos] / src / stm / ao_dma_stm.c
index a24c6d3a7e2c7078bfcb1afc529b56902b4b67ba..962b3acc57b2824a7f79fe768a721bd8dcb633e5 100644 (file)
@@ -191,7 +191,8 @@ ao_dma_init(void)
                }
 #endif
                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;
        }