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