/***************************************************************************//** * \file cy_ble_clk.h * \version 3.60 * * The header file of the BLE ECO clock driver. * ******************************************************************************** * \copyright * Copyright 2017-2020 Cypress Semiconductor Corporation * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. *******************************************************************************/ /** * \addtogroup group_ble_clk * \{ * This driver provides an API to manage the BLE ECO clock block. * * The functions and other declarations used in this driver are in cy_ble_clk.h. * You can include cy_pdl.h to get access to all functions * and declarations in the PDL. * * The BLE ECO clock is a high-accuracy high-frequency clock that feeds the * link-layer controller and the radio Phy. * * This clock is also an input to the system resources subsystem as an * alternative high-frequency clock source (ALTHF). * * \section group_ble_configuration_considerations Configuration Considerations * To configure the BLE ECO clock, call Cy_BLE_EcoConfigure(). * * The following code shows how to configure the BLE ECO clock: * \snippet bleclk/snippet/main.c BLE ECO clock API: Cy_BLE_EcoConfigure() * * \section group_ble_clk_more_information More Information * See the BLE chapter of the device technical reference manual (TRM). * * \section group_ble_clk_changelog Changelog *
Version | Changes | Reason of Change |
---|---|---|
3.60 | *MISRA | *Resolve MISRA 2012 standard defects. | *
3.50 | *Updated \ref Cy_BLE_EcoConfigure, \ref Cy_BLE_EcoReset functions * for PSoC 64 devices. Now the \ref Cy_BLE_EcoConfigure function can * return PRA driver status value for PSoC 64 devices. | *The BLE ECO clock driver uses the PRA driver to change the frequency * value on the protected side. A BLE ECO clock driver function that * calls a PRA driver function will return the PRA error status code * if the called PRA function returns an error. In these cases, * refer to PRA return statuses. Refer to functions description for * details. | *
3.40.1 | *Minor documentation updates. | *Documentation enhancement. | *
3.40 | *A new API function \ref Cy_BLE_EcoIsEnabled() is added. | *API enhancement. | *
3.30 | *Updated the \ref Cy_BLE_EcoConfigure() to reuse the \ref Cy_SysClk_ClkPeriGetFrequency(). | *API enhancement. | *
3.20 | *Updated the Cy_BLE_EcoConfigure(): it stores the ECO frequency for possible frequency calculation by the Cy_SysClk_ClkHfGetFrequency(). | *API enhancement. | *
3.10 | *Updated the Cy_BLE_EcoConfigure() use case, when the voltageReg parameter is CY_BLE_ECO_VOLTAGE_REG_BLESSLDO * and the Buck core regulator is enabled. | *Defect fixing: Before, when the Cy_BLE_EcoConfigure() function included the BLE LDO regulator option, the function returned CY_BLE_ECO_HARDWARE_ERROR if * the Buck core regulator had been enabled. | *
3.0 | *The initial version. \n The functionality of the BLE ECO clock is migrated from the BLE Middleware to the separated driver (ble_clk). | *Independent usage of BLE ECO clock without BLE Middleware. | *