Macros | Functions
gr55xx_ll_clk.h File Reference

Header file containing functions prototypes of CLOCK LL library. More...

`#include "gr55xx_hal.h"`

Go to the source code of this file.

## Macros
#define | LL_CLK_SEL_SOURCE_CPLL_CLK (0UL)
#define | LL_CLK_SEL_SOURCE_HF_OSC_CLK (1UL)
#define | LL_CLK_SEL_FAST_WAKEUP_CPLL_CLK (0UL)
#define | LL_CLK_SEL_FAST_WAKEUP_HF_OSC_CLK (AON_CTL_AON_CLK_WAKUP_FAST_CLK_SEL_Msk)
#define | LL_CLK_CPLL_S96M_CLK AON_CTL_MCU_CLK_CTRL_SEL_96M
#define | LL_CLK_CPLL_S64M_CLK AON_CTL_MCU_CLK_CTRL_SEL_64M
#define | LL_CLK_XO_S16M_CLK AON_CTL_MCU_CLK_CTRL_SEL_XO_16M
#define | LL_CLK_CPLL_F48M_CLK AON_CTL_MCU_CLK_CTRL_SEL_48M
#define | LL_CLK_CPLL_T24M_CLK AON_CTL_MCU_CLK_CTRL_SEL_24M
#define | LL_CLK_CPLL_S16M_CLK AON_CTL_MCU_CLK_CTRL_SEL_16M
#define | LL_CLK_CPLL_T32M_CLK AON_CTL_MCU_CLK_CTRL_SEL_32M
#define | LL_CLK_AON_CLK_WAKUP_CLK_EN (1 << AON_CTL_AON_CLK_WAKUP_CLK_EN_Pos)
#define | LL_CLK_AON_CLK_WAKUP_CLK_DIS 0
#define | LL_CLK_XO_PLL_PLL_STAT (1UL)
#define | LL_CLK_XO_PLL_XO_STAT (2UL)
#define | LL_CLK_XO_PLL_HF_STAT (4UL)

## Functions
__STATIC_INLINE uint32_t | ll_clk_get_sys_clk (void)
| Get system clock. More...
__STATIC_INLINE void | ll_clk_set_sys_clk (uint32_t clk_sel)
| Set system clock. More...
__STATIC_INLINE void | ll_clk_set_slow_clk (uint32_t clk_sel)
| Set slow clock. More...
__STATIC_INLINE void | ll_clk_set_aon_clk_wakeup_clk_en (uint32_t wakeup_clk_en)
| set AON_CTL_AON_CLK_WAKUP_CLK_EN bit More...
__STATIC_INLINE void | ll_clk_select_source (uint32_t src_sel)
| Select clock source. More...
__STATIC_INLINE void | ll_clk_select_fast_wakeup_source (uint32_t src_sel)
| Select clock source. More...
__STATIC_INLINE void | ll_clk_start_xo_pll (void)
| start XO and PLL More...
__STATIC_INLINE void | ll_clk_stop_xo_pll (void)
| stop XO and PLL More...
__STATIC_FORCEINLINE uint32_t | ll_clk_get_hf_status (void)
| Get XO PLL status. More...
__STATIC_INLINE void | ll_clk_set_aon_pwr_saving_en (uint32_t en)
| set AON_CTL_AON_PWR_SAVING_EN bit More...

## Detailed Description

Header file containing functions prototypes of CLOCK LL library.

Author
  BLE Driver Team

Attention
  #####Copyright (c) 2019 GOODIX All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. Neither the name of GOODIX nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file gr55xx_ll_clk.h.