From 8a2c88a8089e8f41b9ef45e22d4ec703c8e66047 Mon Sep 17 00:00:00 2001 From: Gerson Fernando Budke Date: Sat, 24 Apr 2021 19:05:22 -0300 Subject: [PATCH] boards/atxmega-a3bu-xplained: Add spi configuration Add J1 header spi configuration. Signed-off-by: Gerson Fernando Budke --- boards/atxmega-a3bu-xplained/Kconfig | 1 + .../include/periph_conf.h | 18 ++++++++++++++++++ tests/disp_dev/Makefile.ci | 1 + tests/driver_at86rf215/Makefile.ci | 1 + tests/driver_cc110x/Makefile.ci | 1 + tests/driver_enc28j60/Makefile.ci | 1 + tests/driver_nrf24l01p_ng/Makefile.ci | 1 + 7 files changed, 24 insertions(+) diff --git a/boards/atxmega-a3bu-xplained/Kconfig b/boards/atxmega-a3bu-xplained/Kconfig index 1a91bd093e..358a90bc9d 100644 --- a/boards/atxmega-a3bu-xplained/Kconfig +++ b/boards/atxmega-a3bu-xplained/Kconfig @@ -18,6 +18,7 @@ config BOARD_ATXMEGA_A3BU_XPLAINED select HAS_PERIPH_I2C select HAS_PERIPH_NVM select HAS_PERIPH_PM + select HAS_PERIPH_SPI select HAS_PERIPH_TIMER select HAS_PERIPH_TIMER_PERIODIC select HAS_PERIPH_UART diff --git a/boards/atxmega-a3bu-xplained/include/periph_conf.h b/boards/atxmega-a3bu-xplained/include/periph_conf.h index 6fe0161026..a9106673cb 100644 --- a/boards/atxmega-a3bu-xplained/include/periph_conf.h +++ b/boards/atxmega-a3bu-xplained/include/periph_conf.h @@ -129,6 +129,24 @@ static const i2c_conf_t i2c_config[] = { #define I2C_NUMOF ARRAY_SIZE(i2c_config) /** @} */ +/** + * @name SPI configuration + * @{ + */ +static const spi_conf_t spi_config[] = { + { + .dev = &SPIC, + .pwr = PWR_RED_REG(PWR_PORT_C, PR_SPI_bm), + .sck_pin = GPIO_PIN(PORT_C, 7), + .miso_pin = GPIO_PIN(PORT_C, 6), + .mosi_pin = GPIO_PIN(PORT_C, 5), + .ss_pin = GPIO_PIN(PORT_C, 4), + }, +}; + +#define SPI_NUMOF ARRAY_SIZE(spi_config) +/** @} */ + #ifdef __cplusplus } #endif diff --git a/tests/disp_dev/Makefile.ci b/tests/disp_dev/Makefile.ci index 3443df87ce..3bd15033b1 100644 --- a/tests/disp_dev/Makefile.ci +++ b/tests/disp_dev/Makefile.ci @@ -8,6 +8,7 @@ BOARD_INSUFFICIENT_MEMORY := \ atmega328p \ atmega328p-xplained-mini \ atxmega-a1u-xpro \ + atxmega-a3bu-xplained \ derfmega128 \ mega-xplained \ microduino-corerf \ diff --git a/tests/driver_at86rf215/Makefile.ci b/tests/driver_at86rf215/Makefile.ci index 68f17b3b15..6f458549a9 100644 --- a/tests/driver_at86rf215/Makefile.ci +++ b/tests/driver_at86rf215/Makefile.ci @@ -8,6 +8,7 @@ BOARD_INSUFFICIENT_MEMORY := \ atmega328p \ atmega328p-xplained-mini \ atxmega-a1u-xpro \ + atxmega-a3bu-xplained \ bluepill-stm32f030c8 \ derfmega128 \ i-nucleo-lrwan1 \ diff --git a/tests/driver_cc110x/Makefile.ci b/tests/driver_cc110x/Makefile.ci index 7590085319..c03f8d4ad0 100644 --- a/tests/driver_cc110x/Makefile.ci +++ b/tests/driver_cc110x/Makefile.ci @@ -8,6 +8,7 @@ BOARD_INSUFFICIENT_MEMORY := \ atmega328p \ atmega328p-xplained-mini \ atxmega-a1u-xpro \ + atxmega-a3bu-xplained \ blackpill \ bluepill \ bluepill-stm32f030c8 \ diff --git a/tests/driver_enc28j60/Makefile.ci b/tests/driver_enc28j60/Makefile.ci index 5222c87797..dabf97cd3e 100644 --- a/tests/driver_enc28j60/Makefile.ci +++ b/tests/driver_enc28j60/Makefile.ci @@ -8,6 +8,7 @@ BOARD_INSUFFICIENT_MEMORY := \ atmega328p \ atmega328p-xplained-mini \ atxmega-a1u-xpro \ + atxmega-a3bu-xplained \ bluepill-stm32f030c8 \ derfmega128 \ i-nucleo-lrwan1 \ diff --git a/tests/driver_nrf24l01p_ng/Makefile.ci b/tests/driver_nrf24l01p_ng/Makefile.ci index 70ae5d4d59..0949f760d5 100644 --- a/tests/driver_nrf24l01p_ng/Makefile.ci +++ b/tests/driver_nrf24l01p_ng/Makefile.ci @@ -9,6 +9,7 @@ BOARD_INSUFFICIENT_MEMORY := \ atmega328p \ atmega328p-xplained-mini \ atxmega-a1u-xpro \ + atxmega-a3bu-xplained \ bluepill-stm32f030c8 \ derfmega128 \ i-nucleo-lrwan1 \