diff options
author | Stephane D'Alu <sdalu@sdalu.com> | 2016-07-10 00:23:12 +0200 |
---|---|---|
committer | Stephane D'Alu <sdalu@sdalu.com> | 2016-07-10 00:23:12 +0200 |
commit | 1908537785516004f2014ccb2d6db31a2fe56173 (patch) | |
tree | 4a14e60570bd814b52ead4420c69d96c454ba70b | |
parent | 7557cbac22ac5da99fa5681f3d311277bebbbaae (diff) | |
download | ChibiOS-Contrib-1908537785516004f2014ccb2d6db31a2fe56173.tar.gz ChibiOS-Contrib-1908537785516004f2014ccb2d6db31a2fe56173.tar.bz2 ChibiOS-Contrib-1908537785516004f2014ccb2d6db31a2fe56173.zip |
use constantes
-rw-r--r-- | os/hal/ports/NRF5/LLD/hal_st_lld.c | 4 |
1 files 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);
|