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