Home
last modified time | relevance | path

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

/hal_infineon-3.4.0/bless/
Dcy_ble_hal_pvt.c795 uint32_t newTrim = 0ul; in Cy_BLE_HAL_TryPiloTrim() local
805 newTrim = curTrim - CY_SYSCLK_DIV_ROUND(piloFreq - targetFreq, stepSize); in Cy_BLE_HAL_TryPiloTrim()
806 if ((int32_t)newTrim < 0) /* limit underflow */ in Cy_BLE_HAL_TryPiloTrim()
808 newTrim = 0u; in Cy_BLE_HAL_TryPiloTrim()
813 newTrim = curTrim + CY_SYSCLK_DIV_ROUND(targetFreq - piloFreq, stepSize); in Cy_BLE_HAL_TryPiloTrim()
814 if (newTrim >= SRSS_CLK_PILO_CONFIG_PILO_FFREQ_Msk) /* limit overflow */ in Cy_BLE_HAL_TryPiloTrim()
816 newTrim = SRSS_CLK_PILO_CONFIG_PILO_FFREQ_Msk; in Cy_BLE_HAL_TryPiloTrim()
819 Cy_SysClk_PiloSetTrim(newTrim); in Cy_BLE_HAL_TryPiloTrim()
822 return ((int32_t)curTrim -(int32_t) newTrim); in Cy_BLE_HAL_TryPiloTrim()