diff --git a/boards/atxmega-a1u-xpro/Kconfig b/boards/atxmega-a1u-xpro/Kconfig index efb90396a0..ef85455060 100644 --- a/boards/atxmega-a1u-xpro/Kconfig +++ b/boards/atxmega-a1u-xpro/Kconfig @@ -15,6 +15,7 @@ config BOARD_ATXMEGA_A1U_XPRO select HAS_PERIPH_CPUID select HAS_PERIPH_GPIO select HAS_PERIPH_GPIO_IRQ + select HAS_PERIPH_I2C select HAS_PERIPH_NVM select HAS_PERIPH_PM select HAS_PERIPH_TIMER diff --git a/boards/atxmega-a1u-xpro/include/periph_conf.h b/boards/atxmega-a1u-xpro/include/periph_conf.h index e52ded321f..e4840685cb 100644 --- a/boards/atxmega-a1u-xpro/include/periph_conf.h +++ b/boards/atxmega-a1u-xpro/include/periph_conf.h @@ -92,6 +92,26 @@ static const uart_conf_t uart_config[] = { #define UART_NUMOF ARRAY_SIZE(uart_config) /** @} */ +/** + * @name I2C configuration + * @{ + */ +static const i2c_conf_t i2c_config[] = { + { + .dev = &TWIC, + .pwr = PWR_RED_REG(PWR_PORT_C, PR_TWI_bm), + .sda_pin = GPIO_PIN(PORT_C, 0), + .scl_pin = GPIO_PIN(PORT_C, 1), + .speed = I2C_SPEED_NORMAL, + .int_lvl = CPU_INT_LVL_LOW, + }, +}; + +#define I2C_0_ISR TWIC_TWIM_vect + +#define I2C_NUMOF ARRAY_SIZE(i2c_config) +/** @} */ + #ifdef __cplusplus } #endif diff --git a/tests/pkg_cryptoauthlib_internal-tests/Makefile.ci b/tests/pkg_cryptoauthlib_internal-tests/Makefile.ci index 965a0b66a5..130b9e7808 100644 --- a/tests/pkg_cryptoauthlib_internal-tests/Makefile.ci +++ b/tests/pkg_cryptoauthlib_internal-tests/Makefile.ci @@ -8,6 +8,7 @@ BOARD_INSUFFICIENT_MEMORY := \ atmega256rfr2-xpro \ atmega328p \ atmega328p-xplained-mini \ + atxmega-a1u-xpro \ avr-rss2 \ blackpill \ bluepill \