1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

boards/atxmega-a1u-xpro: Add spi configuration

Add EXT-1 spi bus configuration.

Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
Gerson Fernando Budke 2021-01-23 19:41:24 -03:00
parent 91316a879a
commit 8cc9c42d1d
13 changed files with 29 additions and 1 deletions

View File

@ -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

View File

@ -88,7 +88,6 @@ extern "C" {
*
* @{
*/
#define XTIMER_DEV TIMER_DEV(0)
#define XTIMER_CHAN (0)
#define XTIMER_WIDTH (16)

View File

@ -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

View File

@ -6,6 +6,7 @@ BOARD_INSUFFICIENT_MEMORY := \
arduino-uno \
atmega328p \
atmega328p-xplained-mini \
atxmega-a1u-xpro \
msb-430 \
msb-430h \
nucleo-f031k6 \

View File

@ -7,6 +7,7 @@ BOARD_INSUFFICIENT_MEMORY := \
atmega1284p \
atmega328p \
atmega328p-xplained-mini \
atxmega-a1u-xpro \
derfmega128 \
mega-xplained \
microduino-corerf \

View File

@ -7,6 +7,7 @@ BOARD_INSUFFICIENT_MEMORY := \
atmega1284p \
atmega328p \
atmega328p-xplained-mini \
atxmega-a1u-xpro \
bluepill-stm32f030c8 \
derfmega128 \
i-nucleo-lrwan1 \

View File

@ -7,6 +7,7 @@ BOARD_INSUFFICIENT_MEMORY := \
atmega1284p \
atmega328p \
atmega328p-xplained-mini \
atxmega-a1u-xpro \
blackpill \
bluepill \
bluepill-stm32f030c8 \

View File

@ -7,6 +7,7 @@ BOARD_INSUFFICIENT_MEMORY := \
atmega1284p \
atmega328p \
atmega328p-xplained-mini \
atxmega-a1u-xpro \
bluepill-stm32f030c8 \
derfmega128 \
i-nucleo-lrwan1 \

View File

@ -6,6 +6,7 @@ BOARD_INSUFFICIENT_MEMORY := \
arduino-uno \
atmega328p \
atmega328p-xplained-mini \
atxmega-a1u-xpro \
i-nucleo-lrwan1 \
msb-430 \
msb-430h \

View File

@ -6,6 +6,7 @@ BOARD_INSUFFICIENT_MEMORY := \
arduino-uno \
atmega328p \
atmega328p-xplained-mini \
atxmega-a1u-xpro \
bluepill-stm32f030c8 \
i-nucleo-lrwan1 \
nucleo-f031k6 \

View File

@ -6,6 +6,7 @@ BOARD_INSUFFICIENT_MEMORY := \
arduino-uno \
atmega328p \
atmega328p-xplained-mini \
atxmega-a1u-xpro \
bluepill-stm32f030c8 \
i-nucleo-lrwan1 \
nucleo-f031k6 \

View File

@ -8,6 +8,7 @@ BOARD_INSUFFICIENT_MEMORY := \
atmega128rfa1 \
atmega328p \
atmega328p-xplained-mini \
atxmega-a1u-xpro \
bluepill-stm32f030c8 \
derfmega128 \
i-nucleo-lrwan1 \

View File

@ -6,6 +6,7 @@ BOARD_INSUFFICIENT_MEMORY := \
arduino-uno \
atmega328p \
atmega328p-xplained-mini \
atxmega-a1u-xpro \
bluepill-stm32f030c8 \
i-nucleo-lrwan1 \
msb-430 \