added prescaler for 16 bit pwm in LPC1347 target

Fork of mbed-dev by mbed official

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?

UserRevisionLine numberNew contents of line
<> 144:ef7eb2e8f9f7 1 /**
<> 144:ef7eb2e8f9f7 2 ******************************************************************************
<> 144:ef7eb2e8f9f7 3 * @file swversion.c
<> 144:ef7eb2e8f9f7 4 * @brief Defines the system revision for the current application.
<> 144:ef7eb2e8f9f7 5 * @internal
<> 144:ef7eb2e8f9f7 6 * @author ON Semiconductor
<> 144:ef7eb2e8f9f7 7 * $Rev: 2199 $
<> 144:ef7eb2e8f9f7 8 * $Date: 2013-08-07 12:17:27 +0200 (Wed, 07 Aug 2013) $
<> 144:ef7eb2e8f9f7 9 ******************************************************************************
<> 144:ef7eb2e8f9f7 10 * @copyright (c) 2012 ON Semiconductor. All rights reserved.
<> 144:ef7eb2e8f9f7 11 * ON Semiconductor is supplying this software for use with ON Semiconductor
<> 144:ef7eb2e8f9f7 12 * processor based microcontrollers only.
<> 144:ef7eb2e8f9f7 13 *
<> 144:ef7eb2e8f9f7 14 * THIS SOFTWARE IS PROVIDED "AS IS". NO WARRANTIES, WHETHER EXPRESS, IMPLIED
<> 144:ef7eb2e8f9f7 15 * OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF
<> 144:ef7eb2e8f9f7 16 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE.
<> 144:ef7eb2e8f9f7 17 * ON SEMICONDUCTOR SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL,
<> 144:ef7eb2e8f9f7 18 * INCIDENTAL, OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
<> 144:ef7eb2e8f9f7 19 * @endinternal
<> 144:ef7eb2e8f9f7 20 *
<> 144:ef7eb2e8f9f7 21 * @ingroup common_mib
<> 144:ef7eb2e8f9f7 22 */
<> 144:ef7eb2e8f9f7 23
<> 144:ef7eb2e8f9f7 24 /* Other inclusions */
<> 144:ef7eb2e8f9f7 25 #include <stdint.h>
<> 144:ef7eb2e8f9f7 26 #include "fib.h"
<> 144:ef7eb2e8f9f7 27
<> 144:ef7eb2e8f9f7 28 /*************************************************************************************************
<> 144:ef7eb2e8f9f7 29 * *
<> 144:ef7eb2e8f9f7 30 * Global variables *
<> 144:ef7eb2e8f9f7 31 * *
<> 144:ef7eb2e8f9f7 32 *************************************************************************************************/
<> 144:ef7eb2e8f9f7 33
<> 144:ef7eb2e8f9f7 34 #ifdef IAR
<> 144:ef7eb2e8f9f7 35 /** Define a fib table constant region, to be located at fixed offset in the binary
<> 144:ef7eb2e8f9f7 36 * such that flash loader knows where to find it and gets the build dependent data
<> 144:ef7eb2e8f9f7 37 * it needs for programming the new fib.
<> 144:ef7eb2e8f9f7 38 */
<> 144:ef7eb2e8f9f7 39 __root const fibtable_t fib_table @ "FIBTABLE" = { LOAD_ADDRESS,{0x0,0x00,0x00,0x00}};
<> 144:ef7eb2e8f9f7 40 #endif /* IAR */
<> 144:ef7eb2e8f9f7 41
<> 144:ef7eb2e8f9f7 42 const mib_systemRevision_t systemRevision = {
<> 144:ef7eb2e8f9f7 43 0x82, /**< hardware revision */
<> 144:ef7eb2e8f9f7 44 0x00, /**< patch level */
<> 144:ef7eb2e8f9f7 45 0x01, /**< Build number */
<> 144:ef7eb2e8f9f7 46 0x00, /**< feature set, Minor version */
<> 144:ef7eb2e8f9f7 47 0x01, /**< generation, Major version */
<> 144:ef7eb2e8f9f7 48 'E' /**< release */
<> 144:ef7eb2e8f9f7 49 };