Hi,
as follow is nRF5 SDK code to create a timer ms.
how to create a timer ms on nRF Connect SDK ?
APP_TIMER_DEF(m_timer_speed_1ms);
int timer_lms=0;
static void timer_1ms_handler(void * p_context)
{
timer_lms++;
}
void main()
{
ret_code_t err_code = app_timer_create(&m_timer_speed_1ms, APP_TIMER_MODE_REPEATED, timer_1ms_handler);
APP_ERROR_CHECK(app_timer_start(m_timer_speed_1ms, APP_TIMER_TICKS(1),NULL));
for (;;){idle_state_handle();}
}
thank a lot