From d675eb7cbb7f49b4b4d6254f974465081fbc10ac Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Mon, 10 Feb 2020 13:41:00 +0100 Subject: [PATCH] boards/mcb2388: update SPI configuration --- boards/mcb2388/include/periph_conf.h | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/boards/mcb2388/include/periph_conf.h b/boards/mcb2388/include/periph_conf.h index f6e5babfc2..7803a94739 100644 --- a/boards/mcb2388/include/periph_conf.h +++ b/boards/mcb2388/include/periph_conf.h @@ -71,11 +71,20 @@ static const uart_conf_t uart_config[] = { /** * @name SPI configuration - * - * The SPI implementation is very much fixed, so we don't need to configure - * anything besides the mandatory SPI_NUMOF. * @{ */ +static const spi_conf_t spi_config[] = { + { + .dev = SPI0, + .pinsel_mosi = 3, + .pinsel_miso = 3, + .pinsel_clk = 3, + .pinsel_msk_mosi = (BIT16 | BIT17), /* P1.24 */ + .pinsel_msk_miso = (BIT14 | BIT15), /* P1.23 */ + .pinsel_msk_clk = (BIT8 | BIT9), /* P1.20 */ + }, +}; + #define SPI_NUMOF (1) /** @} */