Morpheus / target-mcu-k64f

Fork of target-mcu-k64f by -deleted-

Committer:
screamer
Date:
Wed Mar 23 21:24:48 2016 +0000
Revision:
0:c5e2f793b59a
Initial revision

Who changed what in which revision?

UserRevisionLine numberNew contents of line
screamer 0:c5e2f793b59a 1 /* mbed Microcontroller Library
screamer 0:c5e2f793b59a 2 * Copyright (c) 2006-2013 ARM Limited
screamer 0:c5e2f793b59a 3 *
screamer 0:c5e2f793b59a 4 * Licensed under the Apache License, Version 2.0 (the "License");
screamer 0:c5e2f793b59a 5 * you may not use this file except in compliance with the License.
screamer 0:c5e2f793b59a 6 * You may obtain a copy of the License at
screamer 0:c5e2f793b59a 7 *
screamer 0:c5e2f793b59a 8 * http://www.apache.org/licenses/LICENSE-2.0
screamer 0:c5e2f793b59a 9 *
screamer 0:c5e2f793b59a 10 * Unless required by applicable law or agreed to in writing, software
screamer 0:c5e2f793b59a 11 * distributed under the License is distributed on an "AS IS" BASIS,
screamer 0:c5e2f793b59a 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
screamer 0:c5e2f793b59a 13 * See the License for the specific language governing permissions and
screamer 0:c5e2f793b59a 14 * limitations under the License.
screamer 0:c5e2f793b59a 15 */
screamer 0:c5e2f793b59a 16 #ifndef MBED_PINNAMES_H
screamer 0:c5e2f793b59a 17 #define MBED_PINNAMES_H
screamer 0:c5e2f793b59a 18
screamer 0:c5e2f793b59a 19 #include "cmsis.h"
screamer 0:c5e2f793b59a 20
screamer 0:c5e2f793b59a 21 #ifdef __cplusplus
screamer 0:c5e2f793b59a 22 extern "C" {
screamer 0:c5e2f793b59a 23 #endif
screamer 0:c5e2f793b59a 24
screamer 0:c5e2f793b59a 25 typedef enum {
screamer 0:c5e2f793b59a 26 PIN_INPUT,
screamer 0:c5e2f793b59a 27 PIN_OUTPUT
screamer 0:c5e2f793b59a 28 } PinDirection;
screamer 0:c5e2f793b59a 29
screamer 0:c5e2f793b59a 30 #define GPIO_PORT_SHIFT 12
screamer 0:c5e2f793b59a 31
screamer 0:c5e2f793b59a 32 typedef enum {
screamer 0:c5e2f793b59a 33 PTA0 = (0 << GPIO_PORT_SHIFT | 0 ),
screamer 0:c5e2f793b59a 34 PTA1 = (0 << GPIO_PORT_SHIFT | 1 ),
screamer 0:c5e2f793b59a 35 PTA2 = (0 << GPIO_PORT_SHIFT | 2 ),
screamer 0:c5e2f793b59a 36 PTA3 = (0 << GPIO_PORT_SHIFT | 3 ),
screamer 0:c5e2f793b59a 37 PTA4 = (0 << GPIO_PORT_SHIFT | 4 ),
screamer 0:c5e2f793b59a 38 PTA5 = (0 << GPIO_PORT_SHIFT | 5 ),
screamer 0:c5e2f793b59a 39 PTA6 = (0 << GPIO_PORT_SHIFT | 6 ),
screamer 0:c5e2f793b59a 40 PTA7 = (0 << GPIO_PORT_SHIFT | 7 ),
screamer 0:c5e2f793b59a 41 PTA8 = (0 << GPIO_PORT_SHIFT | 8 ),
screamer 0:c5e2f793b59a 42 PTA9 = (0 << GPIO_PORT_SHIFT | 9 ),
screamer 0:c5e2f793b59a 43 PTA10 = (0 << GPIO_PORT_SHIFT | 10),
screamer 0:c5e2f793b59a 44 PTA11 = (0 << GPIO_PORT_SHIFT | 11),
screamer 0:c5e2f793b59a 45 PTA12 = (0 << GPIO_PORT_SHIFT | 12),
screamer 0:c5e2f793b59a 46 PTA13 = (0 << GPIO_PORT_SHIFT | 13),
screamer 0:c5e2f793b59a 47 PTA14 = (0 << GPIO_PORT_SHIFT | 14),
screamer 0:c5e2f793b59a 48 PTA15 = (0 << GPIO_PORT_SHIFT | 15),
screamer 0:c5e2f793b59a 49 PTA16 = (0 << GPIO_PORT_SHIFT | 16),
screamer 0:c5e2f793b59a 50 PTA17 = (0 << GPIO_PORT_SHIFT | 17),
screamer 0:c5e2f793b59a 51 PTA18 = (0 << GPIO_PORT_SHIFT | 18),
screamer 0:c5e2f793b59a 52 PTA19 = (0 << GPIO_PORT_SHIFT | 19),
screamer 0:c5e2f793b59a 53 PTA20 = (0 << GPIO_PORT_SHIFT | 20),
screamer 0:c5e2f793b59a 54 PTA21 = (0 << GPIO_PORT_SHIFT | 21),
screamer 0:c5e2f793b59a 55 PTA22 = (0 << GPIO_PORT_SHIFT | 22),
screamer 0:c5e2f793b59a 56 PTA23 = (0 << GPIO_PORT_SHIFT | 23),
screamer 0:c5e2f793b59a 57 PTA24 = (0 << GPIO_PORT_SHIFT | 24),
screamer 0:c5e2f793b59a 58 PTA25 = (0 << GPIO_PORT_SHIFT | 25),
screamer 0:c5e2f793b59a 59 PTA26 = (0 << GPIO_PORT_SHIFT | 26),
screamer 0:c5e2f793b59a 60 PTA27 = (0 << GPIO_PORT_SHIFT | 27),
screamer 0:c5e2f793b59a 61 PTA28 = (0 << GPIO_PORT_SHIFT | 28),
screamer 0:c5e2f793b59a 62 PTA29 = (0 << GPIO_PORT_SHIFT | 29),
screamer 0:c5e2f793b59a 63 PTA30 = (0 << GPIO_PORT_SHIFT | 30),
screamer 0:c5e2f793b59a 64 PTA31 = (0 << GPIO_PORT_SHIFT | 31),
screamer 0:c5e2f793b59a 65 PTB0 = (1 << GPIO_PORT_SHIFT | 0 ),
screamer 0:c5e2f793b59a 66 PTB1 = (1 << GPIO_PORT_SHIFT | 1 ),
screamer 0:c5e2f793b59a 67 PTB2 = (1 << GPIO_PORT_SHIFT | 2 ),
screamer 0:c5e2f793b59a 68 PTB3 = (1 << GPIO_PORT_SHIFT | 3 ),
screamer 0:c5e2f793b59a 69 PTB4 = (1 << GPIO_PORT_SHIFT | 4 ),
screamer 0:c5e2f793b59a 70 PTB5 = (1 << GPIO_PORT_SHIFT | 5 ),
screamer 0:c5e2f793b59a 71 PTB6 = (1 << GPIO_PORT_SHIFT | 6 ),
screamer 0:c5e2f793b59a 72 PTB7 = (1 << GPIO_PORT_SHIFT | 7 ),
screamer 0:c5e2f793b59a 73 PTB8 = (1 << GPIO_PORT_SHIFT | 8 ),
screamer 0:c5e2f793b59a 74 PTB9 = (1 << GPIO_PORT_SHIFT | 9 ),
screamer 0:c5e2f793b59a 75 PTB10 = (1 << GPIO_PORT_SHIFT | 10),
screamer 0:c5e2f793b59a 76 PTB11 = (1 << GPIO_PORT_SHIFT | 11),
screamer 0:c5e2f793b59a 77 PTB12 = (1 << GPIO_PORT_SHIFT | 12),
screamer 0:c5e2f793b59a 78 PTB13 = (1 << GPIO_PORT_SHIFT | 13),
screamer 0:c5e2f793b59a 79 PTB14 = (1 << GPIO_PORT_SHIFT | 14),
screamer 0:c5e2f793b59a 80 PTB15 = (1 << GPIO_PORT_SHIFT | 15),
screamer 0:c5e2f793b59a 81 PTB16 = (1 << GPIO_PORT_SHIFT | 16),
screamer 0:c5e2f793b59a 82 PTB17 = (1 << GPIO_PORT_SHIFT | 17),
screamer 0:c5e2f793b59a 83 PTB18 = (1 << GPIO_PORT_SHIFT | 18),
screamer 0:c5e2f793b59a 84 PTB19 = (1 << GPIO_PORT_SHIFT | 19),
screamer 0:c5e2f793b59a 85 PTB20 = (1 << GPIO_PORT_SHIFT | 20),
screamer 0:c5e2f793b59a 86 PTB21 = (1 << GPIO_PORT_SHIFT | 21),
screamer 0:c5e2f793b59a 87 PTB22 = (1 << GPIO_PORT_SHIFT | 22),
screamer 0:c5e2f793b59a 88 PTB23 = (1 << GPIO_PORT_SHIFT | 23),
screamer 0:c5e2f793b59a 89 PTB24 = (1 << GPIO_PORT_SHIFT | 24),
screamer 0:c5e2f793b59a 90 PTB25 = (1 << GPIO_PORT_SHIFT | 25),
screamer 0:c5e2f793b59a 91 PTB26 = (1 << GPIO_PORT_SHIFT | 26),
screamer 0:c5e2f793b59a 92 PTB27 = (1 << GPIO_PORT_SHIFT | 27),
screamer 0:c5e2f793b59a 93 PTB28 = (1 << GPIO_PORT_SHIFT | 28),
screamer 0:c5e2f793b59a 94 PTB29 = (1 << GPIO_PORT_SHIFT | 29),
screamer 0:c5e2f793b59a 95 PTB30 = (1 << GPIO_PORT_SHIFT | 30),
screamer 0:c5e2f793b59a 96 PTB31 = (1 << GPIO_PORT_SHIFT | 31),
screamer 0:c5e2f793b59a 97 PTC0 = (2 << GPIO_PORT_SHIFT | 0 ),
screamer 0:c5e2f793b59a 98 PTC1 = (2 << GPIO_PORT_SHIFT | 1 ),
screamer 0:c5e2f793b59a 99 PTC2 = (2 << GPIO_PORT_SHIFT | 2 ),
screamer 0:c5e2f793b59a 100 PTC3 = (2 << GPIO_PORT_SHIFT | 3 ),
screamer 0:c5e2f793b59a 101 PTC4 = (2 << GPIO_PORT_SHIFT | 4 ),
screamer 0:c5e2f793b59a 102 PTC5 = (2 << GPIO_PORT_SHIFT | 5 ),
screamer 0:c5e2f793b59a 103 PTC6 = (2 << GPIO_PORT_SHIFT | 6 ),
screamer 0:c5e2f793b59a 104 PTC7 = (2 << GPIO_PORT_SHIFT | 7 ),
screamer 0:c5e2f793b59a 105 PTC8 = (2 << GPIO_PORT_SHIFT | 8 ),
screamer 0:c5e2f793b59a 106 PTC9 = (2 << GPIO_PORT_SHIFT | 9 ),
screamer 0:c5e2f793b59a 107 PTC10 = (2 << GPIO_PORT_SHIFT | 10),
screamer 0:c5e2f793b59a 108 PTC11 = (2 << GPIO_PORT_SHIFT | 11),
screamer 0:c5e2f793b59a 109 PTC12 = (2 << GPIO_PORT_SHIFT | 12),
screamer 0:c5e2f793b59a 110 PTC13 = (2 << GPIO_PORT_SHIFT | 13),
screamer 0:c5e2f793b59a 111 PTC14 = (2 << GPIO_PORT_SHIFT | 14),
screamer 0:c5e2f793b59a 112 PTC15 = (2 << GPIO_PORT_SHIFT | 15),
screamer 0:c5e2f793b59a 113 PTC16 = (2 << GPIO_PORT_SHIFT | 16),
screamer 0:c5e2f793b59a 114 PTC17 = (2 << GPIO_PORT_SHIFT | 17),
screamer 0:c5e2f793b59a 115 PTC18 = (2 << GPIO_PORT_SHIFT | 18),
screamer 0:c5e2f793b59a 116 PTC19 = (2 << GPIO_PORT_SHIFT | 19),
screamer 0:c5e2f793b59a 117 PTC20 = (2 << GPIO_PORT_SHIFT | 20),
screamer 0:c5e2f793b59a 118 PTC21 = (2 << GPIO_PORT_SHIFT | 21),
screamer 0:c5e2f793b59a 119 PTC22 = (2 << GPIO_PORT_SHIFT | 22),
screamer 0:c5e2f793b59a 120 PTC23 = (2 << GPIO_PORT_SHIFT | 23),
screamer 0:c5e2f793b59a 121 PTC24 = (2 << GPIO_PORT_SHIFT | 24),
screamer 0:c5e2f793b59a 122 PTC25 = (2 << GPIO_PORT_SHIFT | 25),
screamer 0:c5e2f793b59a 123 PTC26 = (2 << GPIO_PORT_SHIFT | 26),
screamer 0:c5e2f793b59a 124 PTC27 = (2 << GPIO_PORT_SHIFT | 27),
screamer 0:c5e2f793b59a 125 PTC28 = (2 << GPIO_PORT_SHIFT | 28),
screamer 0:c5e2f793b59a 126 PTC29 = (2 << GPIO_PORT_SHIFT | 29),
screamer 0:c5e2f793b59a 127 PTC30 = (2 << GPIO_PORT_SHIFT | 30),
screamer 0:c5e2f793b59a 128 PTC31 = (2 << GPIO_PORT_SHIFT | 31),
screamer 0:c5e2f793b59a 129 PTD0 = (3 << GPIO_PORT_SHIFT | 0 ),
screamer 0:c5e2f793b59a 130 PTD1 = (3 << GPIO_PORT_SHIFT | 1 ),
screamer 0:c5e2f793b59a 131 PTD2 = (3 << GPIO_PORT_SHIFT | 2 ),
screamer 0:c5e2f793b59a 132 PTD3 = (3 << GPIO_PORT_SHIFT | 3 ),
screamer 0:c5e2f793b59a 133 PTD4 = (3 << GPIO_PORT_SHIFT | 4 ),
screamer 0:c5e2f793b59a 134 PTD5 = (3 << GPIO_PORT_SHIFT | 5 ),
screamer 0:c5e2f793b59a 135 PTD6 = (3 << GPIO_PORT_SHIFT | 6 ),
screamer 0:c5e2f793b59a 136 PTD7 = (3 << GPIO_PORT_SHIFT | 7 ),
screamer 0:c5e2f793b59a 137 PTD8 = (3 << GPIO_PORT_SHIFT | 8 ),
screamer 0:c5e2f793b59a 138 PTD9 = (3 << GPIO_PORT_SHIFT | 9 ),
screamer 0:c5e2f793b59a 139 PTD10 = (3 << GPIO_PORT_SHIFT | 10),
screamer 0:c5e2f793b59a 140 PTD11 = (3 << GPIO_PORT_SHIFT | 11),
screamer 0:c5e2f793b59a 141 PTD12 = (3 << GPIO_PORT_SHIFT | 12),
screamer 0:c5e2f793b59a 142 PTD13 = (3 << GPIO_PORT_SHIFT | 13),
screamer 0:c5e2f793b59a 143 PTD14 = (3 << GPIO_PORT_SHIFT | 14),
screamer 0:c5e2f793b59a 144 PTD15 = (3 << GPIO_PORT_SHIFT | 15),
screamer 0:c5e2f793b59a 145 PTD16 = (3 << GPIO_PORT_SHIFT | 16),
screamer 0:c5e2f793b59a 146 PTD17 = (3 << GPIO_PORT_SHIFT | 17),
screamer 0:c5e2f793b59a 147 PTD18 = (3 << GPIO_PORT_SHIFT | 18),
screamer 0:c5e2f793b59a 148 PTD19 = (3 << GPIO_PORT_SHIFT | 19),
screamer 0:c5e2f793b59a 149 PTD20 = (3 << GPIO_PORT_SHIFT | 20),
screamer 0:c5e2f793b59a 150 PTD21 = (3 << GPIO_PORT_SHIFT | 21),
screamer 0:c5e2f793b59a 151 PTD22 = (3 << GPIO_PORT_SHIFT | 22),
screamer 0:c5e2f793b59a 152 PTD23 = (3 << GPIO_PORT_SHIFT | 23),
screamer 0:c5e2f793b59a 153 PTD24 = (3 << GPIO_PORT_SHIFT | 24),
screamer 0:c5e2f793b59a 154 PTD25 = (3 << GPIO_PORT_SHIFT | 25),
screamer 0:c5e2f793b59a 155 PTD26 = (3 << GPIO_PORT_SHIFT | 26),
screamer 0:c5e2f793b59a 156 PTD27 = (3 << GPIO_PORT_SHIFT | 27),
screamer 0:c5e2f793b59a 157 PTD28 = (3 << GPIO_PORT_SHIFT | 28),
screamer 0:c5e2f793b59a 158 PTD29 = (3 << GPIO_PORT_SHIFT | 29),
screamer 0:c5e2f793b59a 159 PTD30 = (3 << GPIO_PORT_SHIFT | 30),
screamer 0:c5e2f793b59a 160 PTD31 = (3 << GPIO_PORT_SHIFT | 31),
screamer 0:c5e2f793b59a 161 PTE0 = (4 << GPIO_PORT_SHIFT | 0 ),
screamer 0:c5e2f793b59a 162 PTE1 = (4 << GPIO_PORT_SHIFT | 1 ),
screamer 0:c5e2f793b59a 163 PTE2 = (4 << GPIO_PORT_SHIFT | 2 ),
screamer 0:c5e2f793b59a 164 PTE3 = (4 << GPIO_PORT_SHIFT | 3 ),
screamer 0:c5e2f793b59a 165 PTE4 = (4 << GPIO_PORT_SHIFT | 4 ),
screamer 0:c5e2f793b59a 166 PTE5 = (4 << GPIO_PORT_SHIFT | 5 ),
screamer 0:c5e2f793b59a 167 PTE6 = (4 << GPIO_PORT_SHIFT | 6 ),
screamer 0:c5e2f793b59a 168 PTE7 = (4 << GPIO_PORT_SHIFT | 7 ),
screamer 0:c5e2f793b59a 169 PTE8 = (4 << GPIO_PORT_SHIFT | 8 ),
screamer 0:c5e2f793b59a 170 PTE9 = (4 << GPIO_PORT_SHIFT | 9 ),
screamer 0:c5e2f793b59a 171 PTE10 = (4 << GPIO_PORT_SHIFT | 10),
screamer 0:c5e2f793b59a 172 PTE11 = (4 << GPIO_PORT_SHIFT | 11),
screamer 0:c5e2f793b59a 173 PTE12 = (4 << GPIO_PORT_SHIFT | 12),
screamer 0:c5e2f793b59a 174 PTE13 = (4 << GPIO_PORT_SHIFT | 13),
screamer 0:c5e2f793b59a 175 PTE14 = (4 << GPIO_PORT_SHIFT | 14),
screamer 0:c5e2f793b59a 176 PTE15 = (4 << GPIO_PORT_SHIFT | 15),
screamer 0:c5e2f793b59a 177 PTE16 = (4 << GPIO_PORT_SHIFT | 16),
screamer 0:c5e2f793b59a 178 PTE17 = (4 << GPIO_PORT_SHIFT | 17),
screamer 0:c5e2f793b59a 179 PTE18 = (4 << GPIO_PORT_SHIFT | 18),
screamer 0:c5e2f793b59a 180 PTE19 = (4 << GPIO_PORT_SHIFT | 19),
screamer 0:c5e2f793b59a 181 PTE20 = (4 << GPIO_PORT_SHIFT | 20),
screamer 0:c5e2f793b59a 182 PTE21 = (4 << GPIO_PORT_SHIFT | 21),
screamer 0:c5e2f793b59a 183 PTE22 = (4 << GPIO_PORT_SHIFT | 22),
screamer 0:c5e2f793b59a 184 PTE23 = (4 << GPIO_PORT_SHIFT | 23),
screamer 0:c5e2f793b59a 185 PTE24 = (4 << GPIO_PORT_SHIFT | 24),
screamer 0:c5e2f793b59a 186 PTE25 = (4 << GPIO_PORT_SHIFT | 25),
screamer 0:c5e2f793b59a 187 PTE26 = (4 << GPIO_PORT_SHIFT | 26),
screamer 0:c5e2f793b59a 188 PTE27 = (4 << GPIO_PORT_SHIFT | 27),
screamer 0:c5e2f793b59a 189 PTE28 = (4 << GPIO_PORT_SHIFT | 28),
screamer 0:c5e2f793b59a 190 PTE29 = (4 << GPIO_PORT_SHIFT | 29),
screamer 0:c5e2f793b59a 191 PTE30 = (4 << GPIO_PORT_SHIFT | 30),
screamer 0:c5e2f793b59a 192 PTE31 = (4 << GPIO_PORT_SHIFT | 31),
screamer 0:c5e2f793b59a 193
screamer 0:c5e2f793b59a 194 // led color naming
screamer 0:c5e2f793b59a 195 LED_GREEN = PTC0,
screamer 0:c5e2f793b59a 196
screamer 0:c5e2f793b59a 197 // mbed original LED naming
screamer 0:c5e2f793b59a 198 LED1 = PTD15,
screamer 0:c5e2f793b59a 199 LED2 = PTD14,
screamer 0:c5e2f793b59a 200 LED3 = PTD13,
screamer 0:c5e2f793b59a 201 LED4 = PTD11,
screamer 0:c5e2f793b59a 202 LED5 = PTD12,
screamer 0:c5e2f793b59a 203 STATUS = LED_GREEN,
screamer 0:c5e2f793b59a 204
screamer 0:c5e2f793b59a 205 // USB Pins
screamer 0:c5e2f793b59a 206 USBTX = PTB17,
screamer 0:c5e2f793b59a 207 USBRX = PTB16,
screamer 0:c5e2f793b59a 208
screamer 0:c5e2f793b59a 209 // SPI Pins
screamer 0:c5e2f793b59a 210 SPI0_SOUT = PTC6,
screamer 0:c5e2f793b59a 211 SPI0_SIN = PTC7,
screamer 0:c5e2f793b59a 212 SPI0_SCK = PTC5,
screamer 0:c5e2f793b59a 213
screamer 0:c5e2f793b59a 214 SPI1_SOUT = PTE3,
screamer 0:c5e2f793b59a 215 SPI1_SIN = PTE1,
screamer 0:c5e2f793b59a 216 SPI1_SCK = PTE2,
screamer 0:c5e2f793b59a 217
screamer 0:c5e2f793b59a 218 // SPI Chip Select Pins
screamer 0:c5e2f793b59a 219 SPI0_NCS0 = PTC4,
screamer 0:c5e2f793b59a 220 SPI0_NCS1 = PTC3,
screamer 0:c5e2f793b59a 221 SPI0_NCS2 = PTC2,
screamer 0:c5e2f793b59a 222 SPI0_NCS3 = PTC1,
screamer 0:c5e2f793b59a 223
screamer 0:c5e2f793b59a 224 SPI1_NCS0 = PTE4,
screamer 0:c5e2f793b59a 225 SPI1_NCS1 = PTE0,
screamer 0:c5e2f793b59a 226 SPI1_NCS2 = PTE5,
screamer 0:c5e2f793b59a 227 SPI1_NCS3 = PTE6,
screamer 0:c5e2f793b59a 228
screamer 0:c5e2f793b59a 229 // GPIO's
screamer 0:c5e2f793b59a 230 AP1_GPIO1 = PTB7,
screamer 0:c5e2f793b59a 231 AP1_GPIO2 = PTB6,
screamer 0:c5e2f793b59a 232 AP1_GPIO3 = PTB5,
screamer 0:c5e2f793b59a 233 AP1_GPIO4 = PTB4,
screamer 0:c5e2f793b59a 234
screamer 0:c5e2f793b59a 235 AP2_GPIO1 = PTA27,
screamer 0:c5e2f793b59a 236 AP2_GPIO2 = PTA26,
screamer 0:c5e2f793b59a 237 AP2_GPIO3 = PTA25,
screamer 0:c5e2f793b59a 238 AP2_GPIO4 = PTA24,
screamer 0:c5e2f793b59a 239
screamer 0:c5e2f793b59a 240 // Cellular Radio Serial Pins
screamer 0:c5e2f793b59a 241 RADIO_SERIAL_TX = PTE8,
screamer 0:c5e2f793b59a 242 RADIO_SERIAL_RX = PTE9,
screamer 0:c5e2f793b59a 243 RADIO_SERIAL_RTS = PTE11,
screamer 0:c5e2f793b59a 244 RADIO_SERIAL_CTS = PTE10,
screamer 0:c5e2f793b59a 245 RADIO_SERIAL_DTR = PTE26,
screamer 0:c5e2f793b59a 246 RADIO_SERIAL_DSR = PTE25,
screamer 0:c5e2f793b59a 247 RADIO_SERIAL_RI = PTE24,
screamer 0:c5e2f793b59a 248 RADIO_SERIAL_CD = PTE12,
screamer 0:c5e2f793b59a 249
screamer 0:c5e2f793b59a 250 DAC0_OUT = 0xFEFE, /* DAC does not have Pin Name in RM */
screamer 0:c5e2f793b59a 251
screamer 0:c5e2f793b59a 252 // Not connected
screamer 0:c5e2f793b59a 253 NC = (int)0xFFFFFFFF
screamer 0:c5e2f793b59a 254 } PinName;
screamer 0:c5e2f793b59a 255
screamer 0:c5e2f793b59a 256
screamer 0:c5e2f793b59a 257 typedef enum {
screamer 0:c5e2f793b59a 258 PullNone = 0,
screamer 0:c5e2f793b59a 259 PullDown = 1,
screamer 0:c5e2f793b59a 260 PullUp = 2,
screamer 0:c5e2f793b59a 261 PullDefault = PullUp
screamer 0:c5e2f793b59a 262 } PinMode;
screamer 0:c5e2f793b59a 263
screamer 0:c5e2f793b59a 264 #ifdef __cplusplus
screamer 0:c5e2f793b59a 265 }
screamer 0:c5e2f793b59a 266 #endif
screamer 0:c5e2f793b59a 267
screamer 0:c5e2f793b59a 268 #endif