Bouffalo SDK  1.0
Bouffalolab Software Development Kit
bflb_clock.h File Reference
#include "bflb_core.h"
Include dependency graph for bflb_clock.h:

Go to the source code of this file.

Macros

#define BFLB_SYSTEM_ROOT_CLOCK   0
 
#define BFLB_SYSTEM_CPU_CLK   1
 
#define BFLB_SYSTEM_PBCLK   2
 
#define BFLB_SYSTEM_XCLK   3
 
#define BFLB_SYSTEM_32K_CLK   4
 
#define PERIPHERAL_CLOCK_ADC_DAC_ENABLE()
 
#define PERIPHERAL_CLOCK_SEC_ENABLE()
 
#define PERIPHERAL_CLOCK_DMA0_ENABLE()
 
#define PERIPHERAL_CLOCK_UART0_ENABLE()
 
#define PERIPHERAL_CLOCK_UART1_ENABLE()
 
#define PERIPHERAL_CLOCK_SPI0_ENABLE()
 
#define PERIPHERAL_CLOCK_I2C0_ENABLE()
 
#define PERIPHERAL_CLOCK_PWM0_ENABLE()
 
#define PERIPHERAL_CLOCK_TIMER0_1_WDG_ENABLE()
 
#define PERIPHERAL_CLOCK_IR_ENABLE()
 
#define PERIPHERAL_CLOCK_CKS_ENABLE()
 

Functions

uint32_t bflb_clk_get_system_clock (uint8_t type)
 Get system clock frequence. More...
 
uint32_t bflb_clk_get_peripheral_clock (uint8_t type, uint8_t idx)
 Get peripheral clock frequence. More...