mcg.h
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 
10 /* please doxygen by hiding dangling references */
11 #if defined(MODULE_PERIPH_MCG) || defined(MODULE_PERIPH_MCG_LITE)
12 
121 #endif /* MODULE_PERIPH_MCG */
122 
123 #ifndef MCG_H
124 #define MCG_H
125 
126 #include "periph_conf.h"
127 
128 #ifdef __cplusplus
129 extern "C"
130 {
131 #endif
132 
133 #if DOXYGEN
134 
140 #define CLOCK_CORECLOCK (MCGOUTCLK)
141 
147 #define CLOCK_BUSCLOCK (CLOCK_CORECLOCK / x)
148 #endif
149 
161 int kinetis_mcg_set_mode(kinetis_mcg_mode_t mode);
162 
168 void kinetis_mcg_init(void);
169 
170 #ifdef __cplusplus
171 }
172 #endif
173 
176 #endif /* MCG_H */