mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/atxmega-a3bu-xplained: Add i2c configuration
Add J1 i2c bus configuration. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
084625fa0d
commit
a4c5daea3b
@ -15,6 +15,7 @@ config BOARD_ATXMEGA_A3BU_XPLAINED
|
||||
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
|
||||
|
@ -109,6 +109,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[] = {
|
||||
{ /* J1 */
|
||||
.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
|
||||
|
@ -9,6 +9,7 @@ BOARD_INSUFFICIENT_MEMORY := \
|
||||
atmega328p \
|
||||
atmega328p-xplained-mini \
|
||||
atxmega-a1u-xpro \
|
||||
atxmega-a3bu-xplained \
|
||||
avr-rss2 \
|
||||
blackpill \
|
||||
bluepill \
|
||||
|
Loading…
Reference in New Issue
Block a user