aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/NRF51/NRF51822
diff options
context:
space:
mode:
authorStephane D'Alu <sdalu@sdalu.com>2016-02-05 19:03:47 +0100
committerStephane D'Alu <sdalu@sdalu.com>2016-02-05 19:03:47 +0100
commit80af295f27f0fc5daaaea04cb249d3ad3704d338 (patch)
tree7b8ac7f1afc005d36ca8ca0f5c13f247e4c07c4e /os/hal/ports/NRF51/NRF51822
parentff98f192c2698f40d84d14bb6a538e79323b72ef (diff)
downloadChibiOS-Contrib-80af295f27f0fc5daaaea04cb249d3ad3704d338.tar.gz
ChibiOS-Contrib-80af295f27f0fc5daaaea04cb249d3ad3704d338.tar.bz2
ChibiOS-Contrib-80af295f27f0fc5daaaea04cb249d3ad3704d338.zip
start by a stop
Diffstat (limited to 'os/hal/ports/NRF51/NRF51822')
-rw-r--r--os/hal/ports/NRF51/NRF51822/hal_lld.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/os/hal/ports/NRF51/NRF51822/hal_lld.c b/os/hal/ports/NRF51/NRF51822/hal_lld.c
index 3e74068..30fe6c0 100644
--- a/os/hal/ports/NRF51/NRF51822/hal_lld.c
+++ b/os/hal/ports/NRF51/NRF51822/hal_lld.c
@@ -58,6 +58,7 @@ void hal_lld_init(void)
/* High frequency clock initialisation
* (If NRF51_XTAL_VALUE is not defined assume its an RC oscillator)
*/
+ NRF_CLOCK->TASKS_HFCLKSTOP = 1;
#if defined(NRF51_XTAL_VALUE)
#if NRF51_XTAL_VALUE == 16000000
NRF_CLOCK->XTALFREQ = 0xFF;
@@ -65,7 +66,6 @@ void hal_lld_init(void)
NRF_CLOCK->XTALFREQ = 0x00;
#endif
#endif
- NRF_CLOCK->TASKS_HFCLKSTOP = 1;
/* Low frequency clock initialisation
* If source not specified, use the internal RC (0) which is prefered