added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PinNames.h@144:ef7eb2e8f9f7, 2016-09-02 (annotated)
- Committer:
- <>
- Date:
- Fri Sep 02 15:07:44 2016 +0100
- Revision:
- 144:ef7eb2e8f9f7
- Parent:
- 0:9b334a45a8ff
This updates the lib to the mbed lib v125
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
<> | 144:ef7eb2e8f9f7 | 1 | /* mbed Microcontroller Library |
<> | 144:ef7eb2e8f9f7 | 2 | * Copyright (c) 2006-2015 ARM Limited |
<> | 144:ef7eb2e8f9f7 | 3 | * |
<> | 144:ef7eb2e8f9f7 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
<> | 144:ef7eb2e8f9f7 | 5 | * you may not use this file except in compliance with the License. |
<> | 144:ef7eb2e8f9f7 | 6 | * You may obtain a copy of the License at |
<> | 144:ef7eb2e8f9f7 | 7 | * |
<> | 144:ef7eb2e8f9f7 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
<> | 144:ef7eb2e8f9f7 | 9 | * |
<> | 144:ef7eb2e8f9f7 | 10 | * Unless required by applicable law or agreed to in writing, software |
<> | 144:ef7eb2e8f9f7 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
<> | 144:ef7eb2e8f9f7 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
<> | 144:ef7eb2e8f9f7 | 13 | * See the License for the specific language governing permissions and |
<> | 144:ef7eb2e8f9f7 | 14 | * limitations under the License. |
<> | 144:ef7eb2e8f9f7 | 15 | */ |
<> | 144:ef7eb2e8f9f7 | 16 | #ifndef MBED_PINNAMES_H |
<> | 144:ef7eb2e8f9f7 | 17 | #define MBED_PINNAMES_H |
<> | 144:ef7eb2e8f9f7 | 18 | |
<> | 144:ef7eb2e8f9f7 | 19 | #include "cmsis.h" |
<> | 144:ef7eb2e8f9f7 | 20 | |
<> | 144:ef7eb2e8f9f7 | 21 | #ifdef __cplusplus |
<> | 144:ef7eb2e8f9f7 | 22 | extern "C" { |
<> | 144:ef7eb2e8f9f7 | 23 | #endif |
<> | 144:ef7eb2e8f9f7 | 24 | |
<> | 144:ef7eb2e8f9f7 | 25 | typedef enum { |
<> | 144:ef7eb2e8f9f7 | 26 | PIN_INPUT, |
<> | 144:ef7eb2e8f9f7 | 27 | PIN_OUTPUT |
<> | 144:ef7eb2e8f9f7 | 28 | } PinDirection; |
<> | 144:ef7eb2e8f9f7 | 29 | |
<> | 144:ef7eb2e8f9f7 | 30 | /* PCR - 0x1000 */ |
<> | 144:ef7eb2e8f9f7 | 31 | #define PORT_SHIFT 12 |
<> | 144:ef7eb2e8f9f7 | 32 | |
<> | 144:ef7eb2e8f9f7 | 33 | typedef enum { |
<> | 144:ef7eb2e8f9f7 | 34 | PTA0 = 0x0, |
<> | 144:ef7eb2e8f9f7 | 35 | PTA1 = 0x4, |
<> | 144:ef7eb2e8f9f7 | 36 | PTA2 = 0x8, |
<> | 144:ef7eb2e8f9f7 | 37 | PTA3 = 0xc, |
<> | 144:ef7eb2e8f9f7 | 38 | PTA4 = 0x10, |
<> | 144:ef7eb2e8f9f7 | 39 | PTA5 = 0x14, |
<> | 144:ef7eb2e8f9f7 | 40 | PTA6 = 0x18, |
<> | 144:ef7eb2e8f9f7 | 41 | PTA7 = 0x1c, |
<> | 144:ef7eb2e8f9f7 | 42 | PTA8 = 0x20, |
<> | 144:ef7eb2e8f9f7 | 43 | PTA9 = 0x24, |
<> | 144:ef7eb2e8f9f7 | 44 | PTA10 = 0x28, |
<> | 144:ef7eb2e8f9f7 | 45 | PTA11 = 0x2c, |
<> | 144:ef7eb2e8f9f7 | 46 | PTA12 = 0x30, |
<> | 144:ef7eb2e8f9f7 | 47 | PTA13 = 0x34, |
<> | 144:ef7eb2e8f9f7 | 48 | PTA14 = 0x38, |
<> | 144:ef7eb2e8f9f7 | 49 | PTA15 = 0x3c, |
<> | 144:ef7eb2e8f9f7 | 50 | PTA16 = 0x40, |
<> | 144:ef7eb2e8f9f7 | 51 | PTA17 = 0x44, |
<> | 144:ef7eb2e8f9f7 | 52 | PTA18 = 0x48, |
<> | 144:ef7eb2e8f9f7 | 53 | PTA19 = 0x4c, |
<> | 144:ef7eb2e8f9f7 | 54 | PTA20 = 0x50, |
<> | 144:ef7eb2e8f9f7 | 55 | PTA21 = 0x54, |
<> | 144:ef7eb2e8f9f7 | 56 | PTA22 = 0x58, |
<> | 144:ef7eb2e8f9f7 | 57 | PTA23 = 0x5c, |
<> | 144:ef7eb2e8f9f7 | 58 | PTA24 = 0x60, |
<> | 144:ef7eb2e8f9f7 | 59 | PTA25 = 0x64, |
<> | 144:ef7eb2e8f9f7 | 60 | PTA26 = 0x68, |
<> | 144:ef7eb2e8f9f7 | 61 | PTA27 = 0x6c, |
<> | 144:ef7eb2e8f9f7 | 62 | PTA28 = 0x70, |
<> | 144:ef7eb2e8f9f7 | 63 | PTA29 = 0x74, |
<> | 144:ef7eb2e8f9f7 | 64 | PTA30 = 0x78, |
<> | 144:ef7eb2e8f9f7 | 65 | PTA31 = 0x7c, |
<> | 144:ef7eb2e8f9f7 | 66 | PTB0 = 0x1000, |
<> | 144:ef7eb2e8f9f7 | 67 | PTB1 = 0x1004, |
<> | 144:ef7eb2e8f9f7 | 68 | PTB2 = 0x1008, |
<> | 144:ef7eb2e8f9f7 | 69 | PTB3 = 0x100c, |
<> | 144:ef7eb2e8f9f7 | 70 | PTB4 = 0x1010, |
<> | 144:ef7eb2e8f9f7 | 71 | PTB5 = 0x1014, |
<> | 144:ef7eb2e8f9f7 | 72 | PTB6 = 0x1018, |
<> | 144:ef7eb2e8f9f7 | 73 | PTB7 = 0x101c, |
<> | 144:ef7eb2e8f9f7 | 74 | PTB8 = 0x1020, |
<> | 144:ef7eb2e8f9f7 | 75 | PTB9 = 0x1024, |
<> | 144:ef7eb2e8f9f7 | 76 | PTB10 = 0x1028, |
<> | 144:ef7eb2e8f9f7 | 77 | PTB11 = 0x102c, |
<> | 144:ef7eb2e8f9f7 | 78 | PTB12 = 0x1030, |
<> | 144:ef7eb2e8f9f7 | 79 | PTB13 = 0x1034, |
<> | 144:ef7eb2e8f9f7 | 80 | PTB14 = 0x1038, |
<> | 144:ef7eb2e8f9f7 | 81 | PTB15 = 0x103c, |
<> | 144:ef7eb2e8f9f7 | 82 | PTB16 = 0x1040, |
<> | 144:ef7eb2e8f9f7 | 83 | PTB17 = 0x1044, |
<> | 144:ef7eb2e8f9f7 | 84 | PTB18 = 0x1048, |
<> | 144:ef7eb2e8f9f7 | 85 | PTB19 = 0x104c, |
<> | 144:ef7eb2e8f9f7 | 86 | PTB20 = 0x1050, |
<> | 144:ef7eb2e8f9f7 | 87 | PTB21 = 0x1054, |
<> | 144:ef7eb2e8f9f7 | 88 | PTB22 = 0x1058, |
<> | 144:ef7eb2e8f9f7 | 89 | PTB23 = 0x105c, |
<> | 144:ef7eb2e8f9f7 | 90 | PTB24 = 0x1060, |
<> | 144:ef7eb2e8f9f7 | 91 | PTB25 = 0x1064, |
<> | 144:ef7eb2e8f9f7 | 92 | PTB26 = 0x1068, |
<> | 144:ef7eb2e8f9f7 | 93 | PTB27 = 0x106c, |
<> | 144:ef7eb2e8f9f7 | 94 | PTB28 = 0x1070, |
<> | 144:ef7eb2e8f9f7 | 95 | PTB29 = 0x1074, |
<> | 144:ef7eb2e8f9f7 | 96 | PTB30 = 0x1078, |
<> | 144:ef7eb2e8f9f7 | 97 | PTB31 = 0x107c, |
<> | 144:ef7eb2e8f9f7 | 98 | PTC0 = 0x2000, |
<> | 144:ef7eb2e8f9f7 | 99 | PTC1 = 0x2004, |
<> | 144:ef7eb2e8f9f7 | 100 | PTC2 = 0x2008, |
<> | 144:ef7eb2e8f9f7 | 101 | PTC3 = 0x200c, |
<> | 144:ef7eb2e8f9f7 | 102 | PTC4 = 0x2010, |
<> | 144:ef7eb2e8f9f7 | 103 | PTC5 = 0x2014, |
<> | 144:ef7eb2e8f9f7 | 104 | PTC6 = 0x2018, |
<> | 144:ef7eb2e8f9f7 | 105 | PTC7 = 0x201c, |
<> | 144:ef7eb2e8f9f7 | 106 | PTC8 = 0x2020, |
<> | 144:ef7eb2e8f9f7 | 107 | PTC9 = 0x2024, |
<> | 144:ef7eb2e8f9f7 | 108 | PTC10 = 0x2028, |
<> | 144:ef7eb2e8f9f7 | 109 | PTC11 = 0x202c, |
<> | 144:ef7eb2e8f9f7 | 110 | PTC12 = 0x2030, |
<> | 144:ef7eb2e8f9f7 | 111 | PTC13 = 0x2034, |
<> | 144:ef7eb2e8f9f7 | 112 | PTC14 = 0x2038, |
<> | 144:ef7eb2e8f9f7 | 113 | PTC15 = 0x203c, |
<> | 144:ef7eb2e8f9f7 | 114 | PTC16 = 0x2040, |
<> | 144:ef7eb2e8f9f7 | 115 | PTC17 = 0x2044, |
<> | 144:ef7eb2e8f9f7 | 116 | PTC18 = 0x2048, |
<> | 144:ef7eb2e8f9f7 | 117 | PTC19 = 0x204c, |
<> | 144:ef7eb2e8f9f7 | 118 | PTC20 = 0x2050, |
<> | 144:ef7eb2e8f9f7 | 119 | PTC21 = 0x2054, |
<> | 144:ef7eb2e8f9f7 | 120 | PTC22 = 0x2058, |
<> | 144:ef7eb2e8f9f7 | 121 | PTC23 = 0x205c, |
<> | 144:ef7eb2e8f9f7 | 122 | PTC24 = 0x2060, |
<> | 144:ef7eb2e8f9f7 | 123 | PTC25 = 0x2064, |
<> | 144:ef7eb2e8f9f7 | 124 | PTC26 = 0x2068, |
<> | 144:ef7eb2e8f9f7 | 125 | PTC27 = 0x206c, |
<> | 144:ef7eb2e8f9f7 | 126 | PTC28 = 0x2070, |
<> | 144:ef7eb2e8f9f7 | 127 | PTC29 = 0x2074, |
<> | 144:ef7eb2e8f9f7 | 128 | PTC30 = 0x2078, |
<> | 144:ef7eb2e8f9f7 | 129 | PTC31 = 0x207c, |
<> | 144:ef7eb2e8f9f7 | 130 | PTD0 = 0x3000, |
<> | 144:ef7eb2e8f9f7 | 131 | PTD1 = 0x3004, |
<> | 144:ef7eb2e8f9f7 | 132 | PTD2 = 0x3008, |
<> | 144:ef7eb2e8f9f7 | 133 | PTD3 = 0x300c, |
<> | 144:ef7eb2e8f9f7 | 134 | PTD4 = 0x3010, |
<> | 144:ef7eb2e8f9f7 | 135 | PTD5 = 0x3014, |
<> | 144:ef7eb2e8f9f7 | 136 | PTD6 = 0x3018, |
<> | 144:ef7eb2e8f9f7 | 137 | PTD7 = 0x301c, |
<> | 144:ef7eb2e8f9f7 | 138 | PTD8 = 0x3020, |
<> | 144:ef7eb2e8f9f7 | 139 | PTD9 = 0x3024, |
<> | 144:ef7eb2e8f9f7 | 140 | PTD10 = 0x3028, |
<> | 144:ef7eb2e8f9f7 | 141 | PTD11 = 0x302c, |
<> | 144:ef7eb2e8f9f7 | 142 | PTD12 = 0x3030, |
<> | 144:ef7eb2e8f9f7 | 143 | PTD13 = 0x3034, |
<> | 144:ef7eb2e8f9f7 | 144 | PTD14 = 0x3038, |
<> | 144:ef7eb2e8f9f7 | 145 | PTD15 = 0x303c, |
<> | 144:ef7eb2e8f9f7 | 146 | PTD16 = 0x3040, |
<> | 144:ef7eb2e8f9f7 | 147 | PTD17 = 0x3044, |
<> | 144:ef7eb2e8f9f7 | 148 | PTD18 = 0x3048, |
<> | 144:ef7eb2e8f9f7 | 149 | PTD19 = 0x304c, |
<> | 144:ef7eb2e8f9f7 | 150 | PTD20 = 0x3050, |
<> | 144:ef7eb2e8f9f7 | 151 | PTD21 = 0x3054, |
<> | 144:ef7eb2e8f9f7 | 152 | PTD22 = 0x3058, |
<> | 144:ef7eb2e8f9f7 | 153 | PTD23 = 0x305c, |
<> | 144:ef7eb2e8f9f7 | 154 | PTD24 = 0x3060, |
<> | 144:ef7eb2e8f9f7 | 155 | PTD25 = 0x3064, |
<> | 144:ef7eb2e8f9f7 | 156 | PTD26 = 0x3068, |
<> | 144:ef7eb2e8f9f7 | 157 | PTD27 = 0x306c, |
<> | 144:ef7eb2e8f9f7 | 158 | PTD28 = 0x3070, |
<> | 144:ef7eb2e8f9f7 | 159 | PTD29 = 0x3074, |
<> | 144:ef7eb2e8f9f7 | 160 | PTD30 = 0x3078, |
<> | 144:ef7eb2e8f9f7 | 161 | PTD31 = 0x307c, |
<> | 144:ef7eb2e8f9f7 | 162 | PTE0 = 0x4000, |
<> | 144:ef7eb2e8f9f7 | 163 | PTE1 = 0x4004, |
<> | 144:ef7eb2e8f9f7 | 164 | PTE2 = 0x4008, |
<> | 144:ef7eb2e8f9f7 | 165 | PTE3 = 0x400c, |
<> | 144:ef7eb2e8f9f7 | 166 | PTE4 = 0x4010, |
<> | 144:ef7eb2e8f9f7 | 167 | PTE5 = 0x4014, |
<> | 144:ef7eb2e8f9f7 | 168 | PTE6 = 0x4018, |
<> | 144:ef7eb2e8f9f7 | 169 | PTE7 = 0x401c, |
<> | 144:ef7eb2e8f9f7 | 170 | PTE8 = 0x4020, |
<> | 144:ef7eb2e8f9f7 | 171 | PTE9 = 0x4024, |
<> | 144:ef7eb2e8f9f7 | 172 | PTE10 = 0x4028, |
<> | 144:ef7eb2e8f9f7 | 173 | PTE11 = 0x402c, |
<> | 144:ef7eb2e8f9f7 | 174 | PTE12 = 0x4030, |
<> | 144:ef7eb2e8f9f7 | 175 | PTE13 = 0x4034, |
<> | 144:ef7eb2e8f9f7 | 176 | PTE14 = 0x4038, |
<> | 144:ef7eb2e8f9f7 | 177 | PTE15 = 0x403c, |
<> | 144:ef7eb2e8f9f7 | 178 | PTE16 = 0x4040, |
<> | 144:ef7eb2e8f9f7 | 179 | PTE17 = 0x4044, |
<> | 144:ef7eb2e8f9f7 | 180 | PTE18 = 0x4048, |
<> | 144:ef7eb2e8f9f7 | 181 | PTE19 = 0x404c, |
<> | 144:ef7eb2e8f9f7 | 182 | PTE20 = 0x4050, |
<> | 144:ef7eb2e8f9f7 | 183 | PTE21 = 0x4054, |
<> | 144:ef7eb2e8f9f7 | 184 | PTE22 = 0x4058, |
<> | 144:ef7eb2e8f9f7 | 185 | PTE23 = 0x405c, |
<> | 144:ef7eb2e8f9f7 | 186 | PTE24 = 0x4060, |
<> | 144:ef7eb2e8f9f7 | 187 | PTE25 = 0x4064, |
<> | 144:ef7eb2e8f9f7 | 188 | PTE26 = 0x4068, |
<> | 144:ef7eb2e8f9f7 | 189 | PTE27 = 0x406c, |
<> | 144:ef7eb2e8f9f7 | 190 | PTE28 = 0x4070, |
<> | 144:ef7eb2e8f9f7 | 191 | PTE29 = 0x4074, |
<> | 144:ef7eb2e8f9f7 | 192 | PTE30 = 0x4078, |
<> | 144:ef7eb2e8f9f7 | 193 | PTE31 = 0x407c, |
<> | 144:ef7eb2e8f9f7 | 194 | |
<> | 144:ef7eb2e8f9f7 | 195 | LED_RED = PTC3, |
<> | 144:ef7eb2e8f9f7 | 196 | LED_GREEN = PTD4, |
<> | 144:ef7eb2e8f9f7 | 197 | LED_BLUE = PTA2, |
<> | 144:ef7eb2e8f9f7 | 198 | |
<> | 144:ef7eb2e8f9f7 | 199 | // mbed original LED naming |
<> | 144:ef7eb2e8f9f7 | 200 | LED1 = LED_RED, |
<> | 144:ef7eb2e8f9f7 | 201 | LED2 = LED_GREEN, |
<> | 144:ef7eb2e8f9f7 | 202 | LED3 = LED_BLUE, |
<> | 144:ef7eb2e8f9f7 | 203 | LED4 = LED_BLUE, |
<> | 144:ef7eb2e8f9f7 | 204 | |
<> | 144:ef7eb2e8f9f7 | 205 | // USB Pins |
<> | 144:ef7eb2e8f9f7 | 206 | USBTX = PTB17, |
<> | 144:ef7eb2e8f9f7 | 207 | USBRX = PTB16, |
<> | 144:ef7eb2e8f9f7 | 208 | |
<> | 144:ef7eb2e8f9f7 | 209 | // Arduino Headers |
<> | 144:ef7eb2e8f9f7 | 210 | D0 = PTE1, |
<> | 144:ef7eb2e8f9f7 | 211 | D1 = PTE0, |
<> | 144:ef7eb2e8f9f7 | 212 | D2 = PTA5, |
<> | 144:ef7eb2e8f9f7 | 213 | D3 = PTD4, |
<> | 144:ef7eb2e8f9f7 | 214 | D4 = PTC8, |
<> | 144:ef7eb2e8f9f7 | 215 | D5 = PTA1, |
<> | 144:ef7eb2e8f9f7 | 216 | D6 = PTC3, |
<> | 144:ef7eb2e8f9f7 | 217 | D7 = PTC4, |
<> | 144:ef7eb2e8f9f7 | 218 | D8 = PTA12, |
<> | 144:ef7eb2e8f9f7 | 219 | D9 = PTA2, |
<> | 144:ef7eb2e8f9f7 | 220 | D10 = PTC2, |
<> | 144:ef7eb2e8f9f7 | 221 | D11 = PTD2, |
<> | 144:ef7eb2e8f9f7 | 222 | D12 = PTD3, |
<> | 144:ef7eb2e8f9f7 | 223 | D13 = PTD1, |
<> | 144:ef7eb2e8f9f7 | 224 | D14 = PTB3, |
<> | 144:ef7eb2e8f9f7 | 225 | D15 = PTB2, |
<> | 144:ef7eb2e8f9f7 | 226 | |
<> | 144:ef7eb2e8f9f7 | 227 | A0 = PTC0, |
<> | 144:ef7eb2e8f9f7 | 228 | A1 = PTC1, |
<> | 144:ef7eb2e8f9f7 | 229 | A2 = PTD6, |
<> | 144:ef7eb2e8f9f7 | 230 | A3 = PTD5, |
<> | 144:ef7eb2e8f9f7 | 231 | A4 = PTB1, |
<> | 144:ef7eb2e8f9f7 | 232 | A5 = PTB0, |
<> | 144:ef7eb2e8f9f7 | 233 | |
<> | 144:ef7eb2e8f9f7 | 234 | I2C_SCL = D15, |
<> | 144:ef7eb2e8f9f7 | 235 | I2C_SDA = D14, |
<> | 144:ef7eb2e8f9f7 | 236 | |
<> | 144:ef7eb2e8f9f7 | 237 | TSI_ELEC0 = PTB16, |
<> | 144:ef7eb2e8f9f7 | 238 | TSI_ELEC1 = PTB17, |
<> | 144:ef7eb2e8f9f7 | 239 | |
<> | 144:ef7eb2e8f9f7 | 240 | // Not connected |
<> | 144:ef7eb2e8f9f7 | 241 | NC = (int)0xFFFFFFFF |
<> | 144:ef7eb2e8f9f7 | 242 | } PinName; |
<> | 144:ef7eb2e8f9f7 | 243 | |
<> | 144:ef7eb2e8f9f7 | 244 | |
<> | 144:ef7eb2e8f9f7 | 245 | typedef enum { |
<> | 144:ef7eb2e8f9f7 | 246 | PullNone = 0, |
<> | 144:ef7eb2e8f9f7 | 247 | PullDown = 2, |
<> | 144:ef7eb2e8f9f7 | 248 | PullUp = 3, |
<> | 144:ef7eb2e8f9f7 | 249 | PullDefault = PullUp |
<> | 144:ef7eb2e8f9f7 | 250 | } PinMode; |
<> | 144:ef7eb2e8f9f7 | 251 | |
<> | 144:ef7eb2e8f9f7 | 252 | #ifdef __cplusplus |
<> | 144:ef7eb2e8f9f7 | 253 | } |
<> | 144:ef7eb2e8f9f7 | 254 | #endif |
<> | 144:ef7eb2e8f9f7 | 255 | |
<> | 144:ef7eb2e8f9f7 | 256 | #endif |