diff --git a/boards/atxmega-a1u-xpro/Kconfig b/boards/atxmega-a1u-xpro/Kconfig index ef85455060..7e7fdffafc 100644 --- a/boards/atxmega-a1u-xpro/Kconfig +++ b/boards/atxmega-a1u-xpro/Kconfig @@ -18,6 +18,7 @@ config BOARD_ATXMEGA_A1U_XPRO 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-a1u-xpro/include/board.h b/boards/atxmega-a1u-xpro/include/board.h index 2314adc6ce..8ac664712d 100644 --- a/boards/atxmega-a1u-xpro/include/board.h +++ b/boards/atxmega-a1u-xpro/include/board.h @@ -88,7 +88,6 @@ extern "C" { * * @{ */ - #define XTIMER_DEV TIMER_DEV(0) #define XTIMER_CHAN (0) #define XTIMER_WIDTH (16) diff --git a/boards/atxmega-a1u-xpro/include/periph_conf.h b/boards/atxmega-a1u-xpro/include/periph_conf.h index e4840685cb..66c1c283ff 100644 --- a/boards/atxmega-a1u-xpro/include/periph_conf.h +++ b/boards/atxmega-a1u-xpro/include/periph_conf.h @@ -112,6 +112,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/examples/gnrc_lorawan/Makefile.ci b/examples/gnrc_lorawan/Makefile.ci index 3797ffe80f..eb07191e2b 100644 --- a/examples/gnrc_lorawan/Makefile.ci +++ b/examples/gnrc_lorawan/Makefile.ci @@ -6,6 +6,7 @@ BOARD_INSUFFICIENT_MEMORY := \ arduino-uno \ atmega328p \ atmega328p-xplained-mini \ + atxmega-a1u-xpro \ msb-430 \ msb-430h \ nucleo-f031k6 \ diff --git a/tests/disp_dev/Makefile.ci b/tests/disp_dev/Makefile.ci index bb2d6aa68a..3443df87ce 100644 --- a/tests/disp_dev/Makefile.ci +++ b/tests/disp_dev/Makefile.ci @@ -7,6 +7,7 @@ BOARD_INSUFFICIENT_MEMORY := \ atmega1284p \ atmega328p \ atmega328p-xplained-mini \ + atxmega-a1u-xpro \ derfmega128 \ mega-xplained \ microduino-corerf \ diff --git a/tests/driver_at86rf215/Makefile.ci b/tests/driver_at86rf215/Makefile.ci index 397996ca9c..68f17b3b15 100644 --- a/tests/driver_at86rf215/Makefile.ci +++ b/tests/driver_at86rf215/Makefile.ci @@ -7,6 +7,7 @@ BOARD_INSUFFICIENT_MEMORY := \ atmega1284p \ atmega328p \ atmega328p-xplained-mini \ + atxmega-a1u-xpro \ bluepill-stm32f030c8 \ derfmega128 \ i-nucleo-lrwan1 \ diff --git a/tests/driver_cc110x/Makefile.ci b/tests/driver_cc110x/Makefile.ci index 2ce9fe8b90..7590085319 100644 --- a/tests/driver_cc110x/Makefile.ci +++ b/tests/driver_cc110x/Makefile.ci @@ -7,6 +7,7 @@ BOARD_INSUFFICIENT_MEMORY := \ atmega1284p \ atmega328p \ atmega328p-xplained-mini \ + atxmega-a1u-xpro \ blackpill \ bluepill \ bluepill-stm32f030c8 \ diff --git a/tests/driver_enc28j60/Makefile.ci b/tests/driver_enc28j60/Makefile.ci index efd592bb4a..5222c87797 100644 --- a/tests/driver_enc28j60/Makefile.ci +++ b/tests/driver_enc28j60/Makefile.ci @@ -7,6 +7,7 @@ BOARD_INSUFFICIENT_MEMORY := \ atmega1284p \ atmega328p \ atmega328p-xplained-mini \ + atxmega-a1u-xpro \ bluepill-stm32f030c8 \ derfmega128 \ i-nucleo-lrwan1 \ diff --git a/tests/driver_encx24j600/Makefile.ci b/tests/driver_encx24j600/Makefile.ci index 7f7f4d0b7d..c856df2cca 100644 --- a/tests/driver_encx24j600/Makefile.ci +++ b/tests/driver_encx24j600/Makefile.ci @@ -6,6 +6,7 @@ BOARD_INSUFFICIENT_MEMORY := \ arduino-uno \ atmega328p \ atmega328p-xplained-mini \ + atxmega-a1u-xpro \ i-nucleo-lrwan1 \ msb-430 \ msb-430h \ diff --git a/tests/driver_kw2xrf/Makefile.ci b/tests/driver_kw2xrf/Makefile.ci index 57b75c3dab..db32a4cc9e 100644 --- a/tests/driver_kw2xrf/Makefile.ci +++ b/tests/driver_kw2xrf/Makefile.ci @@ -6,6 +6,7 @@ BOARD_INSUFFICIENT_MEMORY := \ arduino-uno \ atmega328p \ atmega328p-xplained-mini \ + atxmega-a1u-xpro \ bluepill-stm32f030c8 \ i-nucleo-lrwan1 \ nucleo-f031k6 \ diff --git a/tests/driver_mrf24j40/Makefile.ci b/tests/driver_mrf24j40/Makefile.ci index 586364d983..72ac56be14 100644 --- a/tests/driver_mrf24j40/Makefile.ci +++ b/tests/driver_mrf24j40/Makefile.ci @@ -6,6 +6,7 @@ BOARD_INSUFFICIENT_MEMORY := \ arduino-uno \ atmega328p \ atmega328p-xplained-mini \ + atxmega-a1u-xpro \ bluepill-stm32f030c8 \ i-nucleo-lrwan1 \ nucleo-f031k6 \ diff --git a/tests/driver_nrf24l01p_ng/Makefile.ci b/tests/driver_nrf24l01p_ng/Makefile.ci index 3386c82573..70ae5d4d59 100644 --- a/tests/driver_nrf24l01p_ng/Makefile.ci +++ b/tests/driver_nrf24l01p_ng/Makefile.ci @@ -8,6 +8,7 @@ BOARD_INSUFFICIENT_MEMORY := \ atmega128rfa1 \ atmega328p \ atmega328p-xplained-mini \ + atxmega-a1u-xpro \ bluepill-stm32f030c8 \ derfmega128 \ i-nucleo-lrwan1 \ diff --git a/tests/driver_w5100/Makefile.ci b/tests/driver_w5100/Makefile.ci index 28ea82d339..fcbdf2a160 100644 --- a/tests/driver_w5100/Makefile.ci +++ b/tests/driver_w5100/Makefile.ci @@ -6,6 +6,7 @@ BOARD_INSUFFICIENT_MEMORY := \ arduino-uno \ atmega328p \ atmega328p-xplained-mini \ + atxmega-a1u-xpro \ bluepill-stm32f030c8 \ i-nucleo-lrwan1 \ msb-430 \