fix LPC812 PWM

Dependents:   IR_LED_Send

Fork of mbed-dev by mbed official

Committer:
nameless129
Date:
Mon May 16 16:50:30 2016 +0000
Revision:
129:2e517c56bcfb
Parent:
0:9b334a45a8ff
PWM Fix:Duty 0%??H???????????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bogdanm 0:9b334a45a8ff 1 /*
bogdanm 0:9b334a45a8ff 2 ** ###################################################################
bogdanm 0:9b334a45a8ff 3 ** Compilers: ARM Compiler
bogdanm 0:9b334a45a8ff 4 ** Freescale C/C++ for Embedded ARM
bogdanm 0:9b334a45a8ff 5 ** GNU C Compiler
bogdanm 0:9b334a45a8ff 6 ** IAR ANSI C/C++ Compiler for ARM
bogdanm 0:9b334a45a8ff 7 **
bogdanm 0:9b334a45a8ff 8 ** Reference manuals: K20P64M50SF0RM Rev. 1, Oct 2011
bogdanm 0:9b334a45a8ff 9 ** K20P32M50SF0RM Rev. 1, Oct 2011
bogdanm 0:9b334a45a8ff 10 ** K20P48M50SF0RM Rev. 1, Oct 2011
bogdanm 0:9b334a45a8ff 11 **
bogdanm 0:9b334a45a8ff 12 ** Version: rev. 2.0, 2012-03-19
bogdanm 0:9b334a45a8ff 13 **
bogdanm 0:9b334a45a8ff 14 ** Abstract:
bogdanm 0:9b334a45a8ff 15 ** Provides a system configuration function and a global variable that
bogdanm 0:9b334a45a8ff 16 ** contains the system frequency. It configures the device and initializes
bogdanm 0:9b334a45a8ff 17 ** the oscillator (PLL) that is part of the microcontroller device.
bogdanm 0:9b334a45a8ff 18 **
bogdanm 0:9b334a45a8ff 19 ** Copyright: 2015 Freescale Semiconductor, Inc. All Rights Reserved.
bogdanm 0:9b334a45a8ff 20 **
bogdanm 0:9b334a45a8ff 21 ** http: www.freescale.com
bogdanm 0:9b334a45a8ff 22 ** mail: support@freescale.com
bogdanm 0:9b334a45a8ff 23 **
bogdanm 0:9b334a45a8ff 24 ** Revisions:
bogdanm 0:9b334a45a8ff 25 ** - rev. 1.0 (2011-12-15)
bogdanm 0:9b334a45a8ff 26 ** Initial version
bogdanm 0:9b334a45a8ff 27 ** - rev. 2.0 (2012-03-19)
bogdanm 0:9b334a45a8ff 28 ** PDB Peripheral register structure updated.
bogdanm 0:9b334a45a8ff 29 ** DMA Registers and bits for unsupported DMA channels removed.
bogdanm 0:9b334a45a8ff 30 **
bogdanm 0:9b334a45a8ff 31 ** ###################################################################
bogdanm 0:9b334a45a8ff 32 */
bogdanm 0:9b334a45a8ff 33
bogdanm 0:9b334a45a8ff 34 /**
bogdanm 0:9b334a45a8ff 35 * @file MK20D5
bogdanm 0:9b334a45a8ff 36 * @version 2.0
bogdanm 0:9b334a45a8ff 37 * @date 2012-03-19
bogdanm 0:9b334a45a8ff 38 * @brief Device specific configuration file for MK20D5 (header file)
bogdanm 0:9b334a45a8ff 39 *
bogdanm 0:9b334a45a8ff 40 * Provides a system configuration function and a global variable that contains
bogdanm 0:9b334a45a8ff 41 * the system frequency. It configures the device and initializes the oscillator
bogdanm 0:9b334a45a8ff 42 * (PLL) that is part of the microcontroller device.
bogdanm 0:9b334a45a8ff 43 */
bogdanm 0:9b334a45a8ff 44
bogdanm 0:9b334a45a8ff 45 #ifndef SYSTEM_MK20D5_H_
bogdanm 0:9b334a45a8ff 46 #define SYSTEM_MK20D5_H_ /**< Symbol preventing repeated inclusion */
bogdanm 0:9b334a45a8ff 47
bogdanm 0:9b334a45a8ff 48 #ifdef __cplusplus
bogdanm 0:9b334a45a8ff 49 extern "C" {
bogdanm 0:9b334a45a8ff 50 #endif
bogdanm 0:9b334a45a8ff 51
bogdanm 0:9b334a45a8ff 52 #include <stdint.h>
bogdanm 0:9b334a45a8ff 53
bogdanm 0:9b334a45a8ff 54 /**
bogdanm 0:9b334a45a8ff 55 * @brief System clock frequency (core clock)
bogdanm 0:9b334a45a8ff 56 *
bogdanm 0:9b334a45a8ff 57 * The system clock frequency supplied to the SysTick timer and the processor
bogdanm 0:9b334a45a8ff 58 * core clock. This variable can be used by the user application to setup the
bogdanm 0:9b334a45a8ff 59 * SysTick timer or configure other parameters. It may also be used by debugger to
bogdanm 0:9b334a45a8ff 60 * query the frequency of the debug timer or configure the trace clock speed
bogdanm 0:9b334a45a8ff 61 * SystemCoreClock is initialized with a correct predefined value.
bogdanm 0:9b334a45a8ff 62 */
bogdanm 0:9b334a45a8ff 63 extern uint32_t SystemCoreClock;
bogdanm 0:9b334a45a8ff 64
bogdanm 0:9b334a45a8ff 65 /**
bogdanm 0:9b334a45a8ff 66 * @brief Setup the microcontroller system.
bogdanm 0:9b334a45a8ff 67 *
bogdanm 0:9b334a45a8ff 68 * Typically this function configures the oscillator (PLL) that is part of the
bogdanm 0:9b334a45a8ff 69 * microcontroller device. For systems with variable clock speed it also updates
bogdanm 0:9b334a45a8ff 70 * the variable SystemCoreClock. SystemInit is called from startup_device file.
bogdanm 0:9b334a45a8ff 71 */
bogdanm 0:9b334a45a8ff 72 void SystemInit (void);
bogdanm 0:9b334a45a8ff 73
bogdanm 0:9b334a45a8ff 74 /**
bogdanm 0:9b334a45a8ff 75 * @brief Updates the SystemCoreClock variable.
bogdanm 0:9b334a45a8ff 76 *
bogdanm 0:9b334a45a8ff 77 * It must be called whenever the core clock is changed during program
bogdanm 0:9b334a45a8ff 78 * execution. SystemCoreClockUpdate() evaluates the clock register settings and calculates
bogdanm 0:9b334a45a8ff 79 * the current core clock.
bogdanm 0:9b334a45a8ff 80 */
bogdanm 0:9b334a45a8ff 81 void SystemCoreClockUpdate (void);
bogdanm 0:9b334a45a8ff 82
bogdanm 0:9b334a45a8ff 83 #ifdef __cplusplus
bogdanm 0:9b334a45a8ff 84 }
bogdanm 0:9b334a45a8ff 85 #endif
bogdanm 0:9b334a45a8ff 86
bogdanm 0:9b334a45a8ff 87 #endif /* #if !defined(SYSTEM_MK20D5_H_) */