mbed library for slider v2
TARGET_KL46Z/system_MKL46Z4.h@0:b7116bd48af6, 2016-09-14 (annotated)
- Committer:
- mturner5
- Date:
- Wed Sep 14 07:04:27 2016 +0000
- Revision:
- 0:b7116bd48af6
Tried to use the timer.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mturner5 | 0:b7116bd48af6 | 1 | /* |
mturner5 | 0:b7116bd48af6 | 2 | ** ################################################################### |
mturner5 | 0:b7116bd48af6 | 3 | ** Processors: MKL46Z256VLH4 |
mturner5 | 0:b7116bd48af6 | 4 | ** MKL46Z128VLH4 |
mturner5 | 0:b7116bd48af6 | 5 | ** MKL46Z256VLL4 |
mturner5 | 0:b7116bd48af6 | 6 | ** MKL46Z128VLL4 |
mturner5 | 0:b7116bd48af6 | 7 | ** MKL46Z256VMC4 |
mturner5 | 0:b7116bd48af6 | 8 | ** MKL46Z128VMC4 |
mturner5 | 0:b7116bd48af6 | 9 | ** |
mturner5 | 0:b7116bd48af6 | 10 | ** Compilers: ARM Compiler |
mturner5 | 0:b7116bd48af6 | 11 | ** Freescale C/C++ for Embedded ARM |
mturner5 | 0:b7116bd48af6 | 12 | ** GNU C Compiler |
mturner5 | 0:b7116bd48af6 | 13 | ** IAR ANSI C/C++ Compiler for ARM |
mturner5 | 0:b7116bd48af6 | 14 | ** |
mturner5 | 0:b7116bd48af6 | 15 | ** Reference manual: KL46P121M48SF4RM, Rev.1 Draft A, Aug 2012 |
mturner5 | 0:b7116bd48af6 | 16 | ** Version: rev. 2.0, 2012-12-12 |
mturner5 | 0:b7116bd48af6 | 17 | ** |
mturner5 | 0:b7116bd48af6 | 18 | ** Abstract: |
mturner5 | 0:b7116bd48af6 | 19 | ** Provides a system configuration function and a global variable that |
mturner5 | 0:b7116bd48af6 | 20 | ** contains the system frequency. It configures the device and initializes |
mturner5 | 0:b7116bd48af6 | 21 | ** the oscillator (PLL) that is part of the microcontroller device. |
mturner5 | 0:b7116bd48af6 | 22 | ** |
mturner5 | 0:b7116bd48af6 | 23 | ** Copyright: 2012 Freescale, Inc. All Rights Reserved. |
mturner5 | 0:b7116bd48af6 | 24 | ** |
mturner5 | 0:b7116bd48af6 | 25 | ** http: www.freescale.com |
mturner5 | 0:b7116bd48af6 | 26 | ** mail: support@freescale.com |
mturner5 | 0:b7116bd48af6 | 27 | ** |
mturner5 | 0:b7116bd48af6 | 28 | ** Revisions: |
mturner5 | 0:b7116bd48af6 | 29 | ** - rev. 1.0 (2012-10-16) |
mturner5 | 0:b7116bd48af6 | 30 | ** Initial version. |
mturner5 | 0:b7116bd48af6 | 31 | ** - rev. 2.0 (2012-12-12) |
mturner5 | 0:b7116bd48af6 | 32 | ** Update to reference manual rev. 1. |
mturner5 | 0:b7116bd48af6 | 33 | ** |
mturner5 | 0:b7116bd48af6 | 34 | ** ################################################################### |
mturner5 | 0:b7116bd48af6 | 35 | */ |
mturner5 | 0:b7116bd48af6 | 36 | |
mturner5 | 0:b7116bd48af6 | 37 | /** |
mturner5 | 0:b7116bd48af6 | 38 | * @file MKL46Z4 |
mturner5 | 0:b7116bd48af6 | 39 | * @version 2.0 |
mturner5 | 0:b7116bd48af6 | 40 | * @date 2012-12-12 |
mturner5 | 0:b7116bd48af6 | 41 | * @brief Device specific configuration file for MKL46Z4 (header file) |
mturner5 | 0:b7116bd48af6 | 42 | * |
mturner5 | 0:b7116bd48af6 | 43 | * Provides a system configuration function and a global variable that contains |
mturner5 | 0:b7116bd48af6 | 44 | * the system frequency. It configures the device and initializes the oscillator |
mturner5 | 0:b7116bd48af6 | 45 | * (PLL) that is part of the microcontroller device. |
mturner5 | 0:b7116bd48af6 | 46 | */ |
mturner5 | 0:b7116bd48af6 | 47 | |
mturner5 | 0:b7116bd48af6 | 48 | #ifndef SYSTEM_MKL46Z4_H_ |
mturner5 | 0:b7116bd48af6 | 49 | #define SYSTEM_MKL46Z4_H_ /**< Symbol preventing repeated inclusion */ |
mturner5 | 0:b7116bd48af6 | 50 | |
mturner5 | 0:b7116bd48af6 | 51 | #ifdef __cplusplus |
mturner5 | 0:b7116bd48af6 | 52 | extern "C" { |
mturner5 | 0:b7116bd48af6 | 53 | #endif |
mturner5 | 0:b7116bd48af6 | 54 | |
mturner5 | 0:b7116bd48af6 | 55 | #include <stdint.h> |
mturner5 | 0:b7116bd48af6 | 56 | |
mturner5 | 0:b7116bd48af6 | 57 | /** |
mturner5 | 0:b7116bd48af6 | 58 | * @brief System clock frequency (core clock) |
mturner5 | 0:b7116bd48af6 | 59 | * |
mturner5 | 0:b7116bd48af6 | 60 | * The system clock frequency supplied to the SysTick timer and the processor |
mturner5 | 0:b7116bd48af6 | 61 | * core clock. This variable can be used by the user application to setup the |
mturner5 | 0:b7116bd48af6 | 62 | * SysTick timer or configure other parameters. It may also be used by debugger to |
mturner5 | 0:b7116bd48af6 | 63 | * query the frequency of the debug timer or configure the trace clock speed |
mturner5 | 0:b7116bd48af6 | 64 | * SystemCoreClock is initialized with a correct predefined value. |
mturner5 | 0:b7116bd48af6 | 65 | */ |
mturner5 | 0:b7116bd48af6 | 66 | extern uint32_t SystemCoreClock; |
mturner5 | 0:b7116bd48af6 | 67 | |
mturner5 | 0:b7116bd48af6 | 68 | /** |
mturner5 | 0:b7116bd48af6 | 69 | * @brief Setup the microcontroller system. |
mturner5 | 0:b7116bd48af6 | 70 | * |
mturner5 | 0:b7116bd48af6 | 71 | * Typically this function configures the oscillator (PLL) that is part of the |
mturner5 | 0:b7116bd48af6 | 72 | * microcontroller device. For systems with variable clock speed it also updates |
mturner5 | 0:b7116bd48af6 | 73 | * the variable SystemCoreClock. SystemInit is called from startup_device file. |
mturner5 | 0:b7116bd48af6 | 74 | */ |
mturner5 | 0:b7116bd48af6 | 75 | void SystemInit (void); |
mturner5 | 0:b7116bd48af6 | 76 | |
mturner5 | 0:b7116bd48af6 | 77 | /** |
mturner5 | 0:b7116bd48af6 | 78 | * @brief Updates the SystemCoreClock variable. |
mturner5 | 0:b7116bd48af6 | 79 | * |
mturner5 | 0:b7116bd48af6 | 80 | * It must be called whenever the core clock is changed during program |
mturner5 | 0:b7116bd48af6 | 81 | * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates |
mturner5 | 0:b7116bd48af6 | 82 | * the current core clock. |
mturner5 | 0:b7116bd48af6 | 83 | */ |
mturner5 | 0:b7116bd48af6 | 84 | void SystemCoreClockUpdate (void); |
mturner5 | 0:b7116bd48af6 | 85 | |
mturner5 | 0:b7116bd48af6 | 86 | #ifdef __cplusplus |
mturner5 | 0:b7116bd48af6 | 87 | } |
mturner5 | 0:b7116bd48af6 | 88 | #endif |
mturner5 | 0:b7116bd48af6 | 89 | |
mturner5 | 0:b7116bd48af6 | 90 | #endif /* #if !defined(SYSTEM_MKL46Z4_H_) */ |