From 80af295f27f0fc5daaaea04cb249d3ad3704d338 Mon Sep 17 00:00:00 2001 From: Stephane D'Alu Date: Fri, 5 Feb 2016 19:03:47 +0100 Subject: start by a stop --- os/hal/ports/NRF51/NRF51822/hal_lld.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/hal/ports/NRF51/NRF51822') 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 -- cgit v1.2.3