nrf5/modules/timer: Adding timer3 and timer4 to timer object in case of nrf52 target.

This commit is contained in:
Glenn Ruben Bakke 2017-04-30 20:18:46 +02:00
parent a0638880b3
commit 1c756af9a4

View File

@ -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) {