libopencm3
A free/libre/open-source firmware library for various ARM Cortex-M3 microcontrollers.
|
Access functions for the Clock Controller More...
Functions | |
void | clock_start_lfclk (bool wait) |
Start Low Frequency Clock. More... | |
void | clock_stop_lfclk () |
Stop Low Frequency Clock. More... | |
void | clock_start_hfclk (bool wait) |
Start High Frequency Crystal Oscillator. More... | |
void | clock_stop_hfclk () |
Stop High Frequency Crystal Oscillator. More... | |
void | clock_set_lfclk_src (enum clock_lfclk_src lfclk_src) |
Low Frequency Clock Source. More... | |
Access functions for the Clock Controller
LGPL License Terms libopencm3 License
void clock_set_lfclk_src | ( | enum clock_lfclk_src | lfclk_src | ) |
Low Frequency Clock Source.
[in] | lfclk_src | enum clock_lfclk_src |
Definition at line 78 of file clock_common.c.
References CLOCK_LFCLKSRC.
void clock_start_hfclk | ( | bool | wait | ) |
Start High Frequency Crystal Oscillator.
Oscillator needs to be running for the radio to work.
[in] | wait | bool If true, will busy wait for the clock to start. |
Definition at line 60 of file clock_common.c.
References CLOCK_HFCLKSTAT, CLOCK_HFCLKSTAT_STATE, CLOCK_TASK_HFCLKSTART, and PERIPH_TRIGGER_TASK.
void clock_start_lfclk | ( | bool | wait | ) |
Start Low Frequency Clock.
[in] | wait | bool: If true, will busy wait for the clock to start. |
Definition at line 40 of file clock_common.c.
References CLOCK_LFCLKSTAT, CLOCK_LFCLKSTAT_STATE, CLOCK_TASK_LFCLKSTART, and PERIPH_TRIGGER_TASK.
void clock_stop_hfclk | ( | void | ) |
Stop High Frequency Crystal Oscillator.
Definition at line 69 of file clock_common.c.
References CLOCK_TASK_HFCLKSTOP, and PERIPH_TRIGGER_TASK.
void clock_stop_lfclk | ( | void | ) |
Stop Low Frequency Clock.
Definition at line 49 of file clock_common.c.
References CLOCK_TASK_LFCLKSTOP, and PERIPH_TRIGGER_TASK.