Macros | Functions
gr55xx_ll_clk.h File Reference

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

`#include "gr55xx_hal.h"`
Include dependency graph for gr55xx_ll_clk.h:

Go to the source code of this file.

## Macros
#define | LL_CLK_SEL_SOURCE_CPLL_CLK (0UL)
| Select CPLL clk as the source of the 192MHz clock. More...
#define | LL_CLK_SEL_SOURCE_HF_OSC_CLK (1UL)
| Select hf osc clk as the source of the 192MHz clock. More...
#define | LL_CLK_SEL_FAST_WAKEUP_CPLL_CLK (0UL)
| Select CPLL clk as fast wakeup clk. More...
#define | LL_CLK_SEL_FAST_WAKEUP_HF_OSC_CLK (AON_CTL_AON_CLK_WAKUP_FAST_CLK_SEL_Msk)
| Select hf osc clk as fast wakeup clk. More...
#define | LL_CLK_CPLL_S96M_CLK AON_CTL_MCU_CLK_CTRL_SEL_96M
| Select PLL/HF_OSC 96MHz clk as system clock. More...
#define | LL_CLK_CPLL_S64M_CLK AON_CTL_MCU_CLK_CTRL_SEL_64M
| Select PLL/HF_OSC 64MHz clk as system clock. More...
#define | LL_CLK_XO_S16M_CLK AON_CTL_MCU_CLK_CTRL_SEL_XO_16M
| Select XO 16MHz clk as system clock. More...
#define | LL_CLK_CPLL_F48M_CLK AON_CTL_MCU_CLK_CTRL_SEL_48M
| Select PLL/HF_OSC 48MHz clk as system clock. More...
#define | LL_CLK_CPLL_T24M_CLK AON_CTL_MCU_CLK_CTRL_SEL_24M
| Select PLL/HF_OSC 24MHz clk as system clock. More...
#define | LL_CLK_CPLL_S16M_CLK AON_CTL_MCU_CLK_CTRL_SEL_16M
| Select PLL/HF_OSC 16MHz clk as system clock. More...
#define | LL_CLK_CPLL_T32M_CLK AON_CTL_MCU_CLK_CTRL_SEL_32M
| Select PLL/HF_OSC 32MHz clk as system clock. More...
#define | LL_CLK_AON_CLK_WAKUP_CLK_EN (1 << AON_CTL_AON_CLK_WAKUP_CLK_EN_Pos)
| wakeup clock enable More...
#define | LL_CLK_AON_CLK_WAKUP_CLK_DIS 0
| wakeup clock disable More...
#define | LL_CLK_XO_PLL_PLL_STAT (1UL)
| XO PLL state, PLL. More...
#define | LL_CLK_XO_PLL_XO_STAT (2UL)
| XO PLL state, XO More...
#define | LL_CLK_XO_PLL_HF_STAT (4UL)
| XO PLL state, HF More...

## 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_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_INLINE uint32_t | ll_clk_get_hf_status (void)
| Get XO PLL status. 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.