Macros | Functions
ll_clk.h File Reference

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

`#include "gr5x.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_SLOW_CLK_RNG AON_CTL_MCU_SLOW_CLK_CTRL_SEL_RNG
#define | LL_SLOW_CLK_RC AON_CTL_MCU_SLOW_CLK_CTRL_SEL_RC
#define | LL_SLOW_CLK_RTC AON_CTL_MCU_SLOW_CLK_CTRL_SEL_RTC
#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_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_XO_PLL_PLL_STAT (1UL)
#define | LL_CLK_XO_PLL_XO_STAT (2UL)
#define | LL_CLK_XO_PLL_HF_STAT (4UL)
#define | LL_AON_SLOW_CLK_256K (0UL)
#define | LL_AON_SLOW_CLK_32K (1UL)

## 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_select_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...
__STATIC_INLINE uint32_t | ll_clk_get_sys_slow_clk (void)
| Get system slow clock. More...
__STATIC_INLINE void | ll_clk_set_sys_slow_clk (uint32_t clk_sel)
| Set system clock. More...
__STATIC_INLINE void | ll_clk_set_aon_slow_clk (uint32_t clk_sel)
| Set system clock. 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 ll_clk.h.