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 
100 #ifndef MCG_CPU_H
101 #define MCG_CPU_H
102 
103 #include "periph_conf.h"
104 
105 #if KINETIS_CPU_USE_MCG
106 
107 #ifdef __cplusplus
108 extern "C"
109 {
110 #endif
111 
112 typedef enum kinetis_mcg_mode {
113  KINETIS_MCG_PEE = 0,
114  KINETIS_MCG_PBE,
115  KINETIS_MCG_BLPE,
116  KINETIS_MCG_BLPI,
117  KINETIS_MCG_FBE,
118  KINETIS_MCG_FBI,
119  KINETIS_MCG_FEE,
120  KINETIS_MCG_FEI,
121 } kinetis_mcg_mode_t;
122 
127 int kinetis_mcg_set_mode(kinetis_mcg_mode_t mode);
128 
129 #ifdef __cplusplus
130 }
131 #endif
132 
133 #endif /* KINETIS_CPU_USE_MCG */
134 
136 #endif /* MCG_CPU_H */