1
0
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:
Koen Zandberg 2020-05-28 11:55:08 +02:00
parent e7abd8805c
commit d9436171e9
No known key found for this signature in database
GPG Key ID: 0895A893E6D2985B

View File

@ -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),