#ifndef NRF51_HAL_CONF_H__
#define NRF51_HAL_CONF_H__

#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

#endif // NRF51_HAL_CONF_H__

#ifndef NRF51_HAL_CONF_H__
#define NRF51_HAL_CONF_H__

#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

#endif // NRF51_HAL_CONF_H__

--- 
+++ 
@@ -2,9 +2,9 @@
 #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
+// #define HAL_RTC_MODULE_ENABLED
+// #define HAL_TIMER_MODULE_ENABLED
 
 #endif // NRF51_HAL_CONF_H__
nrf5/boards: Disable SPI/Timer/RTC hal from microbit board.
