mirror of https://github.com/ARMmbed/mbed-os.git
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.
parent
468ddc86bd
commit
48b20be0e6
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue