mbed library sources
Fork of mbed-src by
targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/system_MK20DX256.h@445:3312ed629f01, 2015-01-15 (annotated)
- Committer:
- mbed_official
- Date:
- Thu Jan 15 19:30:07 2015 +0000
- Revision:
- 445:3312ed629f01
Synchronized with git revision e21c65041d9a718f866ed6438e5791b13f9c6d91
Full URL: https://github.com/mbedmicro/mbed/commit/e21c65041d9a718f866ed6438e5791b13f9c6d91/
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 445:3312ed629f01 | 1 | /* |
mbed_official | 445:3312ed629f01 | 2 | ** ################################################################### |
mbed_official | 445:3312ed629f01 | 3 | ** Compilers: ARM Compiler |
mbed_official | 445:3312ed629f01 | 4 | ** Freescale C/C++ for Embedded ARM |
mbed_official | 445:3312ed629f01 | 5 | ** GNU C Compiler |
mbed_official | 445:3312ed629f01 | 6 | ** IAR ANSI C/C++ Compiler for ARM |
mbed_official | 445:3312ed629f01 | 7 | ** |
mbed_official | 445:3312ed629f01 | 8 | ** |
mbed_official | 445:3312ed629f01 | 9 | ** |
mbed_official | 445:3312ed629f01 | 10 | ** Version: rev. 2.0, 2012-03-19 |
mbed_official | 445:3312ed629f01 | 11 | ** |
mbed_official | 445:3312ed629f01 | 12 | ** Abstract: |
mbed_official | 445:3312ed629f01 | 13 | ** Provides a system configuration function and a global variable that |
mbed_official | 445:3312ed629f01 | 14 | ** contains the system frequency. It configures the device and initializes |
mbed_official | 445:3312ed629f01 | 15 | ** the oscillator (PLL) that is part of the microcontroller device. |
mbed_official | 445:3312ed629f01 | 16 | ** |
mbed_official | 445:3312ed629f01 | 17 | ** Copyright: 2015 Freescale Semiconductor, Inc. All Rights Reserved. |
mbed_official | 445:3312ed629f01 | 18 | ** |
mbed_official | 445:3312ed629f01 | 19 | ** http: www.freescale.com |
mbed_official | 445:3312ed629f01 | 20 | ** mail: support@freescale.com |
mbed_official | 445:3312ed629f01 | 21 | ** |
mbed_official | 445:3312ed629f01 | 22 | ** Revisions: |
mbed_official | 445:3312ed629f01 | 23 | ** - rev. 1.0 (2011-12-15) |
mbed_official | 445:3312ed629f01 | 24 | ** Initial version |
mbed_official | 445:3312ed629f01 | 25 | ** - rev. 2.0 (2012-03-19) |
mbed_official | 445:3312ed629f01 | 26 | ** PDB Peripheral register structure updated. |
mbed_official | 445:3312ed629f01 | 27 | ** DMA Registers and bits for unsupported DMA channels removed. |
mbed_official | 445:3312ed629f01 | 28 | ** |
mbed_official | 445:3312ed629f01 | 29 | ** ################################################################### |
mbed_official | 445:3312ed629f01 | 30 | */ |
mbed_official | 445:3312ed629f01 | 31 | |
mbed_official | 445:3312ed629f01 | 32 | /** |
mbed_official | 445:3312ed629f01 | 33 | * @file MK20DX256 |
mbed_official | 445:3312ed629f01 | 34 | * @version 2.0 |
mbed_official | 445:3312ed629f01 | 35 | * @date 2012-03-19 |
mbed_official | 445:3312ed629f01 | 36 | * @brief Device specific configuration file for MK20DX256 (header file) |
mbed_official | 445:3312ed629f01 | 37 | * |
mbed_official | 445:3312ed629f01 | 38 | * Provides a system configuration function and a global variable that contains |
mbed_official | 445:3312ed629f01 | 39 | * the system frequency. It configures the device and initializes the oscillator |
mbed_official | 445:3312ed629f01 | 40 | * (PLL) that is part of the microcontroller device. |
mbed_official | 445:3312ed629f01 | 41 | */ |
mbed_official | 445:3312ed629f01 | 42 | |
mbed_official | 445:3312ed629f01 | 43 | #ifndef SYSTEM_MK20DX256_H_ |
mbed_official | 445:3312ed629f01 | 44 | #define SYSTEM_MK20DX256_H_ /**< Symbol preventing repeated inclusion */ |
mbed_official | 445:3312ed629f01 | 45 | |
mbed_official | 445:3312ed629f01 | 46 | #ifdef __cplusplus |
mbed_official | 445:3312ed629f01 | 47 | extern "C" { |
mbed_official | 445:3312ed629f01 | 48 | #endif |
mbed_official | 445:3312ed629f01 | 49 | |
mbed_official | 445:3312ed629f01 | 50 | #include <stdint.h> |
mbed_official | 445:3312ed629f01 | 51 | |
mbed_official | 445:3312ed629f01 | 52 | /** |
mbed_official | 445:3312ed629f01 | 53 | * @brief System clock frequency (core clock) |
mbed_official | 445:3312ed629f01 | 54 | * |
mbed_official | 445:3312ed629f01 | 55 | * The system clock frequency supplied to the SysTick timer and the processor |
mbed_official | 445:3312ed629f01 | 56 | * core clock. This variable can be used by the user application to setup the |
mbed_official | 445:3312ed629f01 | 57 | * SysTick timer or configure other parameters. It may also be used by debugger to |
mbed_official | 445:3312ed629f01 | 58 | * query the frequency of the debug timer or configure the trace clock speed |
mbed_official | 445:3312ed629f01 | 59 | * SystemCoreClock is initialized with a correct predefined value. |
mbed_official | 445:3312ed629f01 | 60 | */ |
mbed_official | 445:3312ed629f01 | 61 | extern uint32_t SystemCoreClock; |
mbed_official | 445:3312ed629f01 | 62 | |
mbed_official | 445:3312ed629f01 | 63 | /** |
mbed_official | 445:3312ed629f01 | 64 | * @brief Setup the microcontroller system. |
mbed_official | 445:3312ed629f01 | 65 | * |
mbed_official | 445:3312ed629f01 | 66 | * Typically this function configures the oscillator (PLL) that is part of the |
mbed_official | 445:3312ed629f01 | 67 | * microcontroller device. For systems with variable clock speed it also updates |
mbed_official | 445:3312ed629f01 | 68 | * the variable SystemCoreClock. SystemInit is called from startup_device file. |
mbed_official | 445:3312ed629f01 | 69 | */ |
mbed_official | 445:3312ed629f01 | 70 | void SystemInit (void); |
mbed_official | 445:3312ed629f01 | 71 | |
mbed_official | 445:3312ed629f01 | 72 | /** |
mbed_official | 445:3312ed629f01 | 73 | * @brief Updates the SystemCoreClock variable. |
mbed_official | 445:3312ed629f01 | 74 | * |
mbed_official | 445:3312ed629f01 | 75 | * It must be called whenever the core clock is changed during program |
mbed_official | 445:3312ed629f01 | 76 | * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates |
mbed_official | 445:3312ed629f01 | 77 | * the current core clock. |
mbed_official | 445:3312ed629f01 | 78 | */ |
mbed_official | 445:3312ed629f01 | 79 | void SystemCoreClockUpdate (void); |
mbed_official | 445:3312ed629f01 | 80 | |
mbed_official | 445:3312ed629f01 | 81 | #ifdef __cplusplus |
mbed_official | 445:3312ed629f01 | 82 | } |
mbed_official | 445:3312ed629f01 | 83 | #endif |
mbed_official | 445:3312ed629f01 | 84 | |
mbed_official | 445:3312ed629f01 | 85 | #endif /* #if !defined(SYSTEM_MK20DX256_H_) */ |