diff --git a/boards/nrf52840-mdk/Makefile.features b/boards/nrf52840-mdk/Makefile.features index 96e2a7862e..2d67b5507b 100644 --- a/boards/nrf52840-mdk/Makefile.features +++ b/boards/nrf52840-mdk/Makefile.features @@ -1,6 +1,7 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_spi FEATURES_PROVIDED += periph_uart +FEATURES_PROVIDED += periph_i2c # Various other features (if any) FEATURES_PROVIDED += radio_nrf802154 diff --git a/boards/nrf52840-mdk/include/periph_conf.h b/boards/nrf52840-mdk/include/periph_conf.h index 8d92ec2818..5f226ab1a9 100644 --- a/boards/nrf52840-mdk/include/periph_conf.h +++ b/boards/nrf52840-mdk/include/periph_conf.h @@ -65,6 +65,21 @@ static const spi_conf_t spi_config[] = { #define SPI_NUMOF (sizeof(spi_config) / sizeof(spi_config[0])) /** @} */ +/** + * @name I2C configuration + * @{ + */ +static const i2c_conf_t i2c_config[] = { + { + .dev = NRF_TWIM0, + .scl = 27, + .sda = 26, + .speed = I2C_SPEED_NORMAL + } +}; +#define I2C_NUMOF (sizeof(i2c_config) / sizeof(i2c_config[0])) +/** @} */ + #ifdef __cplusplus } #endif