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:
parent
d242b589b8
commit
e15d7fe0f9
|
@ -181,8 +181,6 @@ void dmaInit(void) {
|
||||||
dma.c0_allocated_mask = 0U;
|
dma.c0_allocated_mask = 0U;
|
||||||
dma.c1_allocated_mask = 0U;
|
dma.c1_allocated_mask = 0U;
|
||||||
for (i = 0U; i < RP_DMA_CHANNELS; i++) {
|
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;
|
dma.channels[i].func = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -107,12 +107,13 @@ void hal_lld_init(void) {
|
||||||
hal_lld_peripheral_unreset(RESETS_ALLREG_SYSCFG);
|
hal_lld_peripheral_unreset(RESETS_ALLREG_SYSCFG);
|
||||||
#endif /* RP_NO_INIT */
|
#endif /* RP_NO_INIT */
|
||||||
|
|
||||||
|
/* Common subsystems initialization.*/
|
||||||
|
irqInit();
|
||||||
|
dmaInit();
|
||||||
|
|
||||||
#if RP_CORE1_START == TRUE
|
#if RP_CORE1_START == TRUE
|
||||||
start_core1();
|
start_core1();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* IRQ subsystem initialization.*/
|
|
||||||
irqInit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
Loading…
Reference in New Issue