From 8ca63e71967b759a699edbf807dc4fd184831c5d Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Wed, 11 Jan 2017 16:52:45 +0100 Subject: [PATCH] nrf5/boards: Enable TWI hal for pca10028 (nrf51), pca10040 (nrf52832) and pca10056 (nrf52840) boards. --- nrf5/boards/pca10028/nrf51_hal_conf.h | 1 + nrf5/boards/pca10040/nrf52_hal_conf.h | 6 ++++-- nrf5/boards/pca10056/nrf52_hal_conf.h | 8 ++++++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/nrf5/boards/pca10028/nrf51_hal_conf.h b/nrf5/boards/pca10028/nrf51_hal_conf.h index 4bd11e1dd5..160574ba3c 100644 --- a/nrf5/boards/pca10028/nrf51_hal_conf.h +++ b/nrf5/boards/pca10028/nrf51_hal_conf.h @@ -6,5 +6,6 @@ #define HAL_TIME_MODULE_ENABLED #define HAL_RTC_MODULE_ENABLED #define HAL_TIMER_MODULE_ENABLED +#define HAL_TWI_MODULE_ENABLED #endif // NRF51_HAL_CONF_H__ diff --git a/nrf5/boards/pca10040/nrf52_hal_conf.h b/nrf5/boards/pca10040/nrf52_hal_conf.h index f19e49744b..b375d9aac7 100644 --- a/nrf5/boards/pca10040/nrf52_hal_conf.h +++ b/nrf5/boards/pca10040/nrf52_hal_conf.h @@ -2,12 +2,14 @@ #define NRF52_HAL_CONF_H__ #define HAL_UART_MODULE_ENABLED -// #define HAL_UARTE_MODULE_ENABLED #define HAL_SPI_MODULE_ENABLED -// #define HAL_SPIE_MODULE_ENABLED #define HAL_TIME_MODULE_ENABLED #define HAL_PWM_MODULE_ENABLED #define HAL_RTC_MODULE_ENABLED #define HAL_TIMER_MODULE_ENABLED +#define HAL_TWI_MODULE_ENABLED +// #define HAL_UARTE_MODULE_ENABLED +// #define HAL_SPIE_MODULE_ENABLED +// #define HAL_TWIE_MODULE_ENABLED #endif // NRF52_HAL_CONF_H__ diff --git a/nrf5/boards/pca10056/nrf52_hal_conf.h b/nrf5/boards/pca10056/nrf52_hal_conf.h index 1ea1005c3c..b375d9aac7 100644 --- a/nrf5/boards/pca10056/nrf52_hal_conf.h +++ b/nrf5/boards/pca10056/nrf52_hal_conf.h @@ -2,10 +2,14 @@ #define NRF52_HAL_CONF_H__ #define HAL_UART_MODULE_ENABLED -// #define HAL_UARTE_MODULE_ENABLED #define HAL_SPI_MODULE_ENABLED -// #define HAL_SPIE_MODULE_ENABLED #define HAL_TIME_MODULE_ENABLED #define HAL_PWM_MODULE_ENABLED +#define HAL_RTC_MODULE_ENABLED +#define HAL_TIMER_MODULE_ENABLED +#define HAL_TWI_MODULE_ENABLED +// #define HAL_UARTE_MODULE_ENABLED +// #define HAL_SPIE_MODULE_ENABLED +// #define HAL_TWIE_MODULE_ENABLED #endif // NRF52_HAL_CONF_H__