| M480 BSP V3.05.001 The Board Support Package for M480 Series

Functions
clk.c File Reference

M480 series CLK driver source file. More...

`#include "NuMicro.h"`

Go to the source code of this file.

## Functions
void | CLK_DisableCKO (void)
| Disable clock divider output function. More...
void | CLK_EnableCKO (uint32_t u32ClkSrc, uint32_t u32ClkDiv, uint32_t u32ClkDivBy1En)
| This function enable clock divider output module clock, enable clock divider output function and set frequency selection. More...
void | CLK_PowerDown (void)
| Enter to Power-down mode. More...
void | CLK_Idle (void)
| Enter to Idle mode. More...
uint32_t | CLK_GetHXTFreq (void)
| Get external high speed crystal clock frequency. More...
uint32_t | CLK_GetLXTFreq (void)
| Get external low speed crystal clock frequency. More...
uint32_t | CLK_GetPCLK0Freq (void)
| Get PCLK0 frequency. More...
uint32_t | CLK_GetPCLK1Freq (void)
| Get PCLK1 frequency. More...
uint32_t | CLK_GetHCLKFreq (void)
| Get HCLK frequency. More...
uint32_t | CLK_GetCPUFreq (void)
| Get CPU frequency. More...
uint32_t | CLK_SetCoreClock (uint32_t u32Hclk)
| Set HCLK frequency. More...
void | CLK_SetHCLK (uint32_t u32ClkSrc, uint32_t u32ClkDiv)
| This function set HCLK clock source and HCLK clock divider. More...
void | CLK_SetModuleClock (uint32_t u32ModuleIdx, uint32_t u32ClkSrc, uint32_t u32ClkDiv)
| This function set selected module clock source and module clock divider. More...
void | CLK_SetSysTickClockSrc (uint32_t u32ClkSrc)
| Set SysTick clock source. More...
void | CLK_EnableXtalRC (uint32_t u32ClkMask)
| Enable clock source. More...
void | CLK_DisableXtalRC (uint32_t u32ClkMask)
| Disable clock source. More...
void | CLK_EnableModuleClock (uint32_t u32ModuleIdx)
| Enable module clock. More...
void | CLK_DisableModuleClock (uint32_t u32ModuleIdx)
| Disable module clock. More...
uint32_t | CLK_EnablePLL (uint32_t u32PllClkSrc, uint32_t u32PllFreq)
| Set PLL frequency. More...
void | CLK_DisablePLL (void)
| Disable PLL. More...
uint32_t | CLK_WaitClockReady (uint32_t u32ClkMask)
| This function check selected clock source status. More...
void | CLK_EnableSysTick (uint32_t u32ClkSrc, uint32_t u32Count)
| Enable System Tick counter. More...
void | CLK_DisableSysTick (void)
| Disable System Tick counter. More...
void | CLK_SetPowerDownMode (uint32_t u32PDMode)
| Power-down mode selected. More...
void | CLK_EnableDPDWKPin (uint32_t u32TriggerType)
| Set Wake-up pin trigger type at Deep Power down mode. More...
uint32_t | CLK_GetPMUWKSrc (void)
| Get power manager wake up source. More...
void | CLK_EnableSPDWKPin (uint32_t u32Port, uint32_t u32Pin, uint32_t u32TriggerType, uint32_t u32DebounceEn)
| Set specified GPIO as wake up source at Stand-by Power down mode. More...
uint32_t | CLK_GetPLLClockFreq (void)
| Get PLL clock frequency. More...
uint32_t | CLK_GetModuleClockSource (uint32_t u32ModuleIdx)
| Get selected module clock source. More...
uint32_t | CLK_GetModuleClockDivider (uint32_t u32ModuleIdx)
| Get selected module clock divider number. More...

## Detailed Description

M480 series CLK driver source file.

Version
  V3.00 SPDX-License-Identifier: Apache-2.0

Copyright
  (C) 2016-2020 Nuvoton Technology Corp. All rights reserved.

Definition in file clk.c.