Home
last modified time | relevance | path

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

/hal_infineon-3.4.0/XMCLib/drivers/src/
Dxmc_usic.c138 uint32_t peripheral_clock; in XMC_USIC_CH_SetBaudrate() local
153 peripheral_clock = XMC_SCU_CLOCK_GetPeripheralClockFrequency() / 100U; in XMC_USIC_CH_SetBaudrate()
162 pdiv = ((peripheral_clock * clock_divider) / (rate * oversampling)); in XMC_USIC_CH_SetBaudrate()
196 int32_t peripheral_clock = XMC_SCU_CLOCK_GetPeripheralClockFrequency(); in XMC_USIC_CH_SetBaudrateEx() local
204 if (peripheral_clock > brg_clock) in XMC_USIC_CH_SetBaudrateEx()
206 divider_step = peripheral_clock / brg_clock; // integer division gets truncated 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()
Dxmc_spi.c237 uint32_t peripheral_clock; in XMC_SPI_CH_SetInterwordDelay() local
249 peripheral_clock = XMC_SCU_CLOCK_GetPeripheralClockFrequency(); in XMC_SPI_CH_SetInterwordDelay()
252 fFD = (uint32_t)((peripheral_clock >> 10U) * step); in XMC_SPI_CH_SetInterwordDelay()