mbed libraries for KL25Z

Dependents:   FRDM_RGBLED

Committer:
emilmont
Date:
Fri Oct 05 09:16:41 2012 +0000
Revision:
0:8024c367e29f
Child:
2:e9a661555b58
First release of the mbed libraries for KL25Z

Who changed what in which revision?

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