Home
last modified time | relevance | path

Searched refs:pcTop (Results 1 – 2 of 2) sorted by relevance

/hal_silabs-latest/gecko/emlib/src/
Dem_lesense.c302 uint32_t pcTop = 255UL; /* Period counter top value (max. 255). */ in LESENSE_ScanFreqSet() local
304 uint32_t pcTop = 63UL; /* Period counter top value (max. 63). */ in LESENSE_ScanFreqSet() local
344 while ((refFreq / ((uint32_t)scanFreq * clkDiv) > (pcTop + 1UL)) in LESENSE_ScanFreqSet()
351 pcTop = ((uint32_t)refFreq / ((uint32_t)scanFreq * clkDiv)) - 1UL; in LESENSE_ScanFreqSet()
352 EFM_ASSERT(pcTop <= (_LESENSE_TIMCTRL_PCTOP_MASK >> _LESENSE_TIMCTRL_PCTOP_SHIFT)); in LESENSE_ScanFreqSet()
361 | ((uint32_t)pcTop << _LESENSE_TIMCTRL_PCTOP_SHIFT); in LESENSE_ScanFreqSet()
367 calcScanFreq = ((uint32_t)refFreq / ((uint32_t)(1UL + pcTop) * clkDiv)); in LESENSE_ScanFreqSet()
/hal_silabs-latest/simplicity_sdk/platform/emlib/src/
Dem_lesense.c302 uint32_t pcTop = 255UL; /* Period counter top value (max. 255). */ in LESENSE_ScanFreqSet() local
304 uint32_t pcTop = 63UL; /* Period counter top value (max. 63). */ in LESENSE_ScanFreqSet() local
344 while ((refFreq / ((uint32_t)scanFreq * clkDiv) > (pcTop + 1UL)) in LESENSE_ScanFreqSet()
351 pcTop = ((uint32_t)refFreq / ((uint32_t)scanFreq * clkDiv)) - 1UL; in LESENSE_ScanFreqSet()
352 EFM_ASSERT(pcTop <= (_LESENSE_TIMCTRL_PCTOP_MASK >> _LESENSE_TIMCTRL_PCTOP_SHIFT)); in LESENSE_ScanFreqSet()
361 | ((uint32_t)pcTop << _LESENSE_TIMCTRL_PCTOP_SHIFT); in LESENSE_ScanFreqSet()
367 calcScanFreq = ((uint32_t)refFreq / ((uint32_t)(1UL + pcTop) * clkDiv)); in LESENSE_ScanFreqSet()