nrf_clock.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
30 #ifndef CLOCK_HFXO_ONBOOT
31 #define CLOCK_HFXO_ONBOOT 0
32 #endif
33 
38 void clock_init_hf(void);
39 
44 void clock_hfxo_request(void);
45 
50 void clock_hfxo_release(void);
51 
58 void clock_start_lf(void);
59 
65 void clock_stop_lf(void);
66 
67 #ifdef __cplusplus
68 }
69 #endif
70 
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.