Platform/ECM3532/M3/hw/hal/common/timer/src/timer_hal.c
/**
 * hal timer resolution
 *
 * Get the resolution of the timer
 *
 * @param iTmrCh timer channel
 *
 * @return uint32_t
 */
hal timer resolution
Get the resolution of the timer

@param iTmrCh timer channel


hal timer resolution Get the resolution of the timer @param iTmrCh timer channel
uint32_t HalTimerResolution(tHalTmrCh iTmrCh)
{
    const struct sDevTmr *sDev;
    sDev = TmrGetDev(iTmrCh);
    if (sDev == NULL) {
        return 0;
    }
   return 1000000000 / HAL_TIMER_FREQ_HZ;
}
uint32_t HalTimerResolution ( tHalTmrCh iTmrCh ) { const struct sDevTmr * sDev ; sDev = TmrGetDev ( iTmrCh ) ; if ( sDev == NULL ) { return 0 ; } return 1000000000 / HAL_TIMER_FREQ_HZ ; }
hal timer resolution
 Get the resolution of the timer
hal timer resolution Get the resolution of the timer