mbed SDK library sources

Fork of mbed-src by mbed official

Development branch of the mbed library sources. This library is kept in synch with the latest changes from the mbed SDK and it is not guaranteed to work.

If you are looking for a stable and tested release, please import one of the official mbed library releases:

Import librarymbed

The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.

Committer:
mbed_official
Date:
Wed Sep 25 11:30:05 2013 +0100
Revision:
31:42176bc3c368
Child:
44:2ce89a25b635
Synchronized with git revision f580c008b139a952d38ac5c7c53bbae375739c67

Who changed what in which revision?

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