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