Home
last modified time | relevance | path

Searched refs:clkdiv (Results 1 – 6 of 6) sorted by relevance

/hal_silabs-3.5.0/gecko/emlib/src/
Dem_usart.c318 uint32_t clkdiv; in USART_BaudrateAsyncSet() local
402 clkdiv = 4 * refFreq + (oversample * baudrate) / 2; in USART_BaudrateAsyncSet()
403 clkdiv /= oversample * baudrate; in USART_BaudrateAsyncSet()
404 clkdiv -= 4; in USART_BaudrateAsyncSet()
405 clkdiv *= 64; in USART_BaudrateAsyncSet()
408 clkdiv = 32 * refFreq + (oversample * baudrate) / 2; in USART_BaudrateAsyncSet()
409 clkdiv /= oversample * baudrate; in USART_BaudrateAsyncSet()
410 clkdiv -= 32; in USART_BaudrateAsyncSet()
411 clkdiv *= 8; in USART_BaudrateAsyncSet()
415 EFM_ASSERT(clkdiv <= CLKDIV_MASK); in USART_BaudrateAsyncSet()
[all …]
Dem_leuart.c125 uint32_t LEUART_BaudrateCalc(uint32_t refFreq, uint32_t clkdiv) in LEUART_BaudrateCalc() argument
133 clkdiv &= _LEUART_CLKDIV_MASK; in LEUART_BaudrateCalc()
172 divisor = 256 + clkdiv; in LEUART_BaudrateCalc()
250 uint32_t clkdiv; in LEUART_BaudrateSet() local
302 clkdiv = (32 * refFreq) / baudrate; in LEUART_BaudrateSet()
303 clkdiv -= 32; in LEUART_BaudrateSet()
304 clkdiv *= 8; in LEUART_BaudrateSet()
307 EFM_ASSERT(clkdiv <= _LEUART_CLKDIV_MASK); in LEUART_BaudrateSet()
310 clkdiv &= _LEUART_CLKDIV_MASK; in LEUART_BaudrateSet()
315 leuart->CLKDIV = clkdiv; in LEUART_BaudrateSet()
Dem_eusart.c94 uint32_t clkdiv,
516 uint32_t clkdiv; in EUSART_BaudrateSet() local
537 clkdiv = refFreq / baudrate - 1UL; in EUSART_BaudrateSet()
541 EFM_ASSERT(clkdiv <= (_EUSART_CFG2_SDIV_MASK >> _EUSART_CFG2_SDIV_SHIFT)); in EUSART_BaudrateSet()
564 …eusart->CFG2 = (eusart->CFG2 & ~(_EUSART_CFG2_SDIV_MASK)) | ((clkdiv << _EUSART_CFG2_SDIV_SHIFT) &… in EUSART_BaudrateSet()
645 clkdiv = (32 * refFreq) / (baudrate * oversample); in EUSART_BaudrateSet()
646 clkdiv -= 32; in EUSART_BaudrateSet()
647 clkdiv *= 8; in EUSART_BaudrateSet()
650 EFM_ASSERT(clkdiv <= _EUSART_CLKDIV_MASK); in EUSART_BaudrateSet()
653 clkdiv &= _EUSART_CLKDIV_MASK; in EUSART_BaudrateSet()
[all …]
/hal_silabs-3.5.0/gecko/emlib/inc/
Dem_leuart.h130 uint32_t LEUART_BaudrateCalc(uint32_t refFreq, uint32_t clkdiv);
Dem_usart.h745 uint32_t clkdiv,
Dem_cmu.h1276 CMU_ClkDiv_TypeDef clkdiv,