]> git.gir.st - tmk_keyboard.git/blob - tmk_core/tool/mbed/mbed-sdk/libraries/mbed/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/system_MKL46Z4.h
Merge commit '1fe4406f374291ab2e86e95a97341fd9c475fcb8'
[tmk_keyboard.git] / tmk_core / tool / mbed / mbed-sdk / libraries / mbed / targets / cmsis / TARGET_Freescale / TARGET_KLXX / TARGET_KL46Z / system_MKL46Z4.h
1 /*
2 ** ###################################################################
3 ** Processors: MKL46Z256VLH4
4 ** MKL46Z128VLH4
5 ** MKL46Z256VLL4
6 ** MKL46Z128VLL4
7 ** MKL46Z256VMC4
8 ** MKL46Z128VMC4
9 **
10 ** Compilers: ARM Compiler
11 ** Freescale C/C++ for Embedded ARM
12 ** GNU C Compiler
13 ** IAR ANSI C/C++ Compiler for ARM
14 **
15 ** Reference manual: KL46P121M48SF4RM, Rev.1 Draft A, Aug 2012
16 ** Version: rev. 2.0, 2012-12-12
17 **
18 ** Abstract:
19 ** Provides a system configuration function and a global variable that
20 ** contains the system frequency. It configures the device and initializes
21 ** the oscillator (PLL) that is part of the microcontroller device.
22 **
23 ** Copyright: 2012 Freescale, Inc. All Rights Reserved.
24 **
25 ** http: www.freescale.com
26 ** mail: support@freescale.com
27 **
28 ** Revisions:
29 ** - rev. 1.0 (2012-10-16)
30 ** Initial version.
31 ** - rev. 2.0 (2012-12-12)
32 ** Update to reference manual rev. 1.
33 **
34 ** ###################################################################
35 */
36
37 /**
38 * @file MKL46Z4
39 * @version 2.0
40 * @date 2012-12-12
41 * @brief Device specific configuration file for MKL46Z4 (header file)
42 *
43 * Provides a system configuration function and a global variable that contains
44 * the system frequency. It configures the device and initializes the oscillator
45 * (PLL) that is part of the microcontroller device.
46 */
47
48 #ifndef SYSTEM_MKL46Z4_H_
49 #define SYSTEM_MKL46Z4_H_ /**< Symbol preventing repeated inclusion */
50
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54
55 #include <stdint.h>
56
57 /**
58 * @brief System clock frequency (core clock)
59 *
60 * The system clock frequency supplied to the SysTick timer and the processor
61 * core clock. This variable can be used by the user application to setup the
62 * SysTick timer or configure other parameters. It may also be used by debugger to
63 * query the frequency of the debug timer or configure the trace clock speed
64 * SystemCoreClock is initialized with a correct predefined value.
65 */
66 extern uint32_t SystemCoreClock;
67
68 /**
69 * @brief Setup the microcontroller system.
70 *
71 * Typically this function configures the oscillator (PLL) that is part of the
72 * microcontroller device. For systems with variable clock speed it also updates
73 * the variable SystemCoreClock. SystemInit is called from startup_device file.
74 */
75 void SystemInit (void);
76
77 /**
78 * @brief Updates the SystemCoreClock variable.
79 *
80 * It must be called whenever the core clock is changed during program
81 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates
82 * the current core clock.
83 */
84 void SystemCoreClockUpdate (void);
85
86 #ifdef __cplusplus
87 }
88 #endif
89
90 #endif /* #if !defined(SYSTEM_MKL46Z4_H_) */
Imprint / Impressum