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