From d9436171e9ac4ba2497564c73a67b67f16999142 Mon Sep 17 00:00:00 2001 From: Koen Zandberg Date: Thu, 28 May 2020 11:55:08 +0200 Subject: [PATCH] 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 --- boards/nrf52840dk/include/periph_conf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boards/nrf52840dk/include/periph_conf.h b/boards/nrf52840dk/include/periph_conf.h index 017838d7754e..936e2fcc970a 100644 --- a/boards/nrf52840dk/include/periph_conf.h +++ b/boards/nrf52840dk/include/periph_conf.h @@ -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),