Home
last modified time | relevance | path

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

/hal_infineon-3.4.0/XMCLib/drivers/src/
Dxmc_usic.c201 uint32_t divider_step; in XMC_USIC_CH_SetBaudrateEx() local
206 divider_step = peripheral_clock / brg_clock; // integer division gets truncated in XMC_USIC_CH_SetBaudrateEx()
207 while (divider_step >= 1023) in XMC_USIC_CH_SetBaudrateEx()
211 divider_step = peripheral_clock / brg_clock; // integer division gets truncated in XMC_USIC_CH_SetBaudrateEx()
213 actual_rate_upper = peripheral_clock / (divider_step * oversampling * pdiv); in XMC_USIC_CH_SetBaudrateEx()
214 actual_rate_lower = peripheral_clock / ((divider_step + 1) * oversampling * pdiv); in XMC_USIC_CH_SetBaudrateEx()
219 divider_step += 1; in XMC_USIC_CH_SetBaudrateEx()
222 divider_step = 1024 - divider_step; in XMC_USIC_CH_SetBaudrateEx()
226 (divider_step << USIC_CH_FDR_STEP_Pos); in XMC_USIC_CH_SetBaudrateEx()