From 29efd8402f6142821b28672a662fe03780aa5c21 Mon Sep 17 00:00:00 2001 From: Sebastian Meiling Date: Tue, 9 Apr 2019 18:07:06 +0200 Subject: [PATCH] boards: add I2C config for cc2650stk --- boards/cc2650stk/Makefile.features | 1 + boards/cc2650stk/include/periph_conf.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/boards/cc2650stk/Makefile.features b/boards/cc2650stk/Makefile.features index c1a98fac3e..fc8955766e 100644 --- a/boards/cc2650stk/Makefile.features +++ b/boards/cc2650stk/Makefile.features @@ -1,5 +1,6 @@ # Put defined MCU peripherals here (in alphabetical order) FEATURES_PROVIDED += periph_gpio periph_gpio_irq +FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_timer FEATURES_PROVIDED += periph_uart diff --git a/boards/cc2650stk/include/periph_conf.h b/boards/cc2650stk/include/periph_conf.h index 4c7825f49e..22d95582e0 100644 --- a/boards/cc2650stk/include/periph_conf.h +++ b/boards/cc2650stk/include/periph_conf.h @@ -78,6 +78,15 @@ static const timer_conf_t timer_config[] = { #define UART_TX_PIN (29) /** @} */ +/** + * @name I2C configuration + * @{ + */ +#define I2C_NUMOF (1) +#define I2C_SDA_PIN (5) +#define I2C_SCL_PIN (6) +/** @} */ + #ifdef __cplusplus } #endif