PSoC 6 Peripheral Driver Library

General Description

Functions

__STATIC_INLINE uint32_t Cy_SysClk_AltHfGetFrequency (void)
 Reports the frequency of the Alternative High-Frequency Clock. More...
 

Function Documentation

◆ Cy_SysClk_AltHfGetFrequency()

__STATIC_INLINE uint32_t Cy_SysClk_AltHfGetFrequency ( void  )

Reports the frequency of the Alternative High-Frequency Clock.

Function Usage
/* BLE ECO configuration: ECO Frequency: 32 MHZ, Divider: 2 */
/* Start-up time(uS): 1500, Load cap(pF): 9.9 */
uint32_t startTime = (uint32_t)(1500 / 31.25);
uint32_t loadCap = (uint32_t)((9.9 - 7.5) / 0.075);
/* Configure the BLE ECO clock */
/* In case if there is a need to get the BLE ECO frequency */
uint32_t bleEcoFreq = Cy_SysClk_AltHfGetFrequency();