diff --git a/boards/slstk3402a/Makefile.features b/boards/slstk3402a/Makefile.features index 671cfa79fb..eec9ddfd7d 100644 --- a/boards/slstk3402a/Makefile.features +++ b/boards/slstk3402a/Makefile.features @@ -1,6 +1,7 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_adc FEATURES_PROVIDED += periph_gpio +FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_rtc FEATURES_PROVIDED += periph_rtt FEATURES_PROVIDED += periph_spi diff --git a/boards/slstk3402a/include/periph_conf.h b/boards/slstk3402a/include/periph_conf.h index 1ebf883b33..0abf737176 100644 --- a/boards/slstk3402a/include/periph_conf.h +++ b/boards/slstk3402a/include/periph_conf.h @@ -89,7 +89,16 @@ static const adc_chan_conf_t adc_channel_config[] = { * @{ */ static const i2c_conf_t i2c_config[] = { - + { + .dev = I2C0, + .sda_pin = GPIO_PIN(PC, 10), + .scl_pin = GPIO_PIN(PC, 11), + .loc = I2C_ROUTELOC0_SDALOC_LOC15 | + I2C_ROUTELOC0_SCLLOC_LOC15, + .cmu = cmuClock_I2C0, + .irq = I2C0_IRQn, + .speed = I2C_SPEED_NORMAL + } }; #define I2C_NUMOF PERIPH_NUMOF(i2c_config)