added prescaler for 16 bit pwm in LPC1347 target

Fork of mbed-dev by mbed official

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?

UserRevisionLine numberNew contents of line
bogdanm 0:9b334a45a8ff 1 /******************************************************************************
bogdanm 0:9b334a45a8ff 2 * @file: system_LPC17xx.h
bogdanm 0:9b334a45a8ff 3 * @purpose: CMSIS Cortex-M3 Device Peripheral Access Layer Header File
bogdanm 0:9b334a45a8ff 4 * for the NXP LPC17xx Device Series
bogdanm 0:9b334a45a8ff 5 * @version: V1.02
bogdanm 0:9b334a45a8ff 6 * @date: 27. July 2009
bogdanm 0:9b334a45a8ff 7 *----------------------------------------------------------------------------
bogdanm 0:9b334a45a8ff 8 *
bogdanm 0:9b334a45a8ff 9 * Copyright (C) 2009 ARM Limited. All rights reserved.
bogdanm 0:9b334a45a8ff 10 *
bogdanm 0:9b334a45a8ff 11 * ARM Limited (ARM) is supplying this software for use with Cortex-M3
bogdanm 0:9b334a45a8ff 12 * processor based microcontrollers. This file can be freely distributed
bogdanm 0:9b334a45a8ff 13 * within development tools that are supporting such ARM based processors.
bogdanm 0:9b334a45a8ff 14 *
bogdanm 0:9b334a45a8ff 15 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
bogdanm 0:9b334a45a8ff 16 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
bogdanm 0:9b334a45a8ff 17 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
bogdanm 0:9b334a45a8ff 18 * ARM SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL, OR
bogdanm 0:9b334a45a8ff 19 * CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
bogdanm 0:9b334a45a8ff 20 *
bogdanm 0:9b334a45a8ff 21 ******************************************************************************/
bogdanm 0:9b334a45a8ff 22
bogdanm 0:9b334a45a8ff 23
bogdanm 0:9b334a45a8ff 24 #ifndef __SYSTEM_LPC17xx_H
bogdanm 0:9b334a45a8ff 25 #define __SYSTEM_LPC17xx_H
bogdanm 0:9b334a45a8ff 26
bogdanm 0:9b334a45a8ff 27 #ifdef __cplusplus
bogdanm 0:9b334a45a8ff 28 extern "C" {
bogdanm 0:9b334a45a8ff 29 #endif
bogdanm 0:9b334a45a8ff 30
bogdanm 0:9b334a45a8ff 31 extern uint32_t SystemCoreClock; /*!< System Clock Frequency (Core Clock) */
bogdanm 0:9b334a45a8ff 32
bogdanm 0:9b334a45a8ff 33
bogdanm 0:9b334a45a8ff 34 /**
bogdanm 0:9b334a45a8ff 35 * Initialize the system
bogdanm 0:9b334a45a8ff 36 *
bogdanm 0:9b334a45a8ff 37 * @param none
bogdanm 0:9b334a45a8ff 38 * @return none
bogdanm 0:9b334a45a8ff 39 *
bogdanm 0:9b334a45a8ff 40 * @brief Setup the microcontroller system.
bogdanm 0:9b334a45a8ff 41 * Initialize the System and update the SystemCoreClock variable.
bogdanm 0:9b334a45a8ff 42 */
bogdanm 0:9b334a45a8ff 43 extern void SystemInit (void);
bogdanm 0:9b334a45a8ff 44
bogdanm 0:9b334a45a8ff 45 /**
bogdanm 0:9b334a45a8ff 46 * Update SystemCoreClock variable
bogdanm 0:9b334a45a8ff 47 *
bogdanm 0:9b334a45a8ff 48 * @param none
bogdanm 0:9b334a45a8ff 49 * @return none
bogdanm 0:9b334a45a8ff 50 *
bogdanm 0:9b334a45a8ff 51 * @brief Updates the SystemCoreClock with current core Clock
bogdanm 0:9b334a45a8ff 52 * retrieved from cpu registers.
bogdanm 0:9b334a45a8ff 53 */
bogdanm 0:9b334a45a8ff 54 extern void SystemCoreClockUpdate (void);
bogdanm 0:9b334a45a8ff 55
bogdanm 0:9b334a45a8ff 56 #ifdef __cplusplus
bogdanm 0:9b334a45a8ff 57 }
bogdanm 0:9b334a45a8ff 58 #endif
bogdanm 0:9b334a45a8ff 59
bogdanm 0:9b334a45a8ff 60 #endif /* __SYSTEM_LPC17xx_H */