Demote LDMA interrupt priority. We assume that completion of a DMA transfer means the transaction is finished already, and its handling is thus less time-sensitive than being in the middle of an interrupt-driven Serial or SPI transaction.

pull/1501/head
Steven Cooreman 2016-01-08 17:51:01 +01:00
parent 468ddc86bd
commit 48b20be0e6
1 changed files with 2 additions and 2 deletions

View File

@ -83,11 +83,11 @@ void dma_init(void)
ldmaInit.ldmaInitCtrlNumFixed = 0; /* All channels round-robin */
ldmaInit.ldmaInitCtrlSyncPrsClrEn = 0; /* Do not allow PRS to clear SYNCTRIG */
ldmaInit.ldmaInitCtrlSyncPrsSetEn = 0; /* Do not allow PRS to set SYNCTRIG */
ldmaInit.ldmaInitIrqPriority = 1; /* IRQ Priority - FIXME: correct value? */
ldmaInit.ldmaInitIrqPriority = 2; /* IRQ Priority */
LDMA_Init(&ldmaInit);
#else
#error no dma block?
#error "Unrecognized DMA peripheral"
#endif
enabled = true;