Searched refs:clkdiv (Results 1 – 6 of 6) sorted by relevance
318 uint32_t clkdiv; in USART_BaudrateAsyncSet() local402 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 …]
125 uint32_t LEUART_BaudrateCalc(uint32_t refFreq, uint32_t clkdiv) in LEUART_BaudrateCalc() argument133 clkdiv &= _LEUART_CLKDIV_MASK; in LEUART_BaudrateCalc()172 divisor = 256 + clkdiv; in LEUART_BaudrateCalc()250 uint32_t clkdiv; in LEUART_BaudrateSet() local302 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()
94 uint32_t clkdiv,516 uint32_t clkdiv; in EUSART_BaudrateSet() local537 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 …]
130 uint32_t LEUART_BaudrateCalc(uint32_t refFreq, uint32_t clkdiv);
745 uint32_t clkdiv,
1276 CMU_ClkDiv_TypeDef clkdiv,