nrf_clock.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: 2017 Freie Universität Berlin
3  * SPDX-License-Identifier: LGPL-2.1-only
4  */
5 
6 #pragma once
7 
18 #ifdef __cplusplus
19 extern "C" {
20 #endif
21 
27 #ifndef CLOCK_HFXO_ONBOOT
28 #define CLOCK_HFXO_ONBOOT 0
29 #endif
30 
35 void clock_init_hf(void);
36 
41 void clock_hfxo_request(void);
42 
47 void clock_hfxo_release(void);
48 
55 void clock_start_lf(void);
56 
62 void clock_stop_lf(void);
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
void clock_hfxo_request(void)
Request the external high frequency crystal (HFXO) as HF clock source.
void clock_stop_lf(void)
Stop the low frequency clock (LFCLK)
void clock_init_hf(void)
Initialize the high frequency clock (HFCLK) as configured in the board's periph_conf....
void clock_hfxo_release(void)
Release the use of the HFXO.
void clock_start_lf(void)
Start the low frequency clock (LFCLK) as configured in the board's periph_conf.