From 8906084d8014c6257772999a91e6315672dddbee Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Thu, 8 Jun 2017 21:23:30 +0200 Subject: [PATCH] nrf/boards: Activate RTC, Timer, I2C, ADC and HW_SPI module and HAL on pca10031. --- nrf/boards/pca10031/mpconfigboard.h | 5 +++++ nrf/boards/pca10031/nrf51_hal_conf.h | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/nrf/boards/pca10031/mpconfigboard.h b/nrf/boards/pca10031/mpconfigboard.h index 06de2e6440..d8b69e2ede 100644 --- a/nrf/boards/pca10031/mpconfigboard.h +++ b/nrf/boards/pca10031/mpconfigboard.h @@ -30,6 +30,11 @@ #define MICROPY_HW_MCU_NAME "NRF51822" #define MICROPY_PY_SYS_PLATFORM "nrf51-dongle" +#define MICROPY_PY_MACHINE_HW_SPI (1) +#define MICROPY_PY_MACHINE_TIMER (1) +#define MICROPY_PY_MACHINE_RTC (1) +#define MICROPY_PY_MACHINE_I2C (1) +#define MICROPY_PY_MACHINE_ADC (1) #define MICROPY_PY_MACHINE_TEMP (1) #define MICROPY_HW_HAS_LED (1) diff --git a/nrf/boards/pca10031/nrf51_hal_conf.h b/nrf/boards/pca10031/nrf51_hal_conf.h index ecc150fe9e..e83e2d346e 100644 --- a/nrf/boards/pca10031/nrf51_hal_conf.h +++ b/nrf/boards/pca10031/nrf51_hal_conf.h @@ -4,6 +4,10 @@ #define HAL_UART_MODULE_ENABLED #define HAL_SPI_MODULE_ENABLED #define HAL_TIME_MODULE_ENABLED +#define HAL_RTC_MODULE_ENABLED +#define HAL_TIMER_MODULE_ENABLED +#define HAL_TWI_MODULE_ENABLED +#define HAL_ADC_MODULE_ENABLED #define HAL_TEMP_MODULE_ENABLED #endif // NRF51_HAL_CONF_H__