mbed library sources

Dependents:   Encrypted my_mbed lklk CyaSSL_DTLS_Cellular ... more

Superseded

This library was superseded by mbed-dev - https://os.mbed.com/users/mbed_official/code/mbed-dev/.

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:
bogdanm
Date:
Mon Aug 05 14:12:34 2013 +0300
Revision:
13:0645d8841f51
Parent:
vendor/Freescale/KL25Z/cmsis/system_MKL25Z4.h@10:3bc89ef62ce7
Update mbed sources to revision 64

Who changed what in which revision?

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