From 85a223245e4bb45a549e750aa8c2c94886099491 Mon Sep 17 00:00:00 2001 From: Jean Pierre Dudey Date: Sun, 24 May 2020 12:22:34 -0500 Subject: [PATCH] boards/cc1352p-launchpad: add I2C configuration Signed-off-by: Jean Pierre Dudey --- boards/cc1352p-launchpad/Makefile.features | 1 + boards/cc1352p-launchpad/include/periph_conf.h | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/boards/cc1352p-launchpad/Makefile.features b/boards/cc1352p-launchpad/Makefile.features index a0f46a550a..d1571d8566 100644 --- a/boards/cc1352p-launchpad/Makefile.features +++ b/boards/cc1352p-launchpad/Makefile.features @@ -2,6 +2,7 @@ CPU = cc26x2_cc13x2 CPU_MODEL = cc1352p1 # Put defined MCU peripherals here (in alphabetical order) +FEATURES_PROVIDED += periph_i2c FEATURES_PROVIDED += periph_gpio FEATURES_PROVIDED += periph_gpio_irq FEATURES_PROVIDED += periph_timer diff --git a/boards/cc1352p-launchpad/include/periph_conf.h b/boards/cc1352p-launchpad/include/periph_conf.h index 4e9733b65f..71d3a9c6ad 100644 --- a/boards/cc1352p-launchpad/include/periph_conf.h +++ b/boards/cc1352p-launchpad/include/periph_conf.h @@ -101,6 +101,15 @@ static const uart_conf_t uart_config[] = { #define UART_NUMOF ARRAY_SIZE(uart_config) /** @} */ +/** + * @name I2C configuration + * @{ + */ +#define I2C_NUMOF (1) +#define I2C_SCL_PIN (21) +#define I2C_SDA_PIN (5) +/** @} */ + #ifdef __cplusplus } #endif