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 * BEETLE CMSIS Library
<> 144:ef7eb2e8f9f7 3 */
<> 144:ef7eb2e8f9f7 4 /*
<> 144:ef7eb2e8f9f7 5 * Copyright (c) 2009-2016 ARM Limited. All rights reserved.
<> 144:ef7eb2e8f9f7 6 *
<> 144:ef7eb2e8f9f7 7 * SPDX-License-Identifier: Apache-2.0
<> 144:ef7eb2e8f9f7 8 *
<> 144:ef7eb2e8f9f7 9 * Licensed under the Apache License, Version 2.0 (the License) you may
<> 144:ef7eb2e8f9f7 10 * not use this file except in compliance with the License.
<> 144:ef7eb2e8f9f7 11 * You may obtain a copy of the License at
<> 144:ef7eb2e8f9f7 12 *
<> 144:ef7eb2e8f9f7 13 * http://www.apache.org/licenses/LICENSE-2.0
<> 144:ef7eb2e8f9f7 14 *
<> 144:ef7eb2e8f9f7 15 * Unless required by applicable law or agreed to in writing, software
<> 144:ef7eb2e8f9f7 16 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
<> 144:ef7eb2e8f9f7 17 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
<> 144:ef7eb2e8f9f7 18 * See the License for the specific language governing permissions and
<> 144:ef7eb2e8f9f7 19 * limitations under the License.
<> 144:ef7eb2e8f9f7 20 */
<> 144:ef7eb2e8f9f7 21 /*###ICF### Section handled by ICF editor, don't touch! ****/
<> 144:ef7eb2e8f9f7 22 /*-Editor annotation file-*/
<> 144:ef7eb2e8f9f7 23 /* IcfEditorFile="$TOOLKIT_DIR$\config\ide\IcfEditor\cortex_v1_0.xml" */
<> 144:ef7eb2e8f9f7 24 /*-Specials-*/
<> 144:ef7eb2e8f9f7 25 define symbol __ICFEDIT_intvec_start__ = 0x00000000;
<> 144:ef7eb2e8f9f7 26 /*-Memory Regions-*/
<> 144:ef7eb2e8f9f7 27 define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
<> 144:ef7eb2e8f9f7 28 define symbol __ICFEDIT_region_ROM_end__ = 0x0003FFFF;
<> 144:ef7eb2e8f9f7 29 define symbol __ICFEDIT_region_RAM_start__ = 0x20000140;
<> 144:ef7eb2e8f9f7 30 define symbol __ICFEDIT_region_RAM_end__ = 0x2001FFFF;
<> 144:ef7eb2e8f9f7 31 /*-Sizes-*/
<> 144:ef7eb2e8f9f7 32 /* Heap and Stack size */
<> 144:ef7eb2e8f9f7 33 define symbol __ICFEDIT_size_cstack__ = 0x1000;
<> 144:ef7eb2e8f9f7 34 define symbol __ICFEDIT_size_heap__ = 0x4000;
<> 144:ef7eb2e8f9f7 35 /**** End of ICF editor section. ###ICF###*/
<> 144:ef7eb2e8f9f7 36
<> 144:ef7eb2e8f9f7 37 define memory mem with size = 4G;
<> 144:ef7eb2e8f9f7 38 define region ROM_region = mem:[from __ICFEDIT_region_ROM_start__ to __ICFEDIT_region_ROM_end__];
<> 144:ef7eb2e8f9f7 39 define region RAM_region = mem:[from __ICFEDIT_region_RAM_start__ to __ICFEDIT_region_RAM_end__];
<> 144:ef7eb2e8f9f7 40
<> 144:ef7eb2e8f9f7 41 initialize by copy { readwrite };
<> 144:ef7eb2e8f9f7 42 do not initialize { section .noinit };
<> 144:ef7eb2e8f9f7 43
<> 144:ef7eb2e8f9f7 44 define block CSTACK with alignment = 8, size = __ICFEDIT_size_cstack__ { };
<> 144:ef7eb2e8f9f7 45 define block HEAP with alignment = 8, size = __ICFEDIT_size_heap__ { };
<> 144:ef7eb2e8f9f7 46
<> 144:ef7eb2e8f9f7 47 place at address mem:__ICFEDIT_intvec_start__ { readonly section .intvec };
<> 144:ef7eb2e8f9f7 48 place in ROM_region { readonly };
<> 144:ef7eb2e8f9f7 49 place in RAM_region { readwrite,
<> 144:ef7eb2e8f9f7 50 block CSTACK, block HEAP };