aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/SPC563Mxx
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/SPC563Mxx')
-rw-r--r--os/hal/platforms/SPC563Mxx/hal_lld.c3
-rw-r--r--os/hal/platforms/SPC563Mxx/spc563m_registry.h12
2 files changed, 9 insertions, 6 deletions
diff --git a/os/hal/platforms/SPC563Mxx/hal_lld.c b/os/hal/platforms/SPC563Mxx/hal_lld.c
index 7e2f32319..22979e61b 100644
--- a/os/hal/platforms/SPC563Mxx/hal_lld.c
+++ b/os/hal/platforms/SPC563Mxx/hal_lld.c
@@ -94,6 +94,9 @@ void hal_lld_init(void) {
INTC.MCR.R = 0;
INTC.CPR.R = 0;
INTC.IACKR.R = (uint32_t)_vectors;
+
+ /* EDMA initialization.*/
+ edmaInit();
}
/**
diff --git a/os/hal/platforms/SPC563Mxx/spc563m_registry.h b/os/hal/platforms/SPC563Mxx/spc563m_registry.h
index dc1145532..b26a65de9 100644
--- a/os/hal/platforms/SPC563Mxx/spc563m_registry.h
+++ b/os/hal/platforms/SPC563Mxx/spc563m_registry.h
@@ -40,12 +40,12 @@
#define SPC5_HAS_DSPI3 FALSE
#define SPC5_HAS_DSPI4 FALSE
#define SPC5_DSPI_FIFO_DEPTH 16
-#define SPC5_DSPI1_TX1_DMA_DEV_ID 12
-#define SPC5_DSPI1_TX2_DMA_DEV_ID 25
-#define SPC5_DSPI1_RX_DMA_DEV_ID 13
-#define SPC5_DSPI2_TX1_DMA_DEV_ID 14
-#define SPC5_DSPI2_TX2_DMA_DEV_ID 26
-#define SPC5_DSPI2_RX_DMA_DEV_ID 15
+#define SPC5_DSPI1_TX1_DMA_CH_ID 12
+#define SPC5_DSPI1_TX2_DMA_CH_ID 25
+#define SPC5_DSPI1_RX_DMA_CH_ID 13
+#define SPC5_DSPI2_TX1_DMA_CH_ID 14
+#define SPC5_DSPI2_TX2_DMA_CH_ID 26
+#define SPC5_DSPI2_RX_DMA_CH_ID 15
#define SPC5_DSPI1_EOQF_HANDLER vector132
#define SPC5_DSPI1_EOQF_NUMBER 132
#define SPC5_DSPI1_TFFF_HANDLER vector133