Searched refs:peripheral_frequency (Results 1 – 1 of 1) sorted by relevance
374 uint32_t peripheral_frequency; in XMC_CAN_Init() local380 peripheral_frequency = XMC_CAN_GetBaudrateClockFrequency(obj); in XMC_CAN_Init()382 XMC_ASSERT("XMC_CAN_Init: frequency not supported", can_frequency <= peripheral_frequency); in XMC_CAN_Init()385 step_n = (uint32_t)min(max(0U, (1024U - (peripheral_frequency / can_frequency))), 1023U); in XMC_CAN_Init()386 freq_n = (uint32_t) (peripheral_frequency / (1024U - step_n)); in XMC_CAN_Init()390 peripheral_frequency_khz = (uint32_t)(peripheral_frequency >> 6); in XMC_CAN_Init()418 uint32_t peripheral_frequency = (XMC_SCU_CLOCK_GetPeripheralClockFrequency()); in XMC_CAN_Init() local420 XMC_ASSERT("XMC_CAN_Init: frequency not supported", can_frequency <= peripheral_frequency); in XMC_CAN_Init()426 step_n = (uint32_t)min(max(0U, (1024U - (peripheral_frequency / can_frequency))), 1023U); in XMC_CAN_Init()427 freq_n = (uint32_t) (peripheral_frequency / (1024U - step_n)); in XMC_CAN_Init()[all …]