nrfx.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2018 Freie Universität Berlin
3  * Copyright (C) 2020 Inria
4  * Copyright (C) 2020 Koen Zandberg <koen@bergzand.net>
5  *
6  * This file is subject to the terms and conditions of the GNU Lesser
7  * General Public License v2.1. See the file LICENSE in the top level
8  * directory for more details.
9  */
10 
22 #ifndef NRFX_H
23 #define NRFX_H
24 
25 #include "cpu_conf.h"
26 #include "periph_conf.h"
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
41 static inline void nrfx_dcdc_init(void)
42 {
43 #ifdef NRF5X_ENABLE_DCDC
44  NRF_POWER->DCDCEN = 1;
45 #endif
46 }
47 
48 #ifdef __cplusplus
49 }
50 #endif
51 
52 #endif /* NRFX_H */
53 
nrfx_dcdc_init
static void nrfx_dcdc_init(void)
Enable the internal DC/DC power converter for the NRF5x MCU.
Definition: nrfx.h:41