Searched refs:peripheral_clock (Results 1 – 2 of 2) sorted by relevance
138 uint32_t peripheral_clock; in XMC_USIC_CH_SetBaudrate() local153 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() local204 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()
237 uint32_t peripheral_clock; in XMC_SPI_CH_SetInterwordDelay() local249 peripheral_clock = XMC_SCU_CLOCK_GetPeripheralClockFrequency(); in XMC_SPI_CH_SetInterwordDelay()252 fFD = (uint32_t)((peripheral_clock >> 10U) * step); in XMC_SPI_CH_SetInterwordDelay()