mbed library sources

Fork of mbed-src by mbed official

Committer:
mbed_official
Date:
Fri Jan 31 10:00:06 2014 +0000
Revision:
82:0b31dbcd4769
Child:
99:6b967e9f1a5d
Synchronized with git revision 74409cbd593d1daab530a57baaa563f30b04b018

Full URL: https://github.com/mbedmicro/mbed/commit/74409cbd593d1daab530a57baaa563f30b04b018/

Who changed what in which revision?

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