mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device/system_MKL25Z4.h@149:156823d33999, 2016-10-28 (annotated)
- Committer:
- <>
- Date:
- Fri Oct 28 11:17:30 2016 +0100
- Revision:
- 149:156823d33999
- Parent:
- targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/system_MKL25Z4.h@144:ef7eb2e8f9f7
This updates the lib to the mbed lib v128
NOTE: This release includes a restructuring of the file and directory locations and thus some
include paths in your code may need updating accordingly.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 144:ef7eb2e8f9f7 | 1 | /* |
<> | 144:ef7eb2e8f9f7 | 2 | ** ################################################################### |
<> | 144:ef7eb2e8f9f7 | 3 | ** Processor: MKL25Z128VLK4 |
<> | 144:ef7eb2e8f9f7 | 4 | ** Compilers: ARM Compiler |
<> | 144:ef7eb2e8f9f7 | 5 | ** Freescale C/C++ for Embedded ARM |
<> | 144:ef7eb2e8f9f7 | 6 | ** GNU C Compiler |
<> | 144:ef7eb2e8f9f7 | 7 | ** IAR ANSI C/C++ Compiler for ARM |
<> | 144:ef7eb2e8f9f7 | 8 | ** |
<> | 144:ef7eb2e8f9f7 | 9 | ** Reference manual: KL25RM, Rev.1, Jun 2012 |
<> | 144:ef7eb2e8f9f7 | 10 | ** Version: rev. 1.1, 2012-06-21 |
<> | 144:ef7eb2e8f9f7 | 11 | ** |
<> | 144:ef7eb2e8f9f7 | 12 | ** Abstract: |
<> | 144:ef7eb2e8f9f7 | 13 | ** Provides a system configuration function and a global variable that |
<> | 144:ef7eb2e8f9f7 | 14 | ** contains the system frequency. It configures the device and initializes |
<> | 144:ef7eb2e8f9f7 | 15 | ** the oscillator (PLL) that is part of the microcontroller device. |
<> | 144:ef7eb2e8f9f7 | 16 | ** |
<> | 144:ef7eb2e8f9f7 | 17 | ** Copyright: 2012 Freescale Semiconductor, Inc. All Rights Reserved. |
<> | 144:ef7eb2e8f9f7 | 18 | ** |
<> | 144:ef7eb2e8f9f7 | 19 | ** http: www.freescale.com |
<> | 144:ef7eb2e8f9f7 | 20 | ** mail: support@freescale.com |
<> | 144:ef7eb2e8f9f7 | 21 | ** |
<> | 144:ef7eb2e8f9f7 | 22 | ** Revisions: |
<> | 144:ef7eb2e8f9f7 | 23 | ** - rev. 1.0 (2012-06-13) |
<> | 144:ef7eb2e8f9f7 | 24 | ** Initial version. |
<> | 144:ef7eb2e8f9f7 | 25 | ** - rev. 1.1 (2012-06-21) |
<> | 144:ef7eb2e8f9f7 | 26 | ** Update according to reference manual rev. 1. |
<> | 144:ef7eb2e8f9f7 | 27 | ** |
<> | 144:ef7eb2e8f9f7 | 28 | ** ################################################################### |
<> | 144:ef7eb2e8f9f7 | 29 | */ |
<> | 144:ef7eb2e8f9f7 | 30 | |
<> | 144:ef7eb2e8f9f7 | 31 | /** |
<> | 144:ef7eb2e8f9f7 | 32 | * @file MKL25Z4 |
<> | 144:ef7eb2e8f9f7 | 33 | * @version 1.1 |
<> | 144:ef7eb2e8f9f7 | 34 | * @date 2012-06-21 |
<> | 144:ef7eb2e8f9f7 | 35 | * @brief Device specific configuration file for MKL25Z4 (header file) |
<> | 144:ef7eb2e8f9f7 | 36 | * |
<> | 144:ef7eb2e8f9f7 | 37 | * Provides a system configuration function and a global variable that contains |
<> | 144:ef7eb2e8f9f7 | 38 | * the system frequency. It configures the device and initializes the oscillator |
<> | 144:ef7eb2e8f9f7 | 39 | * (PLL) that is part of the microcontroller device. |
<> | 144:ef7eb2e8f9f7 | 40 | */ |
<> | 144:ef7eb2e8f9f7 | 41 | |
<> | 144:ef7eb2e8f9f7 | 42 | #ifndef SYSTEM_MKL25Z4_H_ |
<> | 144:ef7eb2e8f9f7 | 43 | #define SYSTEM_MKL25Z4_H_ /**< Symbol preventing repeated inclusion */ |
<> | 144:ef7eb2e8f9f7 | 44 | |
<> | 144:ef7eb2e8f9f7 | 45 | #ifdef __cplusplus |
<> | 144:ef7eb2e8f9f7 | 46 | extern "C" { |
<> | 144:ef7eb2e8f9f7 | 47 | #endif |
<> | 144:ef7eb2e8f9f7 | 48 | |
<> | 144:ef7eb2e8f9f7 | 49 | #include <stdint.h> |
<> | 144:ef7eb2e8f9f7 | 50 | |
<> | 144:ef7eb2e8f9f7 | 51 | /** |
<> | 144:ef7eb2e8f9f7 | 52 | * @brief System clock frequency (core clock) |
<> | 144:ef7eb2e8f9f7 | 53 | * |
<> | 144:ef7eb2e8f9f7 | 54 | * The system clock frequency supplied to the SysTick timer and the processor |
<> | 144:ef7eb2e8f9f7 | 55 | * core clock. This variable can be used by the user application to setup the |
<> | 144:ef7eb2e8f9f7 | 56 | * SysTick timer or configure other parameters. It may also be used by debugger to |
<> | 144:ef7eb2e8f9f7 | 57 | * query the frequency of the debug timer or configure the trace clock speed |
<> | 144:ef7eb2e8f9f7 | 58 | * SystemCoreClock is initialized with a correct predefined value. |
<> | 144:ef7eb2e8f9f7 | 59 | */ |
<> | 144:ef7eb2e8f9f7 | 60 | extern uint32_t SystemCoreClock; |
<> | 144:ef7eb2e8f9f7 | 61 | |
<> | 144:ef7eb2e8f9f7 | 62 | /** |
<> | 144:ef7eb2e8f9f7 | 63 | * @brief Setup the microcontroller system. |
<> | 144:ef7eb2e8f9f7 | 64 | * |
<> | 144:ef7eb2e8f9f7 | 65 | * Typically this function configures the oscillator (PLL) that is part of the |
<> | 144:ef7eb2e8f9f7 | 66 | * microcontroller device. For systems with variable clock speed it also updates |
<> | 144:ef7eb2e8f9f7 | 67 | * the variable SystemCoreClock. SystemInit is called from startup_device file. |
<> | 144:ef7eb2e8f9f7 | 68 | */ |
<> | 144:ef7eb2e8f9f7 | 69 | void SystemInit (void); |
<> | 144:ef7eb2e8f9f7 | 70 | |
<> | 144:ef7eb2e8f9f7 | 71 | /** |
<> | 144:ef7eb2e8f9f7 | 72 | * @brief Updates the SystemCoreClock variable. |
<> | 144:ef7eb2e8f9f7 | 73 | * |
<> | 144:ef7eb2e8f9f7 | 74 | * It must be called whenever the core clock is changed during program |
<> | 144:ef7eb2e8f9f7 | 75 | * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates |
<> | 144:ef7eb2e8f9f7 | 76 | * the current core clock. |
<> | 144:ef7eb2e8f9f7 | 77 | */ |
<> | 144:ef7eb2e8f9f7 | 78 | void SystemCoreClockUpdate (void); |
<> | 144:ef7eb2e8f9f7 | 79 | |
<> | 144:ef7eb2e8f9f7 | 80 | #ifdef __cplusplus |
<> | 144:ef7eb2e8f9f7 | 81 | } |
<> | 144:ef7eb2e8f9f7 | 82 | #endif |
<> | 144:ef7eb2e8f9f7 | 83 | |
<> | 144:ef7eb2e8f9f7 | 84 | #endif /* #if !defined(SYSTEM_MKL25Z4_H_) */ |