mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
nrf52840dk: move SPI flash to SPIM2 peripheral
The SPIM1 peripheral overlaps with TWIM1. TWIM1 is already configured as the default peripheral for the I2C interface. This commit moves the peripheral used for the SPI flash to SPIM2. This peripheral is dedicated for SPI operations and doesn't conflict with other peripherals
This commit is contained in:
parent
e7abd8805c
commit
d9436171e9
@ -38,7 +38,7 @@ static const spi_conf_t spi_config[] = {
|
||||
.miso = GPIO_PIN(1, 14),
|
||||
},
|
||||
{
|
||||
.dev = NRF_SPIM1,
|
||||
.dev = NRF_SPIM2,
|
||||
.sclk = GPIO_PIN(0, 19),
|
||||
.mosi = GPIO_PIN(0, 20),
|
||||
.miso = GPIO_PIN(0, 21),
|
||||
|
Loading…
Reference in New Issue
Block a user