From 5734e1f43776558a6540da238a98cf987060c283 Mon Sep 17 00:00:00 2001 From: peabody124 Date: Sun, 9 Jan 2011 20:49:43 +0000 Subject: [PATCH] OP-176 PIOS/ADC: Decrease the priority of the ADC DMA/IRQ git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2360 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/PiOS/Boards/STM3210E_OP.h | 2 +- flight/PiOS/STM32F10x/pios_adc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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);