From f1fa7ffe52310bb229353b9420569e9616ebce3f Mon Sep 17 00:00:00 2001 From: Vitor Date: Tue, 24 Oct 2023 21:57:04 +0100 Subject: [PATCH] fix(PeriphDrivers,CMSIS): SBISYS-216: Fix typos in SPI Rx Request Select, new SVD file for MAX32690 (#775) Co-authored-by: sihyung-maxim --- .../Maxim/MAX32690/Include/max32690.svd | 26 +++++++++++++++++-- Libraries/PeriphDrivers/Source/SPI/spi_me18.c | 6 ++--- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/Libraries/CMSIS/Device/Maxim/MAX32690/Include/max32690.svd b/Libraries/CMSIS/Device/Maxim/MAX32690/Include/max32690.svd index e0a3f7fa5a..ebd151bacd 100644 --- a/Libraries/CMSIS/Device/Maxim/MAX32690/Include/max32690.svd +++ b/Libraries/CMSIS/Device/Maxim/MAX32690/Include/max32690.svd @@ -16256,7 +16256,7 @@ signal(s) on transition(s) from low to high or high to low when PM.USBWKEN is se SPI1 SPI peripheral. 1 - 0x400BE000 + 0x40047000 SPI1 SPI1 IRQ @@ -16267,7 +16267,7 @@ signal(s) on transition(s) from low to high or high to low when PM.USBWKEN is se SPI2 SPI peripheral. 2 - 0x400BE400 + 0x40048000 SPI2 SPI2 IRQ @@ -16275,6 +16275,28 @@ signal(s) on transition(s) from low to high or high to low when PM.USBWKEN is se + + SPI3 + SPI peripheral. 3 + 0x400BE000 + + SPI3 + SPI3 IRQ + 56 + + + + + SPI4 + SPI peripheral. 4 + 0x400BE400 + + SPI4 + SPI4 IRQ + 105 + + + SPIXR SPIXR peripheral. diff --git a/Libraries/PeriphDrivers/Source/SPI/spi_me18.c b/Libraries/PeriphDrivers/Source/SPI/spi_me18.c index 4b5b94dc27..3f3e6c9cf1 100644 --- a/Libraries/PeriphDrivers/Source/SPI/spi_me18.c +++ b/Libraries/PeriphDrivers/Source/SPI/spi_me18.c @@ -427,13 +427,13 @@ int MXC_SPI_MasterTransactionDMA(mxc_spi_req_t *req) reqselRx = MXC_DMA_REQUEST_SPI1RX; break; case 2: - reqselTx = MXC_DMA_REQUEST_SPI2RX; + reqselRx = MXC_DMA_REQUEST_SPI2RX; break; case 3: - reqselTx = MXC_DMA_REQUEST_SPI3RX; + reqselRx = MXC_DMA_REQUEST_SPI3RX; break; case 4: - reqselTx = MXC_DMA_REQUEST_SPI4RX; + reqselRx = MXC_DMA_REQUEST_SPI4RX; break; default: return E_BAD_PARAM;