Missing DMA initialization.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@14237 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2021-04-19 17:18:56 +00:00
parent d242b589b8
commit e15d7fe0f9
2 changed files with 4 additions and 5 deletions

View File

@ -181,8 +181,6 @@ void dmaInit(void) {
dma.c0_allocated_mask = 0U;
dma.c1_allocated_mask = 0U;
for (i = 0U; i < RP_DMA_CHANNELS; i++) {
__rp_dma_channels[i].channel->CTRL_TRIG = DMA_CTRL_TRIG_READ_ERROR |
DMA_CTRL_TRIG_WRITE_ERROR;
dma.channels[i].func = NULL;
}
}

View File

@ -107,12 +107,13 @@ void hal_lld_init(void) {
hal_lld_peripheral_unreset(RESETS_ALLREG_SYSCFG);
#endif /* RP_NO_INIT */
/* Common subsystems initialization.*/
irqInit();
dmaInit();
#if RP_CORE1_START == TRUE
start_core1();
#endif
/* IRQ subsystem initialization.*/
irqInit();
}
/** @} */