From 985d3406212a5d424f9a0e7ae5382fdc1c7d4a25 Mon Sep 17 00:00:00 2001 From: Benjamin Valentin Date: Fri, 31 Jan 2020 11:57:57 +0100 Subject: [PATCH] boards/avsextrem: update SPI config --- boards/avsextrem/include/periph_conf.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/boards/avsextrem/include/periph_conf.h b/boards/avsextrem/include/periph_conf.h index f010903b671c..ace679fc996d 100644 --- a/boards/avsextrem/include/periph_conf.h +++ b/boards/avsextrem/include/periph_conf.h @@ -65,7 +65,19 @@ static const uart_conf_t uart_config[] = { * @name SPI configuration * @{ */ -#define SPI_NUMOF (1U) +static const spi_conf_t spi_config[] = { + { + .dev = SPI0, + .pinsel_mosi = 3, + .pinsel_miso = 3, + .pinsel_clk = 3, + .pinsel_msk_mosi = (BIT16 | BIT17), + .pinsel_msk_miso = (BIT14 | BIT15), + .pinsel_msk_clk = (BIT8 | BIT9), + }, +}; + +#define SPI_NUMOF (1) /** @} */ #ifdef __cplusplus