Skip to content

Commit 16e7a48

Browse files
committed
pbio/drv/block_device_ev3: Fix RX DMA channel.
Fix a typo where the RX channel for the wrong SPI peripheral was requested. Likely we didn't notice this because everything should already be set up correctly by the bootloader since it also uses this SPI for flash memory.
1 parent 613202a commit 16e7a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/pbio/drv/block_device/block_device_ev3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ static void spi_bus_init(void) {
243243

244244
// Request DMA channels. This only needs to be done for the initial events (and not for linked parameter sets)
245245
EDMA3RequestChannel(SOC_EDMA30CC_0_REGS, EDMA3_CHANNEL_TYPE_DMA, EDMA3_CHA_SPI0_TX, EDMA3_CHA_SPI0_TX, 0);
246-
EDMA3RequestChannel(SOC_EDMA30CC_0_REGS, EDMA3_CHANNEL_TYPE_DMA, EDMA3_CHA_SPI1_RX, EDMA3_CHA_SPI1_RX, 0);
246+
EDMA3RequestChannel(SOC_EDMA30CC_0_REGS, EDMA3_CHANNEL_TYPE_DMA, EDMA3_CHA_SPI0_RX, EDMA3_CHA_SPI0_RX, 0);
247247

248248
// Enable!
249249
SPIEnable(SOC_SPI_0_REGS);

0 commit comments

Comments
 (0)