mbed library sources

Dependents:   frdm_kl05z_gpio_test

Fork of mbed-src by mbed official

Committer:
shaoziyang
Date:
Sat Sep 13 14:25:46 2014 +0000
Revision:
323:9e901b0a5aa1
Parent:
82:0b31dbcd4769
test with CLOCK_SETUP = 0

Who changed what in which revision?

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