The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_KL25Z/system_MKL25Z4.h@66:9c8f0e3462fb, 2013-08-19 (annotated)
- Committer:
- bogdanm
- Date:
- Mon Aug 19 13:34:54 2013 +0300
- Revision:
- 66:9c8f0e3462fb
- Parent:
- 65:5798e58a58b1
New mbed library build with support for LPC1114.
Built from github tag 'mbed_lib_rev66'
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 66:9c8f0e3462fb | 1 | /* |
bogdanm | 66:9c8f0e3462fb | 2 | ** ################################################################### |
bogdanm | 66:9c8f0e3462fb | 3 | ** Processor: MKL25Z128VLK4 |
bogdanm | 66:9c8f0e3462fb | 4 | ** Compilers: ARM Compiler |
bogdanm | 66:9c8f0e3462fb | 5 | ** Freescale C/C++ for Embedded ARM |
bogdanm | 66:9c8f0e3462fb | 6 | ** GNU C Compiler |
bogdanm | 66:9c8f0e3462fb | 7 | ** IAR ANSI C/C++ Compiler for ARM |
bogdanm | 66:9c8f0e3462fb | 8 | ** |
bogdanm | 66:9c8f0e3462fb | 9 | ** Reference manual: KL25RM, Rev.1, Jun 2012 |
bogdanm | 66:9c8f0e3462fb | 10 | ** Version: rev. 1.1, 2012-06-21 |
bogdanm | 66:9c8f0e3462fb | 11 | ** |
bogdanm | 66:9c8f0e3462fb | 12 | ** Abstract: |
bogdanm | 66:9c8f0e3462fb | 13 | ** Provides a system configuration function and a global variable that |
bogdanm | 66:9c8f0e3462fb | 14 | ** contains the system frequency. It configures the device and initializes |
bogdanm | 66:9c8f0e3462fb | 15 | ** the oscillator (PLL) that is part of the microcontroller device. |
bogdanm | 66:9c8f0e3462fb | 16 | ** |
bogdanm | 66:9c8f0e3462fb | 17 | ** Copyright: 2012 Freescale Semiconductor, Inc. All Rights Reserved. |
bogdanm | 66:9c8f0e3462fb | 18 | ** |
bogdanm | 66:9c8f0e3462fb | 19 | ** http: www.freescale.com |
bogdanm | 66:9c8f0e3462fb | 20 | ** mail: support@freescale.com |
bogdanm | 66:9c8f0e3462fb | 21 | ** |
bogdanm | 66:9c8f0e3462fb | 22 | ** Revisions: |
bogdanm | 66:9c8f0e3462fb | 23 | ** - rev. 1.0 (2012-06-13) |
bogdanm | 66:9c8f0e3462fb | 24 | ** Initial version. |
bogdanm | 66:9c8f0e3462fb | 25 | ** - rev. 1.1 (2012-06-21) |
bogdanm | 66:9c8f0e3462fb | 26 | ** Update according to reference manual rev. 1. |
bogdanm | 66:9c8f0e3462fb | 27 | ** |
bogdanm | 66:9c8f0e3462fb | 28 | ** ################################################################### |
bogdanm | 66:9c8f0e3462fb | 29 | */ |
bogdanm | 66:9c8f0e3462fb | 30 | |
bogdanm | 66:9c8f0e3462fb | 31 | /** |
bogdanm | 66:9c8f0e3462fb | 32 | * @file MKL25Z4 |
bogdanm | 66:9c8f0e3462fb | 33 | * @version 1.1 |
bogdanm | 66:9c8f0e3462fb | 34 | * @date 2012-06-21 |
bogdanm | 66:9c8f0e3462fb | 35 | * @brief Device specific configuration file for MKL25Z4 (header file) |
bogdanm | 66:9c8f0e3462fb | 36 | * |
bogdanm | 66:9c8f0e3462fb | 37 | * Provides a system configuration function and a global variable that contains |
bogdanm | 66:9c8f0e3462fb | 38 | * the system frequency. It configures the device and initializes the oscillator |
bogdanm | 66:9c8f0e3462fb | 39 | * (PLL) that is part of the microcontroller device. |
bogdanm | 66:9c8f0e3462fb | 40 | */ |
bogdanm | 66:9c8f0e3462fb | 41 | |
bogdanm | 66:9c8f0e3462fb | 42 | #ifndef SYSTEM_MKL25Z4_H_ |
bogdanm | 66:9c8f0e3462fb | 43 | #define SYSTEM_MKL25Z4_H_ /**< Symbol preventing repeated inclusion */ |
bogdanm | 66:9c8f0e3462fb | 44 | |
bogdanm | 66:9c8f0e3462fb | 45 | #ifdef __cplusplus |
bogdanm | 66:9c8f0e3462fb | 46 | extern "C" { |
bogdanm | 66:9c8f0e3462fb | 47 | #endif |
bogdanm | 66:9c8f0e3462fb | 48 | |
bogdanm | 66:9c8f0e3462fb | 49 | #include <stdint.h> |
bogdanm | 66:9c8f0e3462fb | 50 | |
bogdanm | 66:9c8f0e3462fb | 51 | /** |
bogdanm | 66:9c8f0e3462fb | 52 | * @brief System clock frequency (core clock) |
bogdanm | 66:9c8f0e3462fb | 53 | * |
bogdanm | 66:9c8f0e3462fb | 54 | * The system clock frequency supplied to the SysTick timer and the processor |
bogdanm | 66:9c8f0e3462fb | 55 | * core clock. This variable can be used by the user application to setup the |
bogdanm | 66:9c8f0e3462fb | 56 | * SysTick timer or configure other parameters. It may also be used by debugger to |
bogdanm | 66:9c8f0e3462fb | 57 | * query the frequency of the debug timer or configure the trace clock speed |
bogdanm | 66:9c8f0e3462fb | 58 | * SystemCoreClock is initialized with a correct predefined value. |
bogdanm | 66:9c8f0e3462fb | 59 | */ |
bogdanm | 66:9c8f0e3462fb | 60 | extern uint32_t SystemCoreClock; |
bogdanm | 66:9c8f0e3462fb | 61 | |
bogdanm | 66:9c8f0e3462fb | 62 | /** |
bogdanm | 66:9c8f0e3462fb | 63 | * @brief Setup the microcontroller system. |
bogdanm | 66:9c8f0e3462fb | 64 | * |
bogdanm | 66:9c8f0e3462fb | 65 | * Typically this function configures the oscillator (PLL) that is part of the |
bogdanm | 66:9c8f0e3462fb | 66 | * microcontroller device. For systems with variable clock speed it also updates |
bogdanm | 66:9c8f0e3462fb | 67 | * the variable SystemCoreClock. SystemInit is called from startup_device file. |
bogdanm | 66:9c8f0e3462fb | 68 | */ |
bogdanm | 66:9c8f0e3462fb | 69 | void SystemInit (void); |
bogdanm | 66:9c8f0e3462fb | 70 | |
bogdanm | 66:9c8f0e3462fb | 71 | /** |
bogdanm | 66:9c8f0e3462fb | 72 | * @brief Updates the SystemCoreClock variable. |
bogdanm | 66:9c8f0e3462fb | 73 | * |
bogdanm | 66:9c8f0e3462fb | 74 | * It must be called whenever the core clock is changed during program |
bogdanm | 66:9c8f0e3462fb | 75 | * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates |
bogdanm | 66:9c8f0e3462fb | 76 | * the current core clock. |
bogdanm | 66:9c8f0e3462fb | 77 | */ |
bogdanm | 66:9c8f0e3462fb | 78 | void SystemCoreClockUpdate (void); |
bogdanm | 66:9c8f0e3462fb | 79 | |
bogdanm | 66:9c8f0e3462fb | 80 | #ifdef __cplusplus |
bogdanm | 66:9c8f0e3462fb | 81 | } |
bogdanm | 66:9c8f0e3462fb | 82 | #endif |
bogdanm | 66:9c8f0e3462fb | 83 | |
bogdanm | 66:9c8f0e3462fb | 84 | #endif /* #if !defined(SYSTEM_MKL25Z4_H_) */ |