Bouffalo SDK
1.0
Bouffalolab Software Development Kit
|
![]() |
Modules | |
system clock definition | |
Macros | |
#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... | |
#define PERIPHERAL_CLOCK_ADC_DAC_ENABLE | ( | ) |
Definition at line 33 of file bflb_clock.h.
#define PERIPHERAL_CLOCK_CKS_ENABLE | ( | ) |
Definition at line 131 of file bflb_clock.h.
#define PERIPHERAL_CLOCK_DMA0_ENABLE | ( | ) |
Definition at line 47 of file bflb_clock.h.
#define PERIPHERAL_CLOCK_I2C0_ENABLE | ( | ) |
Definition at line 93 of file bflb_clock.h.
#define PERIPHERAL_CLOCK_IR_ENABLE | ( | ) |
Definition at line 124 of file bflb_clock.h.
#define PERIPHERAL_CLOCK_PWM0_ENABLE | ( | ) |
Definition at line 110 of file bflb_clock.h.
#define PERIPHERAL_CLOCK_SEC_ENABLE | ( | ) |
Definition at line 40 of file bflb_clock.h.
#define PERIPHERAL_CLOCK_SPI0_ENABLE | ( | ) |
Definition at line 85 of file bflb_clock.h.
#define PERIPHERAL_CLOCK_TIMER0_1_WDG_ENABLE | ( | ) |
Definition at line 117 of file bflb_clock.h.
#define PERIPHERAL_CLOCK_UART0_ENABLE | ( | ) |
Definition at line 59 of file bflb_clock.h.
#define PERIPHERAL_CLOCK_UART1_ENABLE | ( | ) |
Definition at line 66 of file bflb_clock.h.
uint32_t bflb_clk_get_peripheral_clock | ( | uint8_t | type, |
uint8_t | idx | ||
) |
Get peripheral clock frequence.
[in] | type | peripheral type |
[in] | idx | peripheral index |
uint32_t bflb_clk_get_system_clock | ( | uint8_t | type | ) |
Get system clock frequence.
[in] | type | system clock type |