mbed library sources modified for open wear
Dependents: openwear-lifelogger-example
Fork of mbed-src by
targets/cmsis/TARGET_Freescale/TARGET_K64F/system_MK64F12.h@310:6188e0254baa, 2014-09-16 (annotated)
- Committer:
- janekm
- Date:
- Tue Sep 16 22:42:01 2014 +0000
- Revision:
- 310:6188e0254baa
- Parent:
- 146:f64d43ff0c18
N/A
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 146:f64d43ff0c18 | 1 | /* |
mbed_official | 146:f64d43ff0c18 | 2 | ** ################################################################### |
mbed_official | 146:f64d43ff0c18 | 3 | ** Processor: MK64FN1M0VMD12 |
mbed_official | 146:f64d43ff0c18 | 4 | ** Compilers: ARM Compiler |
mbed_official | 146:f64d43ff0c18 | 5 | ** Freescale C/C++ for Embedded ARM |
mbed_official | 146:f64d43ff0c18 | 6 | ** GNU C Compiler |
mbed_official | 146:f64d43ff0c18 | 7 | ** GNU C Compiler - CodeSourcery Sourcery G++ |
mbed_official | 146:f64d43ff0c18 | 8 | ** IAR ANSI C/C++ Compiler for ARM |
mbed_official | 146:f64d43ff0c18 | 9 | ** |
mbed_official | 146:f64d43ff0c18 | 10 | ** Reference manual: K64P144M120SF5RM, Rev.1, July 2013 |
mbed_official | 146:f64d43ff0c18 | 11 | ** Version: rev. 2.1, 2013-10-29 |
mbed_official | 146:f64d43ff0c18 | 12 | ** |
mbed_official | 146:f64d43ff0c18 | 13 | ** Abstract: |
mbed_official | 146:f64d43ff0c18 | 14 | ** Provides a system configuration function and a global variable that |
mbed_official | 146:f64d43ff0c18 | 15 | ** contains the system frequency. It configures the device and initializes |
mbed_official | 146:f64d43ff0c18 | 16 | ** the oscillator (PLL) that is part of the microcontroller device. |
mbed_official | 146:f64d43ff0c18 | 17 | ** |
mbed_official | 146:f64d43ff0c18 | 18 | ** Copyright: 2013 Freescale, Inc. All Rights Reserved. |
mbed_official | 146:f64d43ff0c18 | 19 | ** |
mbed_official | 146:f64d43ff0c18 | 20 | ** http: www.freescale.com |
mbed_official | 146:f64d43ff0c18 | 21 | ** mail: support@freescale.com |
mbed_official | 146:f64d43ff0c18 | 22 | ** |
mbed_official | 146:f64d43ff0c18 | 23 | ** Revisions: |
mbed_official | 146:f64d43ff0c18 | 24 | ** - rev. 1.0 (2013-08-12) |
mbed_official | 146:f64d43ff0c18 | 25 | ** Initial version. |
mbed_official | 146:f64d43ff0c18 | 26 | ** - rev. 2.0 (2013-10-29) |
mbed_official | 146:f64d43ff0c18 | 27 | ** Register accessor macros added to the memory map. |
mbed_official | 146:f64d43ff0c18 | 28 | ** Symbols for Processor Expert memory map compatibility added to the memory map. |
mbed_official | 146:f64d43ff0c18 | 29 | ** Startup file for gcc has been updated according to CMSIS 3.2. |
mbed_official | 146:f64d43ff0c18 | 30 | ** System initialization updated. |
mbed_official | 146:f64d43ff0c18 | 31 | ** MCG - registers updated. |
mbed_official | 146:f64d43ff0c18 | 32 | ** PORTA, PORTB, PORTC, PORTE - registers for digital filter removed. |
mbed_official | 146:f64d43ff0c18 | 33 | ** - rev. 2.1 (2013-10-29) |
mbed_official | 146:f64d43ff0c18 | 34 | ** Definition of BITBAND macros updated to support peripherals with 32-bit acces disabled. |
mbed_official | 146:f64d43ff0c18 | 35 | ** |
mbed_official | 146:f64d43ff0c18 | 36 | ** ################################################################### |
mbed_official | 146:f64d43ff0c18 | 37 | */ |
mbed_official | 146:f64d43ff0c18 | 38 | |
mbed_official | 146:f64d43ff0c18 | 39 | /*! |
mbed_official | 146:f64d43ff0c18 | 40 | * @file MK64F12 |
mbed_official | 146:f64d43ff0c18 | 41 | * @version 2.1 |
mbed_official | 146:f64d43ff0c18 | 42 | * @date 2013-10-29 |
mbed_official | 146:f64d43ff0c18 | 43 | * @brief Device specific configuration file for MK64F12 (header file) |
mbed_official | 146:f64d43ff0c18 | 44 | * |
mbed_official | 146:f64d43ff0c18 | 45 | * Provides a system configuration function and a global variable that contains |
mbed_official | 146:f64d43ff0c18 | 46 | * the system frequency. It configures the device and initializes the oscillator |
mbed_official | 146:f64d43ff0c18 | 47 | * (PLL) that is part of the microcontroller device. |
mbed_official | 146:f64d43ff0c18 | 48 | */ |
mbed_official | 146:f64d43ff0c18 | 49 | |
mbed_official | 146:f64d43ff0c18 | 50 | #ifndef SYSTEM_MK64F12_H_ |
mbed_official | 146:f64d43ff0c18 | 51 | #define SYSTEM_MK64F12_H_ /**< Symbol preventing repeated inclusion */ |
mbed_official | 146:f64d43ff0c18 | 52 | |
mbed_official | 146:f64d43ff0c18 | 53 | #ifdef __cplusplus |
mbed_official | 146:f64d43ff0c18 | 54 | extern "C" { |
mbed_official | 146:f64d43ff0c18 | 55 | #endif |
mbed_official | 146:f64d43ff0c18 | 56 | |
mbed_official | 146:f64d43ff0c18 | 57 | #include <stdint.h> |
mbed_official | 146:f64d43ff0c18 | 58 | |
mbed_official | 146:f64d43ff0c18 | 59 | /** |
mbed_official | 146:f64d43ff0c18 | 60 | * @brief System clock frequency (core clock) |
mbed_official | 146:f64d43ff0c18 | 61 | * |
mbed_official | 146:f64d43ff0c18 | 62 | * The system clock frequency supplied to the SysTick timer and the processor |
mbed_official | 146:f64d43ff0c18 | 63 | * core clock. This variable can be used by the user application to setup the |
mbed_official | 146:f64d43ff0c18 | 64 | * SysTick timer or configure other parameters. It may also be used by debugger to |
mbed_official | 146:f64d43ff0c18 | 65 | * query the frequency of the debug timer or configure the trace clock speed |
mbed_official | 146:f64d43ff0c18 | 66 | * SystemCoreClock is initialized with a correct predefined value. |
mbed_official | 146:f64d43ff0c18 | 67 | */ |
mbed_official | 146:f64d43ff0c18 | 68 | extern uint32_t SystemCoreClock; |
mbed_official | 146:f64d43ff0c18 | 69 | |
mbed_official | 146:f64d43ff0c18 | 70 | /** |
mbed_official | 146:f64d43ff0c18 | 71 | * @brief Setup the microcontroller system. |
mbed_official | 146:f64d43ff0c18 | 72 | * |
mbed_official | 146:f64d43ff0c18 | 73 | * Typically this function configures the oscillator (PLL) that is part of the |
mbed_official | 146:f64d43ff0c18 | 74 | * microcontroller device. For systems with variable clock speed it also updates |
mbed_official | 146:f64d43ff0c18 | 75 | * the variable SystemCoreClock. SystemInit is called from startup_device file. |
mbed_official | 146:f64d43ff0c18 | 76 | */ |
mbed_official | 146:f64d43ff0c18 | 77 | void SystemInit (void); |
mbed_official | 146:f64d43ff0c18 | 78 | |
mbed_official | 146:f64d43ff0c18 | 79 | /** |
mbed_official | 146:f64d43ff0c18 | 80 | * @brief Updates the SystemCoreClock variable. |
mbed_official | 146:f64d43ff0c18 | 81 | * |
mbed_official | 146:f64d43ff0c18 | 82 | * It must be called whenever the core clock is changed during program |
mbed_official | 146:f64d43ff0c18 | 83 | * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates |
mbed_official | 146:f64d43ff0c18 | 84 | * the current core clock. |
mbed_official | 146:f64d43ff0c18 | 85 | */ |
mbed_official | 146:f64d43ff0c18 | 86 | void SystemCoreClockUpdate (void); |
mbed_official | 146:f64d43ff0c18 | 87 | |
mbed_official | 146:f64d43ff0c18 | 88 | #ifdef __cplusplus |
mbed_official | 146:f64d43ff0c18 | 89 | } |
mbed_official | 146:f64d43ff0c18 | 90 | #endif |
mbed_official | 146:f64d43ff0c18 | 91 | |
mbed_official | 146:f64d43ff0c18 | 92 | #endif /* #if !defined(SYSTEM_MK64F12_H_) */ |