mbed library sources
Fork of mbed-src by
Diff: targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c
- Revision:
- 598:2d5fc5624619
- Parent:
- 501:36015dec7d16
- Child:
- 603:3c75ef011213
--- a/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c Mon Jul 27 09:45:08 2015 +0100 +++ b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c Wed Jul 29 09:45:09 2015 +0100 @@ -83,7 +83,8 @@ // Start the external 32khz crystal oscillator. -#if defined(TARGET_DELTA_DFCM_NNN40) || defined(TARGET_HRM1017) + /* for Nordic devices without an external LF crystal */ +#if defined(TARGET_NRF_LFCLK_RC) NRF_CLOCK->LFCLKSRC = (CLOCK_LFCLKSRC_SRC_RC << CLOCK_LFCLKSRC_SRC_Pos); #else NRF_CLOCK->LFCLKSRC = (CLOCK_LFCLKSRC_SRC_Xtal << CLOCK_LFCLKSRC_SRC_Pos);