diff --git a/boards/msba2/Makefile.features b/boards/msba2/Makefile.features index 1f563e7c87..7d6f4b673d 100644 --- a/boards/msba2/Makefile.features +++ b/boards/msba2/Makefile.features @@ -2,6 +2,7 @@ CPU = lpc2387 # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_adc +FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_pwm FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_spi diff --git a/boards/msba2/include/periph_conf.h b/boards/msba2/include/periph_conf.h index 59108bfd4d..b75ff5a0b1 100644 --- a/boards/msba2/include/periph_conf.h +++ b/boards/msba2/include/periph_conf.h @@ -155,6 +155,25 @@ static const adc_conf_t adc_config[] = { #define ADC_NUMOF ARRAY_SIZE(adc_config) /** @} */ +/** + * @name I2C configuration + * @{ + */ +static const i2c_conf_t i2c_config[] = { + { /* JP3 */ + .dev = I2C2, + .speed = I2C_SPEED_NORMAL, + .irq_prio = 5, + .pinsel_sda = 0, + .pinsel_scl = 0, + .pinsel_msk_sda = BIT21, /* P0.10 */ + .pinsel_msk_scl = BIT23, /* P0.11 */ + }, +}; + +/* used in arithmetic preprocessor expression, so no ARRAY_SIZE() */ +#define I2C_NUMOF (1) +/** @} */ #ifdef __cplusplus }