mcg.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 PHYTEC Messtechnik GmbH
3  * Copyright (C) 2017 Eistec AB
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser General
6  * Public License v2.1. See the file LICENSE in the top level directory for more
7  * details.
8  */
9 
120 #ifndef MCG_H
121 #define MCG_H
122 
123 #include "periph_conf.h"
124 
125 #ifdef __cplusplus
126 extern "C"
127 {
128 #endif
129 
130 #if DOXYGEN
131 
137 #define CLOCK_CORECLOCK (MCGOUTCLK)
138 
144 #define CLOCK_BUSCLOCK (CLOCK_CORECLOCK / x)
145 #endif
146 
159 
165 void kinetis_mcg_init(void);
166 
167 #ifdef __cplusplus
168 }
169 #endif
170 
173 #endif /* MCG_H */
int kinetis_mcg_set_mode(kinetis_mcg_mode_t mode)
Switch the MCG to the specified clocking mode.
enum kinetis_mcg_mode kinetis_mcg_mode_t
Kinetis possible MCG modes.
void kinetis_mcg_init(void)
Initialize the MCG.