]>
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
2 ** ###################################################################
3 ** Processors: MKL46Z256VLH4
10 ** Compilers: ARM Compiler
11 ** Freescale C/C++ for Embedded ARM
13 ** IAR ANSI C/C++ Compiler for ARM
15 ** Reference manual: KL46P121M48SF4RM, Rev.1 Draft A, Aug 2012
16 ** Version: rev. 2.0, 2012-12-12
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.
23 ** Copyright: 2012 Freescale, Inc. All Rights Reserved.
25 ** http: www.freescale.com
26 ** mail: support@freescale.com
29 ** - rev. 1.0 (2012-10-16)
31 ** - rev. 2.0 (2012-12-12)
32 ** Update to reference manual rev. 1.
34 ** ###################################################################
41 * @brief Device specific configuration file for MKL46Z4 (header file)
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.
48 #ifndef SYSTEM_MKL46Z4_H_
49 #define SYSTEM_MKL46Z4_H_ /**< Symbol preventing repeated inclusion */
58 * @brief System clock frequency (core clock)
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.
66 extern uint32_t SystemCoreClock
;
69 * @brief Setup the microcontroller system.
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.
75 void SystemInit (void);
78 * @brief Updates the SystemCoreClock variable.
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.
84 void SystemCoreClockUpdate (void);
90 #endif /* #if !defined(SYSTEM_MKL46Z4_H_) */