boards/atxmega-a1u-xpro: Add i2c configuration
Add EXT-1 i2c bus configuration. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
1dec526d0a
commit
084625fa0d
@ -15,6 +15,7 @@ config BOARD_ATXMEGA_A1U_XPRO
|
|||||||
select HAS_PERIPH_CPUID
|
select HAS_PERIPH_CPUID
|
||||||
select HAS_PERIPH_GPIO
|
select HAS_PERIPH_GPIO
|
||||||
select HAS_PERIPH_GPIO_IRQ
|
select HAS_PERIPH_GPIO_IRQ
|
||||||
|
select HAS_PERIPH_I2C
|
||||||
select HAS_PERIPH_NVM
|
select HAS_PERIPH_NVM
|
||||||
select HAS_PERIPH_PM
|
select HAS_PERIPH_PM
|
||||||
select HAS_PERIPH_TIMER
|
select HAS_PERIPH_TIMER
|
||||||
|
|||||||
@ -92,6 +92,26 @@ static const uart_conf_t uart_config[] = {
|
|||||||
#define UART_NUMOF ARRAY_SIZE(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
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -8,6 +8,7 @@ BOARD_INSUFFICIENT_MEMORY := \
|
|||||||
atmega256rfr2-xpro \
|
atmega256rfr2-xpro \
|
||||||
atmega328p \
|
atmega328p \
|
||||||
atmega328p-xplained-mini \
|
atmega328p-xplained-mini \
|
||||||
|
atxmega-a1u-xpro \
|
||||||
avr-rss2 \
|
avr-rss2 \
|
||||||
blackpill \
|
blackpill \
|
||||||
bluepill \
|
bluepill \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user