From 1908537785516004f2014ccb2d6db31a2fe56173 Mon Sep 17 00:00:00 2001 From: Stephane D'Alu Date: Sun, 10 Jul 2016 00:23:12 +0200 Subject: use constantes --- os/hal/ports/NRF5/LLD/hal_st_lld.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/os/hal/ports/NRF5/LLD/hal_st_lld.c b/os/hal/ports/NRF5/LLD/hal_st_lld.c index 3a988a8..a2c1a8f 100644 --- a/os/hal/ports/NRF5/LLD/hal_st_lld.c +++ b/os/hal/ports/NRF5/LLD/hal_st_lld.c @@ -278,7 +278,7 @@ void st_lld_init(void) { * Using 32-bit mode with prescaler 16 configures this * timer with a 1MHz clock. */ - NRF_TIMER0->BITMODE = 3; + NRF_TIMER0->BITMODE = TIMER_BITMODE_BITMODE_32Bit; NRF_TIMER0->PRESCALER = 4; /* @@ -287,7 +287,7 @@ void st_lld_init(void) { */ NRF_TIMER0->CC[0] = (1000000 / OSAL_ST_FREQUENCY) - 1; NRF_TIMER0->SHORTS = 1; - NRF_TIMER0->INTENSET = 0x10000; + NRF_TIMER0->INTENSET = TIMER_INTENSET_COMPARE0_Msk; /* Start timer */ nvicEnableVector(TIMER0_IRQn, NRF51_ST_PRIORITY); -- cgit v1.2.3