This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

timer in microsecond on nRF52840

hello , i'am working actually on the timer of nRF52840 S140  

my timer look like this: 

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#define COMPTEUR_INTERVAL APP_TIMER_TICKS(1) /**< Tick / Ms */
APP_TIMER_DEF(sd_timer_id);
static void lfclk_request(void)
{
ret_code_t err_code;// = nrf_drv_clock_init();
APP_ERROR_CHECK(err_code);
nrf_drv_clock_lfclk_request(NULL);
NRF_LOG_INFO("LFCLK: OFF");
if(nrf_drv_clock_lfclk_is_running()){
NRF_LOG_INFO("LFCLK: ON");
}
}
void test(){
ret_code_t err_code;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

but  how to switch from millisecond resolution to microsecond resolution ? ( APP_TIMER_TICKS) 

thank's