mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
Revision 308:29bf8b44dbf6, committed 2014-09-05
- Comitter:
- mbed_official
- Date:
- Fri Sep 05 15:30:07 2014 +0100
- Parent:
- 307:e2f2e83d7c41
- Child:
- 309:8f72041da6ba
- Commit message:
- Synchronized with git revision bd60f756917bef0b8d4e877f2f02711eff5a0547
Full URL: https://github.com/mbedmicro/mbed/commit/bd60f756917bef0b8d4e877f2f02711eff5a0547/
Changed in this revision
targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51822.c | Show annotated file Show diff for this revision Revisions of this file |
--- a/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51822.c Fri Sep 05 10:30:06 2014 +0100 +++ b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51822.c Fri Sep 05 15:30:07 2014 +0100 @@ -66,7 +66,12 @@ } // Start the external 32khz crystal oscillator. + +#ifdef TARGET_HRM1017 + NRF_CLOCK->LFCLKSRC = (CLOCK_LFCLKSRC_SRC_RC << CLOCK_LFCLKSRC_SRC_Pos); +#else NRF_CLOCK->LFCLKSRC = (CLOCK_LFCLKSRC_SRC_Xtal << CLOCK_LFCLKSRC_SRC_Pos); +#endif NRF_CLOCK->EVENTS_LFCLKSTARTED = 0; NRF_CLOCK->TASKS_LFCLKSTART = 1;