nrf/boards: Activate RTC, Timer, I2C and ADC module and HAL on pca10001.

This commit is contained in:
Glenn Ruben Bakke 2017-06-08 21:06:27 +02:00
parent 4b4fee8b78
commit 362e2946a5
2 changed files with 5 additions and 1 deletions

View File

@ -31,6 +31,10 @@
#define MICROPY_PY_SYS_PLATFORM "nrf51-DK"
#define MICROPY_PY_MACHINE_HW_SPI (0)
#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)

View File

@ -2,7 +2,7 @@
#define NRF51_HAL_CONF_H__
#define HAL_UART_MODULE_ENABLED
// #define HAL_SPI_MODULE_ENABLED
#define HAL_SPI_MODULE_ENABLED
#define HAL_TIME_MODULE_ENABLED
#define HAL_RTC_MODULE_ENABLED
#define HAL_TIMER_MODULE_ENABLED