Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

Timing and clock helpers common to all Bouffalo Lab platforms. More...

Go to the source code of this file.

Macros

Main clock mux selections (see clock_bflb_set_root_clock())
#define BFLB_MAIN_CLOCK_RC32M   0
 XCLK is RC32M, main clock is XCLK.
#define BFLB_MAIN_CLOCK_XTAL   1
 XCLK is the crystal, main clock is XCLK.
#define BFLB_MAIN_CLOCK_PLL_RC32M   2
 XCLK is RC32M, main clock is the PLL.
#define BFLB_MAIN_CLOCK_PLL_XTAL   3
 XCLK is the crystal, main clock is the PLL.

Functions

static void clock_bflb_settle (void)
 Busy-wait for a few CPU cycles to let a clock change settle.
static void clock_bflb_set_root_clock (uint32_t clock)
 Select the root (main) clock source.
static uint32_t clock_bflb_get_root_clock (void)
 Get the currently selected root (main) clock source.

Detailed Description

Timing and clock helpers common to all Bouffalo Lab platforms.