Hi,
I'm trying to use timers 1, 2 and 3 in my application which also uses the app_timer. It works fine when I'm just use 1 & 2 but after inserting the following code to use the third timer I'm getting an error:
const nrf_drv_timer_t m_timer = NRF_DRV_TIMER_INSTANCE(3);
This throws the error: static_assert failed due to requirement 'sizeof(timer_node_t) == 32' "unspecified message"
All the timers are enabled in sdk_cfg.h (NRFX_TIMERx_ENABLED and TIMERx_ENABLED).
The error source is this line of code in app_timer.c:
STATIC_ASSERT(sizeof(timer_node_t) == APP_TIMER_NODE_SIZE);
I have changed the value from APP_TIMER_NODE_SIZE in app_timer.h from 32 to 40 or 64. Then I'm getting another error: static assertion failed: "unspecified message".
The error source is the same line in app_timer.c as above:
STATIC_ASSERT(sizeof(timer_node_t) == APP_TIMER_NODE_SIZE);
My questions is how can I use more than two timers?
Thanks,
Roger