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