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