From 1c756af9a4597358fd1c9ac244227b2aacde4e00 Mon Sep 17 00:00:00 2001 From: Glenn Ruben Bakke Date: Sun, 30 Apr 2017 20:18:46 +0200 Subject: [PATCH] nrf5/modules/timer: Adding timer3 and timer4 to timer object in case of nrf52 target. --- nrf5/modules/machine/timer.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nrf5/modules/machine/timer.c b/nrf5/modules/machine/timer.c index 9a3403b2b5..16c466c89a 100644 --- a/nrf5/modules/machine/timer.c +++ b/nrf5/modules/machine/timer.c @@ -44,10 +44,19 @@ static hal_timer_conf_t timer_config0 = {.id = 0}; static hal_timer_conf_t timer_config1 = {.id = 1}; static hal_timer_conf_t timer_config2 = {.id = 2}; +#if NRF52 +static hal_timer_conf_t timer_config3 = {.id = 3}; +static hal_timer_conf_t timer_config4 = {.id = 4}; +#endif + STATIC const machine_timer_obj_t machine_timer_obj[] = { {{&machine_timer_type}, &timer_config0}, {{&machine_timer_type}, &timer_config1}, {{&machine_timer_type}, &timer_config2}, +#if NRF52 + {{&machine_timer_type}, &timer_config3}, + {{&machine_timer_type}, &timer_config4}, +#endif }; void timer_init0(void) {