/* Get the resolution of the timer. This is the timer period, in nanoseconds */
uint32_t hal_timer_get_resolution(int timer_num)
/* Get the resolution of the timer. This is the timer period, in nanoseconds */
uint32_t hal_timer_get_resolution(int timer_num)
{
    int rc;
    uint32_t resolution;
    struct nrf52_hal_timer *bsptimer;
    NRF52_HAL_TIMER_RESOLVE(timer_num, bsptimer);
    resolution = 1000000000 / bsptimer->tmr_freq;
    return resolution;
    err:
    rc = 0;
    return rc;
}