Skip to content

Commit cd5fb74

Browse files
committed
HALConfig: Raise ADC/DAC DMA priority.
During testing I noticed mbed OS will preempt or block DMA irq for too long, causing DMA errors. ADC/DAC DMA should have the highest priority since we don't have control over mbed. Signed-off-by: iabdalkader <[email protected]>
1 parent 178f327 commit cd5fb74

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/HALConfig.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ int hal_dma_config(DMA_HandleTypeDef *dma, IRQn_Type irqn, uint32_t direction) {
9191
}
9292

9393
// NVIC configuration for DMA Input data interrupt.
94-
HAL_NVIC_SetPriority(irqn, 1, 0);
94+
HAL_NVIC_SetPriority(irqn, 0, 0);
9595
HAL_NVIC_EnableIRQ(irqn);
9696

9797
return 0;

0 commit comments

Comments
 (0)