diff --git a/flight/PiOS/Boards/STM3210E_OP.h b/flight/PiOS/Boards/STM3210E_OP.h index 854d8d353..be6727f5b 100644 --- a/flight/PiOS/Boards/STM3210E_OP.h +++ b/flight/PiOS/Boards/STM3210E_OP.h @@ -353,7 +353,7 @@ TIM8 | Servo 5 | Servo 6 | Servo 7 | Servo 8 /* With an ADCCLK = 14 MHz and a sampling time of 293.5 cycles: */ /* Tconv = 239.5 + 12.5 = 252 cycles = 18?s */ /* (1 / (ADCCLK / CYCLES)) = Sample Time (?S) */ -#define PIOS_ADC_IRQ_PRIO PIOS_IRQ_PRIO_MID +#define PIOS_ADC_IRQ_PRIO PIOS_IRQ_PRIO_LOW //------------------------- // GPIO diff --git a/flight/PiOS/STM32F10x/pios_adc.c b/flight/PiOS/STM32F10x/pios_adc.c index bceea9fd7..4df026a48 100644 --- a/flight/PiOS/STM32F10x/pios_adc.c +++ b/flight/PiOS/STM32F10x/pios_adc.c @@ -142,7 +142,7 @@ void PIOS_ADC_Init(void) DMA_InitStructure.DMA_PeripheralDataSize = DMA_PeripheralDataSize_Word; DMA_InitStructure.DMA_MemoryDataSize = DMA_MemoryDataSize_Word; DMA_InitStructure.DMA_Mode = DMA_Mode_Circular; - DMA_InitStructure.DMA_Priority = DMA_Priority_High; + DMA_InitStructure.DMA_Priority = DMA_Priority_Low; DMA_InitStructure.DMA_M2M = DMA_M2M_Disable; DMA_Init(DMA1_Channel1, &DMA_InitStructure); DMA_Cmd(DMA1_Channel1, ENABLE);