mcg.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 PHYTEC Messtechnik GmbH
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser General
5  * Public License v2.1. See the file LICENSE in the top level directory for more
6  * details.
7  */
8 
125 #ifndef MCG_H
126 #define MCG_H
127 
128 #include "periph_conf.h"
129 
130 #if KINETIS_CPU_USE_MCG
131 
132 #ifdef __cplusplus
133 extern "C"
134 {
135 #endif
136 
137 typedef enum kinetis_mcg_mode {
138  KINETIS_MCG_PEE = 0,
139  KINETIS_MCG_PBE,
140  KINETIS_MCG_BLPE,
141  KINETIS_MCG_BLPI,
142  KINETIS_MCG_FBE,
143  KINETIS_MCG_FBI,
144  KINETIS_MCG_FEE,
145  KINETIS_MCG_FEI,
146 } kinetis_mcg_mode_t;
147 
152 int kinetis_mcg_set_mode(kinetis_mcg_mode_t mode);
153 
154 #ifdef __cplusplus
155 }
156 #endif
157 
158 #endif /* KINETIS_CPU_USE_MCG */
159 
161 #endif /* MCG_H */