mbed library sources
Dependents: frdm_kl05z_gpio_test
Fork of mbed-src by
targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PinNames.h@315:1d806f4588f1, 2014-09-11 (annotated)
- Committer:
- mbed_official
- Date:
- Thu Sep 11 14:15:10 2014 +0100
- Revision:
- 315:1d806f4588f1
Synchronized with git revision 8a63c226ddf4d9f200f99343cbe8668a89b261bf
Full URL: https://github.com/mbedmicro/mbed/commit/8a63c226ddf4d9f200f99343cbe8668a89b261bf/
[LPC4337] add support
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbed_official | 315:1d806f4588f1 | 1 | /* mbed Microcontroller Library |
mbed_official | 315:1d806f4588f1 | 2 | * Copyright (c) 2006-2013 ARM Limited |
mbed_official | 315:1d806f4588f1 | 3 | * |
mbed_official | 315:1d806f4588f1 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
mbed_official | 315:1d806f4588f1 | 5 | * you may not use this file except in compliance with the License. |
mbed_official | 315:1d806f4588f1 | 6 | * You may obtain a copy of the License at |
mbed_official | 315:1d806f4588f1 | 7 | * |
mbed_official | 315:1d806f4588f1 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
mbed_official | 315:1d806f4588f1 | 9 | * |
mbed_official | 315:1d806f4588f1 | 10 | * Unless required by applicable law or agreed to in writing, software |
mbed_official | 315:1d806f4588f1 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
mbed_official | 315:1d806f4588f1 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
mbed_official | 315:1d806f4588f1 | 13 | * See the License for the specific language governing permissions and |
mbed_official | 315:1d806f4588f1 | 14 | * limitations under the License. |
mbed_official | 315:1d806f4588f1 | 15 | */ |
mbed_official | 315:1d806f4588f1 | 16 | #ifndef MBED_PINNAMES_H |
mbed_official | 315:1d806f4588f1 | 17 | #define MBED_PINNAMES_H |
mbed_official | 315:1d806f4588f1 | 18 | |
mbed_official | 315:1d806f4588f1 | 19 | #include "cmsis.h" |
mbed_official | 315:1d806f4588f1 | 20 | |
mbed_official | 315:1d806f4588f1 | 21 | #ifdef __cplusplus |
mbed_official | 315:1d806f4588f1 | 22 | extern "C" { |
mbed_official | 315:1d806f4588f1 | 23 | #endif |
mbed_official | 315:1d806f4588f1 | 24 | |
mbed_official | 315:1d806f4588f1 | 25 | typedef enum { |
mbed_official | 315:1d806f4588f1 | 26 | PIN_INPUT, |
mbed_official | 315:1d806f4588f1 | 27 | PIN_OUTPUT |
mbed_official | 315:1d806f4588f1 | 28 | } PinDirection; |
mbed_official | 315:1d806f4588f1 | 29 | |
mbed_official | 315:1d806f4588f1 | 30 | #define PORT_SHIFT 5 |
mbed_official | 315:1d806f4588f1 | 31 | #define NO_GPIO 15 |
mbed_official | 315:1d806f4588f1 | 32 | |
mbed_official | 315:1d806f4588f1 | 33 | // On the LPC43xx the MCU pin name and the GPIO pin name are not the same. |
mbed_official | 315:1d806f4588f1 | 34 | // Encode SCU and GPIO offsets as a pin identifier |
mbed_official | 315:1d806f4588f1 | 35 | #define MBED_PIN(group, num, port, pin) ((SCU_OFF(group,num) << 16) + GPIO_OFF(port,pin)) |
mbed_official | 315:1d806f4588f1 | 36 | |
mbed_official | 315:1d806f4588f1 | 37 | // Decode pin identifier into register, port and pin values |
mbed_official | 315:1d806f4588f1 | 38 | #define MBED_SCU_REG(MBED_PIN) (LPC_SCU_BASE + (MBED_PIN >> 16)) |
mbed_official | 315:1d806f4588f1 | 39 | #define MBED_GPIO_REG(MBED_PIN) (LPC_GPIO_PORT_BASE + 0x2000 + ((MBED_PIN >> (PORT_SHIFT - 2)) & 0x0000003C)) |
mbed_official | 315:1d806f4588f1 | 40 | #define MBED_GPIO_PORT(MBED_PIN) ((MBED_PIN >> PORT_SHIFT) & 0x0000000F) |
mbed_official | 315:1d806f4588f1 | 41 | #define MBED_GPIO_PIN(MBED_PIN) (MBED_PIN & 0x0000001F) |
mbed_official | 315:1d806f4588f1 | 42 | |
mbed_official | 315:1d806f4588f1 | 43 | typedef enum { |
mbed_official | 315:1d806f4588f1 | 44 | // LPC43xx Pin Names |
mbed_official | 315:1d806f4588f1 | 45 | // All pins defined. Package determines which are available. |
mbed_official | 315:1d806f4588f1 | 46 | // LBGA256 TFBGA180 TFBGA100 LQFP208 LQFP144 |
mbed_official | 315:1d806f4588f1 | 47 | // GPIO0 [15:0] [15:0] [15:6] [15:0] [15:0] |
mbed_official | 315:1d806f4588f1 | 48 | // [4:0] |
mbed_official | 315:1d806f4588f1 | 49 | // GPIO1 [15:0] [15:0] [15:0] [15:0] [15:0] |
mbed_official | 315:1d806f4588f1 | 50 | // GPIO2 [15:0] [15:0] [15:0] [15:0] |
mbed_official | 315:1d806f4588f1 | 51 | // GPIO3 [15:0] [15:0] [7] [15:0] [15:0] |
mbed_official | 315:1d806f4588f1 | 52 | // [5:3] |
mbed_official | 315:1d806f4588f1 | 53 | // [1:0] |
mbed_official | 315:1d806f4588f1 | 54 | // GPIO4 [15:0] [15:0] [15:0] [11] |
mbed_official | 315:1d806f4588f1 | 55 | // GPIO5 [26:0] [26:0] [11:0] [25:0] [18] |
mbed_official | 315:1d806f4588f1 | 56 | // [16:0] |
mbed_official | 315:1d806f4588f1 | 57 | // GPIO6 [30:0] [30:28] [30:20] |
mbed_official | 315:1d806f4588f1 | 58 | // [26:25] [5:0] |
mbed_official | 315:1d806f4588f1 | 59 | // GPIO7 [25:0] [4:0] [25:23] |
mbed_official | 315:1d806f4588f1 | 60 | // [21:17] |
mbed_official | 315:1d806f4588f1 | 61 | // --- --- --- --- --- |
mbed_official | 315:1d806f4588f1 | 62 | // Total 164 117 49 131 83 |
mbed_official | 315:1d806f4588f1 | 63 | |
mbed_official | 315:1d806f4588f1 | 64 | // Groups 0x00 - 0x0F : Digital pins |
mbed_official | 315:1d806f4588f1 | 65 | // * Digital pins support up to 8 functions |
mbed_official | 315:1d806f4588f1 | 66 | // Use func=0 for GPIO0-GPIO4, func=4 for GPIO5-GPIO7 |
mbed_official | 315:1d806f4588f1 | 67 | // * High-drive pins default to 4 mA but can support 8, 14, 20 mA |
mbed_official | 315:1d806f4588f1 | 68 | P0_0 = MBED_PIN(0x00, 0, 0, 0), // GPIO0[0] |
mbed_official | 315:1d806f4588f1 | 69 | P0_1 = MBED_PIN(0x00, 1, 0, 1), // GPIO0[1] |
mbed_official | 315:1d806f4588f1 | 70 | |
mbed_official | 315:1d806f4588f1 | 71 | P1_0 = MBED_PIN(0x01, 0, 0, 4), // GPIO0[4] |
mbed_official | 315:1d806f4588f1 | 72 | P1_1 = MBED_PIN(0x01, 1, 0, 8), // GPIO0[8] |
mbed_official | 315:1d806f4588f1 | 73 | P1_2 = MBED_PIN(0x01, 2, 0, 9), // GPIO0[9] |
mbed_official | 315:1d806f4588f1 | 74 | P1_3 = MBED_PIN(0x01, 3, 0, 10), // GPIO0[10] |
mbed_official | 315:1d806f4588f1 | 75 | P1_4 = MBED_PIN(0x01, 4, 0, 11), // GPIO0[11] |
mbed_official | 315:1d806f4588f1 | 76 | P1_5 = MBED_PIN(0x01, 5, 1, 8), // GPIO1[8] |
mbed_official | 315:1d806f4588f1 | 77 | P1_6 = MBED_PIN(0x01, 6, 1, 9), // GPIO1[9] |
mbed_official | 315:1d806f4588f1 | 78 | P1_7 = MBED_PIN(0x01, 7, 1, 0), // GPIO1[0] |
mbed_official | 315:1d806f4588f1 | 79 | P1_8 = MBED_PIN(0x01, 8, 1, 1), // GPIO1[1] |
mbed_official | 315:1d806f4588f1 | 80 | P1_9 = MBED_PIN(0x01, 9, 1, 2), // GPIO1[2] |
mbed_official | 315:1d806f4588f1 | 81 | P1_10 = MBED_PIN(0x01, 10, 1, 3), // GPIO1[3] |
mbed_official | 315:1d806f4588f1 | 82 | P1_11 = MBED_PIN(0x01, 11, 1, 4), // GPIO1[4] |
mbed_official | 315:1d806f4588f1 | 83 | P1_12 = MBED_PIN(0x01, 12, 1, 5), // GPIO1[5] |
mbed_official | 315:1d806f4588f1 | 84 | P1_13 = MBED_PIN(0x01, 13, 1, 6), // GPIO1[6] |
mbed_official | 315:1d806f4588f1 | 85 | P1_14 = MBED_PIN(0x01, 14, 1, 7), // GPIO1[7] |
mbed_official | 315:1d806f4588f1 | 86 | P1_15 = MBED_PIN(0x01, 15, 0, 2), // GPIO0[2] |
mbed_official | 315:1d806f4588f1 | 87 | P1_16 = MBED_PIN(0x01, 16, 0, 3), // GPIO0[3] |
mbed_official | 315:1d806f4588f1 | 88 | P1_17 = MBED_PIN(0x01, 17, 0, 12), // GPIO0[12] high-drive |
mbed_official | 315:1d806f4588f1 | 89 | P1_18 = MBED_PIN(0x01, 18, 0, 13), // GPIO0[13] |
mbed_official | 315:1d806f4588f1 | 90 | P1_19 = MBED_PIN(0x01, 19, NO_GPIO, 0), |
mbed_official | 315:1d806f4588f1 | 91 | P1_20 = MBED_PIN(0x01, 20, 0, 15), // GPIO0[15] |
mbed_official | 315:1d806f4588f1 | 92 | |
mbed_official | 315:1d806f4588f1 | 93 | P2_0 = MBED_PIN(0x02, 0, 5, 0), // GPIO5[0] |
mbed_official | 315:1d806f4588f1 | 94 | P2_1 = MBED_PIN(0x02, 1, 5, 1), // GPIO5[1] |
mbed_official | 315:1d806f4588f1 | 95 | P2_2 = MBED_PIN(0x02, 2, 5, 2), // GPIO5[2] |
mbed_official | 315:1d806f4588f1 | 96 | P2_3 = MBED_PIN(0x02, 3, 5, 3), // GPIO5[3] high-drive |
mbed_official | 315:1d806f4588f1 | 97 | P2_4 = MBED_PIN(0x02, 4, 5, 4), // GPIO5[4] high-drive |
mbed_official | 315:1d806f4588f1 | 98 | P2_5 = MBED_PIN(0x02, 5, 5, 5), // GPIO5[5] high-drive |
mbed_official | 315:1d806f4588f1 | 99 | P2_6 = MBED_PIN(0x02, 6, 5, 6), // GPIO5[6] |
mbed_official | 315:1d806f4588f1 | 100 | P2_7 = MBED_PIN(0x02, 7, 0, 7), // GPIO0[7] |
mbed_official | 315:1d806f4588f1 | 101 | P2_8 = MBED_PIN(0x02, 8, 5, 7), // GPIO5[7] |
mbed_official | 315:1d806f4588f1 | 102 | P2_9 = MBED_PIN(0x02, 9, 1, 10), // GPIO1[10] |
mbed_official | 315:1d806f4588f1 | 103 | P2_10 = MBED_PIN(0x02, 10, 0, 14), // GPIO0[14] |
mbed_official | 315:1d806f4588f1 | 104 | P2_11 = MBED_PIN(0x02, 11, 1, 11), // GPIO1[11] |
mbed_official | 315:1d806f4588f1 | 105 | P2_12 = MBED_PIN(0x02, 12, 1, 12), // GPIO1[12] |
mbed_official | 315:1d806f4588f1 | 106 | P2_13 = MBED_PIN(0x02, 13, 1, 13), // GPIO1[13] |
mbed_official | 315:1d806f4588f1 | 107 | |
mbed_official | 315:1d806f4588f1 | 108 | P3_0 = MBED_PIN(0x03, 0, NO_GPIO, 0), |
mbed_official | 315:1d806f4588f1 | 109 | P3_1 = MBED_PIN(0x03, 1, 5, 8), // GPIO5[8] |
mbed_official | 315:1d806f4588f1 | 110 | P3_2 = MBED_PIN(0x03, 2, 5, 9), // GPIO5[9] |
mbed_official | 315:1d806f4588f1 | 111 | P3_3 = MBED_PIN(0x03, 3, NO_GPIO, 0), |
mbed_official | 315:1d806f4588f1 | 112 | P3_4 = MBED_PIN(0x03, 4, 1, 14), // GPIO1[14] |
mbed_official | 315:1d806f4588f1 | 113 | P3_5 = MBED_PIN(0x03, 5, 1, 15), // GPIO1[15] |
mbed_official | 315:1d806f4588f1 | 114 | P3_6 = MBED_PIN(0x03, 6, 0, 6), // GPIO0[6] |
mbed_official | 315:1d806f4588f1 | 115 | P3_7 = MBED_PIN(0x03, 7, 5, 10), // GPIO5[10] |
mbed_official | 315:1d806f4588f1 | 116 | P3_8 = MBED_PIN(0x03, 8, 5, 11), // GPIO5[11] |
mbed_official | 315:1d806f4588f1 | 117 | |
mbed_official | 315:1d806f4588f1 | 118 | P4_0 = MBED_PIN(0x04, 0, 2, 0), // GPIO2[0] |
mbed_official | 315:1d806f4588f1 | 119 | P4_1 = MBED_PIN(0x04, 1, 2, 1), // GPIO2[1] |
mbed_official | 315:1d806f4588f1 | 120 | P4_2 = MBED_PIN(0x04, 2, 2, 2), // GPIO2[2] |
mbed_official | 315:1d806f4588f1 | 121 | P4_3 = MBED_PIN(0x04, 3, 2, 3), // GPIO2[3] |
mbed_official | 315:1d806f4588f1 | 122 | P4_4 = MBED_PIN(0x04, 4, 2, 4), // GPIO2[4] |
mbed_official | 315:1d806f4588f1 | 123 | P4_5 = MBED_PIN(0x04, 5, 2, 5), // GPIO2[5] |
mbed_official | 315:1d806f4588f1 | 124 | P4_6 = MBED_PIN(0x04, 6, 2, 6), // GPIO2[6] |
mbed_official | 315:1d806f4588f1 | 125 | P4_7 = MBED_PIN(0x04, 7, NO_GPIO, 0), |
mbed_official | 315:1d806f4588f1 | 126 | P4_8 = MBED_PIN(0x04, 8, 5, 12), // GPIO5[12] |
mbed_official | 315:1d806f4588f1 | 127 | P4_9 = MBED_PIN(0x04, 9, 5, 13), // GPIO5[13] |
mbed_official | 315:1d806f4588f1 | 128 | P4_10 = MBED_PIN(0x04, 10, 5, 14), // GPIO5[14] |
mbed_official | 315:1d806f4588f1 | 129 | |
mbed_official | 315:1d806f4588f1 | 130 | P5_0 = MBED_PIN(0x05, 0, 2, 9), // GPIO2[9] |
mbed_official | 315:1d806f4588f1 | 131 | P5_1 = MBED_PIN(0x05, 1, 2, 10), // GPIO2[10] |
mbed_official | 315:1d806f4588f1 | 132 | P5_2 = MBED_PIN(0x05, 2, 2, 11), // GPIO2[11] |
mbed_official | 315:1d806f4588f1 | 133 | P5_3 = MBED_PIN(0x05, 3, 2, 12), // GPIO2[12] |
mbed_official | 315:1d806f4588f1 | 134 | P5_4 = MBED_PIN(0x05, 4, 2, 13), // GPIO2[13] |
mbed_official | 315:1d806f4588f1 | 135 | P5_5 = MBED_PIN(0x05, 5, 2, 14), // GPIO2[14] |
mbed_official | 315:1d806f4588f1 | 136 | P5_6 = MBED_PIN(0x05, 6, 2, 15), // GPIO2[15] |
mbed_official | 315:1d806f4588f1 | 137 | P5_7 = MBED_PIN(0x05, 7, 2, 7), // GPIO2[7] |
mbed_official | 315:1d806f4588f1 | 138 | |
mbed_official | 315:1d806f4588f1 | 139 | P6_0 = MBED_PIN(0x06, 0, NO_GPIO, 0), |
mbed_official | 315:1d806f4588f1 | 140 | P6_1 = MBED_PIN(0x06, 1, 3, 0), // GPIO3[0] |
mbed_official | 315:1d806f4588f1 | 141 | P6_2 = MBED_PIN(0x06, 2, 3, 1), // GPIO3[1] |
mbed_official | 315:1d806f4588f1 | 142 | P6_3 = MBED_PIN(0x06, 3, 3, 2), // GPIO3[2] |
mbed_official | 315:1d806f4588f1 | 143 | P6_4 = MBED_PIN(0x06, 4, 3, 3), // GPIO3[3] |
mbed_official | 315:1d806f4588f1 | 144 | P6_5 = MBED_PIN(0x06, 5, 3, 4), // GPIO3[4] |
mbed_official | 315:1d806f4588f1 | 145 | P6_6 = MBED_PIN(0x06, 6, 0, 5), // GPIO0[5] |
mbed_official | 315:1d806f4588f1 | 146 | P6_7 = MBED_PIN(0x06, 7, 5, 15), // GPIO5[15] |
mbed_official | 315:1d806f4588f1 | 147 | P6_8 = MBED_PIN(0x06, 8, 5, 16), // GPIO5[16] |
mbed_official | 315:1d806f4588f1 | 148 | P6_9 = MBED_PIN(0x06, 9, 3, 5), // GPIO3[5] |
mbed_official | 315:1d806f4588f1 | 149 | P6_10 = MBED_PIN(0x06, 10, 3, 6), // GPIO3[6] |
mbed_official | 315:1d806f4588f1 | 150 | P6_11 = MBED_PIN(0x06, 11, 3, 7), // GPIO3[7] |
mbed_official | 315:1d806f4588f1 | 151 | P6_12 = MBED_PIN(0x06, 12, 2, 8), // GPIO2[8] |
mbed_official | 315:1d806f4588f1 | 152 | |
mbed_official | 315:1d806f4588f1 | 153 | P7_0 = MBED_PIN(0x07, 0, 3, 8), // GPIO3[8] |
mbed_official | 315:1d806f4588f1 | 154 | P7_1 = MBED_PIN(0x07, 1, 3, 9), // GPIO3[9] |
mbed_official | 315:1d806f4588f1 | 155 | P7_2 = MBED_PIN(0x07, 2, 3, 10), // GPIO3[10] |
mbed_official | 315:1d806f4588f1 | 156 | P7_3 = MBED_PIN(0x07, 3, 3, 11), // GPIO3[11] |
mbed_official | 315:1d806f4588f1 | 157 | P7_4 = MBED_PIN(0x07, 4, 3, 12), // GPIO3[12] |
mbed_official | 315:1d806f4588f1 | 158 | P7_5 = MBED_PIN(0x07, 5, 3, 13), // GPIO3[13] |
mbed_official | 315:1d806f4588f1 | 159 | P7_6 = MBED_PIN(0x07, 6, 3, 14), // GPIO3[14] |
mbed_official | 315:1d806f4588f1 | 160 | P7_7 = MBED_PIN(0x07, 7, 3, 15), // GPIO3[15] |
mbed_official | 315:1d806f4588f1 | 161 | |
mbed_official | 315:1d806f4588f1 | 162 | P8_0 = MBED_PIN(0x08, 8, 4, 0), // GPIO4[0] high-drive |
mbed_official | 315:1d806f4588f1 | 163 | P8_1 = MBED_PIN(0x09, 0, 4, 1), // GPIO4[1] high-drive |
mbed_official | 315:1d806f4588f1 | 164 | P8_2 = MBED_PIN(0x09, 1, 4, 2), // GPIO4[2] high-drive |
mbed_official | 315:1d806f4588f1 | 165 | P8_3 = MBED_PIN(0x09, 2, 4, 3), // GPIO4[3] |
mbed_official | 315:1d806f4588f1 | 166 | P8_4 = MBED_PIN(0x08, 4, 4, 4), // GPIO4[4] |
mbed_official | 315:1d806f4588f1 | 167 | P8_5 = MBED_PIN(0x08, 5, 4, 5), // GPIO4[5] |
mbed_official | 315:1d806f4588f1 | 168 | P8_6 = MBED_PIN(0x08, 6, 4, 6), // GPIO4[6] |
mbed_official | 315:1d806f4588f1 | 169 | P8_7 = MBED_PIN(0x08, 7, 4, 7), // GPIO4[7] |
mbed_official | 315:1d806f4588f1 | 170 | P8_8 = MBED_PIN(0x08, 8, NO_GPIO, 0), |
mbed_official | 315:1d806f4588f1 | 171 | |
mbed_official | 315:1d806f4588f1 | 172 | P9_0 = MBED_PIN(0x09, 0, 4, 12), // GPIO4[12] |
mbed_official | 315:1d806f4588f1 | 173 | P9_1 = MBED_PIN(0x09, 1, 4, 13), // GPIO4[13] |
mbed_official | 315:1d806f4588f1 | 174 | P9_2 = MBED_PIN(0x09, 2, 4, 14), // GPIO4[14] |
mbed_official | 315:1d806f4588f1 | 175 | P9_3 = MBED_PIN(0x09, 3, 4, 15), // GPIO4[15] |
mbed_official | 315:1d806f4588f1 | 176 | P9_4 = MBED_PIN(0x09, 4, 5, 17), // GPIO5[17] |
mbed_official | 315:1d806f4588f1 | 177 | P9_5 = MBED_PIN(0x09, 5, 5, 18), // GPIO5[18] |
mbed_official | 315:1d806f4588f1 | 178 | P9_6 = MBED_PIN(0x09, 6, 4, 11), // GPIO4[11] |
mbed_official | 315:1d806f4588f1 | 179 | |
mbed_official | 315:1d806f4588f1 | 180 | PA_0 = MBED_PIN(0x0A, 0, NO_GPIO, 0), |
mbed_official | 315:1d806f4588f1 | 181 | PA_1 = MBED_PIN(0x0A, 1, 4, 8), // GPIO4[8] high-drive |
mbed_official | 315:1d806f4588f1 | 182 | PA_2 = MBED_PIN(0x0A, 2, 4, 9), // GPIO4[9] high-drive |
mbed_official | 315:1d806f4588f1 | 183 | PA_3 = MBED_PIN(0x0A, 3, 4, 10), // GPIO4[10] high-drive |
mbed_official | 315:1d806f4588f1 | 184 | PA_4 = MBED_PIN(0x0A, 4, 5, 19), // GPIO5[19] |
mbed_official | 315:1d806f4588f1 | 185 | |
mbed_official | 315:1d806f4588f1 | 186 | PB_0 = MBED_PIN(0x0B, 0, 5, 20), // GPIO5[20] |
mbed_official | 315:1d806f4588f1 | 187 | PB_1 = MBED_PIN(0x0B, 1, 5, 21), // GPIO5[21] |
mbed_official | 315:1d806f4588f1 | 188 | PB_2 = MBED_PIN(0x0B, 2, 5, 22), // GPIO5[22] |
mbed_official | 315:1d806f4588f1 | 189 | PB_3 = MBED_PIN(0x0B, 3, 5, 23), // GPIO5[23] |
mbed_official | 315:1d806f4588f1 | 190 | PB_4 = MBED_PIN(0x0B, 4, 5, 24), // GPIO5[24] |
mbed_official | 315:1d806f4588f1 | 191 | PB_5 = MBED_PIN(0x0B, 5, 5, 25), // GPIO5[25] |
mbed_official | 315:1d806f4588f1 | 192 | PB_6 = MBED_PIN(0x0B, 6, 5, 26), // GPIO5[26] |
mbed_official | 315:1d806f4588f1 | 193 | |
mbed_official | 315:1d806f4588f1 | 194 | PC_0 = MBED_PIN(0x0C, 0, NO_GPIO, 0), |
mbed_official | 315:1d806f4588f1 | 195 | PC_1 = MBED_PIN(0x0C, 1, 6, 0), // GPIO6[0] |
mbed_official | 315:1d806f4588f1 | 196 | PC_2 = MBED_PIN(0x0C, 2, 6, 1), // GPIO6[1] |
mbed_official | 315:1d806f4588f1 | 197 | PC_3 = MBED_PIN(0x0C, 3, 6, 2), // GPIO6[2] |
mbed_official | 315:1d806f4588f1 | 198 | PC_4 = MBED_PIN(0x0C, 4, 6, 3), // GPIO6[3] |
mbed_official | 315:1d806f4588f1 | 199 | PC_5 = MBED_PIN(0x0C, 5, 6, 4), // GPIO6[4] |
mbed_official | 315:1d806f4588f1 | 200 | PC_6 = MBED_PIN(0x0C, 6, 6, 5), // GPIO6[5] |
mbed_official | 315:1d806f4588f1 | 201 | PC_7 = MBED_PIN(0x0C, 7, 6, 6), // GPIO6[6] |
mbed_official | 315:1d806f4588f1 | 202 | PC_8 = MBED_PIN(0x0C, 8, 6, 7), // GPIO6[7] |
mbed_official | 315:1d806f4588f1 | 203 | PC_9 = MBED_PIN(0x0C, 9, 6, 8), // GPIO6[8] |
mbed_official | 315:1d806f4588f1 | 204 | PC_10 = MBED_PIN(0x0C, 10, 6, 9), // GPIO6[9] |
mbed_official | 315:1d806f4588f1 | 205 | PC_11 = MBED_PIN(0x0C, 11, 6, 10), // GPIO6[10] |
mbed_official | 315:1d806f4588f1 | 206 | PC_12 = MBED_PIN(0x0C, 12, 6, 11), // GPIO6[11] |
mbed_official | 315:1d806f4588f1 | 207 | PC_13 = MBED_PIN(0x0C, 13, 6, 12), // GPIO6[12] |
mbed_official | 315:1d806f4588f1 | 208 | PC_14 = MBED_PIN(0x0C, 14, 6, 13), // GPIO6[13] |
mbed_official | 315:1d806f4588f1 | 209 | |
mbed_official | 315:1d806f4588f1 | 210 | PD_0 = MBED_PIN(0x0D, 0, 6, 14), // GPIO6[14] |
mbed_official | 315:1d806f4588f1 | 211 | PD_1 = MBED_PIN(0x0D, 1, 6, 15), // GPIO6[15] |
mbed_official | 315:1d806f4588f1 | 212 | PD_2 = MBED_PIN(0x0D, 2, 6, 16), // GPIO6[16] |
mbed_official | 315:1d806f4588f1 | 213 | PD_3 = MBED_PIN(0x0D, 3, 6, 17), // GPIO6[17] |
mbed_official | 315:1d806f4588f1 | 214 | PD_4 = MBED_PIN(0x0D, 4, 6, 18), // GPIO6[18] |
mbed_official | 315:1d806f4588f1 | 215 | PD_5 = MBED_PIN(0x0D, 5, 6, 19), // GPIO6[19] |
mbed_official | 315:1d806f4588f1 | 216 | PD_6 = MBED_PIN(0x0D, 6, 6, 20), // GPIO6[20] |
mbed_official | 315:1d806f4588f1 | 217 | PD_7 = MBED_PIN(0x0D, 7, 6, 21), // GPIO6[21] |
mbed_official | 315:1d806f4588f1 | 218 | PD_8 = MBED_PIN(0x0D, 8, 6, 22), // GPIO6[22] |
mbed_official | 315:1d806f4588f1 | 219 | PD_9 = MBED_PIN(0x0D, 9, 6, 23), // GPIO6[23] |
mbed_official | 315:1d806f4588f1 | 220 | PD_10 = MBED_PIN(0x0D, 10, 6, 24), // GPIO6[24] |
mbed_official | 315:1d806f4588f1 | 221 | PD_11 = MBED_PIN(0x0D, 11, 6, 25), // GPIO6[25] |
mbed_official | 315:1d806f4588f1 | 222 | PD_12 = MBED_PIN(0x0D, 12, 6, 26), // GPIO6[26] |
mbed_official | 315:1d806f4588f1 | 223 | PD_13 = MBED_PIN(0x0D, 13, 6, 27), // GPIO6[27] |
mbed_official | 315:1d806f4588f1 | 224 | PD_14 = MBED_PIN(0x0D, 14, 6, 28), // GPIO6[28] |
mbed_official | 315:1d806f4588f1 | 225 | PD_15 = MBED_PIN(0x0D, 15, 6, 29), // GPIO6[29] |
mbed_official | 315:1d806f4588f1 | 226 | PD_16 = MBED_PIN(0x0D, 16, 6, 30), // GPIO6[30] |
mbed_official | 315:1d806f4588f1 | 227 | |
mbed_official | 315:1d806f4588f1 | 228 | PE_0 = MBED_PIN(0x0E, 0, 7, 0), // GPIO7[0] |
mbed_official | 315:1d806f4588f1 | 229 | PE_1 = MBED_PIN(0x0E, 1, 7, 1), // GPIO7[1] |
mbed_official | 315:1d806f4588f1 | 230 | PE_2 = MBED_PIN(0x0E, 2, 7, 2), // GPIO7[2] |
mbed_official | 315:1d806f4588f1 | 231 | PE_3 = MBED_PIN(0x0E, 3, 7, 3), // GPIO7[3] |
mbed_official | 315:1d806f4588f1 | 232 | PE_4 = MBED_PIN(0x0E, 4, 7, 4), // GPIO7[4] |
mbed_official | 315:1d806f4588f1 | 233 | PE_5 = MBED_PIN(0x0E, 5, 7, 5), // GPIO7[5] |
mbed_official | 315:1d806f4588f1 | 234 | PE_6 = MBED_PIN(0x0E, 6, 7, 6), // GPIO7[6] |
mbed_official | 315:1d806f4588f1 | 235 | PE_7 = MBED_PIN(0x0E, 7, 7, 7), // GPIO7[7] |
mbed_official | 315:1d806f4588f1 | 236 | PE_8 = MBED_PIN(0x0E, 8, 7, 8), // GPIO7[8] |
mbed_official | 315:1d806f4588f1 | 237 | PE_9 = MBED_PIN(0x0E, 9, 7, 9), // GPIO7[9] |
mbed_official | 315:1d806f4588f1 | 238 | PE_10 = MBED_PIN(0x0E, 10, 7, 10), // GPIO7[10] |
mbed_official | 315:1d806f4588f1 | 239 | PE_11 = MBED_PIN(0x0E, 11, 7, 11), // GPIO7[11] |
mbed_official | 315:1d806f4588f1 | 240 | PE_12 = MBED_PIN(0x0E, 12, 7, 12), // GPIO7[12] |
mbed_official | 315:1d806f4588f1 | 241 | PE_13 = MBED_PIN(0x0E, 13, 7, 13), // GPIO7[13] |
mbed_official | 315:1d806f4588f1 | 242 | PE_14 = MBED_PIN(0x0E, 14, 7, 14), // GPIO7[14] |
mbed_official | 315:1d806f4588f1 | 243 | PE_15 = MBED_PIN(0x0E, 15, 7, 15), // GPIO7[15] |
mbed_official | 315:1d806f4588f1 | 244 | |
mbed_official | 315:1d806f4588f1 | 245 | PF_0 = MBED_PIN(0x0F, 0, NO_GPIO, 0), |
mbed_official | 315:1d806f4588f1 | 246 | PF_1 = MBED_PIN(0x0F, 1, 7, 16), // GPIO7[16] |
mbed_official | 315:1d806f4588f1 | 247 | PF_2 = MBED_PIN(0x0F, 2, 7, 17), // GPIO7[17] |
mbed_official | 315:1d806f4588f1 | 248 | PF_3 = MBED_PIN(0x0F, 3, 7, 18), // GPIO7[18] |
mbed_official | 315:1d806f4588f1 | 249 | PF_4 = MBED_PIN(0x0F, 4, NO_GPIO, 0), |
mbed_official | 315:1d806f4588f1 | 250 | PF_5 = MBED_PIN(0x0F, 5, 7, 19), // GPIO7[19] |
mbed_official | 315:1d806f4588f1 | 251 | PF_6 = MBED_PIN(0x0F, 6, 7, 20), // GPIO7[20] |
mbed_official | 315:1d806f4588f1 | 252 | PF_7 = MBED_PIN(0x0F, 7, 7, 21), // GPIO7[21] |
mbed_official | 315:1d806f4588f1 | 253 | PF_8 = MBED_PIN(0x0F, 8, 7, 22), // GPIO7[22] |
mbed_official | 315:1d806f4588f1 | 254 | PF_9 = MBED_PIN(0x0F, 9, 7, 23), // GPIO7[23] |
mbed_official | 315:1d806f4588f1 | 255 | PF_10 = MBED_PIN(0x0F, 10, 7, 24), // GPIO7[24] |
mbed_official | 315:1d806f4588f1 | 256 | PF_11 = MBED_PIN(0x0F, 11, 7, 25), // GPIO7[25] |
mbed_official | 315:1d806f4588f1 | 257 | |
mbed_official | 315:1d806f4588f1 | 258 | // GPIO pins from MCU pins |
mbed_official | 315:1d806f4588f1 | 259 | GPIO0_0 = P0_0, |
mbed_official | 315:1d806f4588f1 | 260 | GPIO0_1 = P0_1 , |
mbed_official | 315:1d806f4588f1 | 261 | GPIO0_2 = P1_15, |
mbed_official | 315:1d806f4588f1 | 262 | GPIO0_3 = P1_16, |
mbed_official | 315:1d806f4588f1 | 263 | GPIO0_4 = P1_0, |
mbed_official | 315:1d806f4588f1 | 264 | GPIO0_5 = P6_6, |
mbed_official | 315:1d806f4588f1 | 265 | GPIO0_6 = P3_6, |
mbed_official | 315:1d806f4588f1 | 266 | GPIO0_7 = P2_7, |
mbed_official | 315:1d806f4588f1 | 267 | GPIO0_8 = P1_1, |
mbed_official | 315:1d806f4588f1 | 268 | GPIO0_9 = P1_2, |
mbed_official | 315:1d806f4588f1 | 269 | GPIO0_10 = P1_3, |
mbed_official | 315:1d806f4588f1 | 270 | GPIO0_11 = P1_4, |
mbed_official | 315:1d806f4588f1 | 271 | GPIO0_12 = P1_17, |
mbed_official | 315:1d806f4588f1 | 272 | GPIO0_13 = P1_18, |
mbed_official | 315:1d806f4588f1 | 273 | GPIO0_14 = P2_10, |
mbed_official | 315:1d806f4588f1 | 274 | GPIO0_15 = P1_20, |
mbed_official | 315:1d806f4588f1 | 275 | |
mbed_official | 315:1d806f4588f1 | 276 | GPIO1_0 = P1_7, |
mbed_official | 315:1d806f4588f1 | 277 | GPIO1_1 = P1_8, |
mbed_official | 315:1d806f4588f1 | 278 | GPIO1_2 = P1_9, |
mbed_official | 315:1d806f4588f1 | 279 | GPIO1_3 = P1_10, |
mbed_official | 315:1d806f4588f1 | 280 | GPIO1_4 = P1_11, |
mbed_official | 315:1d806f4588f1 | 281 | GPIO1_5 = P1_12, |
mbed_official | 315:1d806f4588f1 | 282 | GPIO1_6 = P1_13, |
mbed_official | 315:1d806f4588f1 | 283 | GPIO1_7 = P1_14, |
mbed_official | 315:1d806f4588f1 | 284 | GPIO1_8 = P1_5, |
mbed_official | 315:1d806f4588f1 | 285 | GPIO1_9 = P1_6, |
mbed_official | 315:1d806f4588f1 | 286 | GPIO1_10 = P2_9, |
mbed_official | 315:1d806f4588f1 | 287 | GPIO1_11 = P2_11, |
mbed_official | 315:1d806f4588f1 | 288 | GPIO1_12 = P2_12, |
mbed_official | 315:1d806f4588f1 | 289 | GPIO1_13 = P2_13, |
mbed_official | 315:1d806f4588f1 | 290 | GPIO1_14 = P3_4, |
mbed_official | 315:1d806f4588f1 | 291 | GPIO1_15 = P3_5, |
mbed_official | 315:1d806f4588f1 | 292 | |
mbed_official | 315:1d806f4588f1 | 293 | GPIO2_0 = P4_0, |
mbed_official | 315:1d806f4588f1 | 294 | GPIO2_1 = P4_1, |
mbed_official | 315:1d806f4588f1 | 295 | GPIO2_2 = P4_2, |
mbed_official | 315:1d806f4588f1 | 296 | GPIO2_3 = P4_3, |
mbed_official | 315:1d806f4588f1 | 297 | GPIO2_4 = P4_4, |
mbed_official | 315:1d806f4588f1 | 298 | GPIO2_5 = P4_5, |
mbed_official | 315:1d806f4588f1 | 299 | GPIO2_6 = P4_6, |
mbed_official | 315:1d806f4588f1 | 300 | GPIO2_7 = P5_7, |
mbed_official | 315:1d806f4588f1 | 301 | GPIO2_8 = P6_12, |
mbed_official | 315:1d806f4588f1 | 302 | GPIO2_9 = P5_0, |
mbed_official | 315:1d806f4588f1 | 303 | GPIO2_10 = P5_1, |
mbed_official | 315:1d806f4588f1 | 304 | GPIO2_11 = P5_2, |
mbed_official | 315:1d806f4588f1 | 305 | GPIO2_12 = P5_3, |
mbed_official | 315:1d806f4588f1 | 306 | GPIO2_13 = P5_4, |
mbed_official | 315:1d806f4588f1 | 307 | GPIO2_14 = P5_5, |
mbed_official | 315:1d806f4588f1 | 308 | GPIO2_15 = P5_6, |
mbed_official | 315:1d806f4588f1 | 309 | |
mbed_official | 315:1d806f4588f1 | 310 | GPIO3_0 = P6_1, |
mbed_official | 315:1d806f4588f1 | 311 | GPIO3_1 = P6_2, |
mbed_official | 315:1d806f4588f1 | 312 | GPIO3_2 = P6_3, |
mbed_official | 315:1d806f4588f1 | 313 | GPIO3_3 = P6_4, |
mbed_official | 315:1d806f4588f1 | 314 | GPIO3_4 = P6_5, |
mbed_official | 315:1d806f4588f1 | 315 | GPIO3_5 = P6_9, |
mbed_official | 315:1d806f4588f1 | 316 | GPIO3_6 = P6_10, |
mbed_official | 315:1d806f4588f1 | 317 | GPIO3_7 = P6_11, |
mbed_official | 315:1d806f4588f1 | 318 | GPIO3_8 = P7_0, |
mbed_official | 315:1d806f4588f1 | 319 | GPIO3_9 = P7_1, |
mbed_official | 315:1d806f4588f1 | 320 | GPIO3_10 = P7_2, |
mbed_official | 315:1d806f4588f1 | 321 | GPIO3_11 = P7_3, |
mbed_official | 315:1d806f4588f1 | 322 | GPIO3_12 = P7_4, |
mbed_official | 315:1d806f4588f1 | 323 | GPIO3_13 = P7_5, |
mbed_official | 315:1d806f4588f1 | 324 | GPIO3_14 = P7_6, |
mbed_official | 315:1d806f4588f1 | 325 | GPIO3_15 = P7_7, |
mbed_official | 315:1d806f4588f1 | 326 | |
mbed_official | 315:1d806f4588f1 | 327 | GPIO4_0 = P8_0, |
mbed_official | 315:1d806f4588f1 | 328 | GPIO4_1 = P8_1, |
mbed_official | 315:1d806f4588f1 | 329 | GPIO4_2 = P8_2, |
mbed_official | 315:1d806f4588f1 | 330 | GPIO4_3 = P8_3, |
mbed_official | 315:1d806f4588f1 | 331 | GPIO4_4 = P8_4, |
mbed_official | 315:1d806f4588f1 | 332 | GPIO4_5 = P8_5, |
mbed_official | 315:1d806f4588f1 | 333 | GPIO4_6 = P8_6, |
mbed_official | 315:1d806f4588f1 | 334 | GPIO4_7 = P8_7, |
mbed_official | 315:1d806f4588f1 | 335 | GPIO4_8 = PA_1, |
mbed_official | 315:1d806f4588f1 | 336 | GPIO4_9 = PA_2, |
mbed_official | 315:1d806f4588f1 | 337 | GPIO4_10 = PA_3, |
mbed_official | 315:1d806f4588f1 | 338 | GPIO4_11 = P9_6, |
mbed_official | 315:1d806f4588f1 | 339 | GPIO4_12 = P9_0, |
mbed_official | 315:1d806f4588f1 | 340 | GPIO4_13 = P9_1, |
mbed_official | 315:1d806f4588f1 | 341 | GPIO4_14 = P9_2, |
mbed_official | 315:1d806f4588f1 | 342 | GPIO4_15 = P9_3, |
mbed_official | 315:1d806f4588f1 | 343 | |
mbed_official | 315:1d806f4588f1 | 344 | GPIO5_0 = P2_0, |
mbed_official | 315:1d806f4588f1 | 345 | GPIO5_1 = P2_1, |
mbed_official | 315:1d806f4588f1 | 346 | GPIO5_2 = P2_2, |
mbed_official | 315:1d806f4588f1 | 347 | GPIO5_3 = P2_3, |
mbed_official | 315:1d806f4588f1 | 348 | GPIO5_4 = P2_4, |
mbed_official | 315:1d806f4588f1 | 349 | GPIO5_5 = P2_5, |
mbed_official | 315:1d806f4588f1 | 350 | GPIO5_6 = P2_6, |
mbed_official | 315:1d806f4588f1 | 351 | GPIO5_7 = P2_8, |
mbed_official | 315:1d806f4588f1 | 352 | GPIO5_8 = P3_1, |
mbed_official | 315:1d806f4588f1 | 353 | GPIO5_9 = P3_2, |
mbed_official | 315:1d806f4588f1 | 354 | GPIO5_10 = P3_7, |
mbed_official | 315:1d806f4588f1 | 355 | GPIO5_11 = P3_8, |
mbed_official | 315:1d806f4588f1 | 356 | GPIO5_12 = P4_8, |
mbed_official | 315:1d806f4588f1 | 357 | GPIO5_13 = P4_9, |
mbed_official | 315:1d806f4588f1 | 358 | GPIO5_14 = P4_10, |
mbed_official | 315:1d806f4588f1 | 359 | GPIO5_15 = P6_7, |
mbed_official | 315:1d806f4588f1 | 360 | GPIO5_16 = P6_8, |
mbed_official | 315:1d806f4588f1 | 361 | GPIO5_17 = P9_4, |
mbed_official | 315:1d806f4588f1 | 362 | GPIO5_18 = P9_5, |
mbed_official | 315:1d806f4588f1 | 363 | GPIO5_19 = PA_4, |
mbed_official | 315:1d806f4588f1 | 364 | GPIO5_20 = PB_0, |
mbed_official | 315:1d806f4588f1 | 365 | GPIO5_21 = PB_1, |
mbed_official | 315:1d806f4588f1 | 366 | GPIO5_22 = PB_2, |
mbed_official | 315:1d806f4588f1 | 367 | GPIO5_23 = PB_3, |
mbed_official | 315:1d806f4588f1 | 368 | GPIO5_24 = PB_4, |
mbed_official | 315:1d806f4588f1 | 369 | GPIO5_25 = PB_5, |
mbed_official | 315:1d806f4588f1 | 370 | GPIO5_26 = PB_6, |
mbed_official | 315:1d806f4588f1 | 371 | |
mbed_official | 315:1d806f4588f1 | 372 | GPIO6_0 = PC_1, |
mbed_official | 315:1d806f4588f1 | 373 | GPIO6_1 = PC_2, |
mbed_official | 315:1d806f4588f1 | 374 | GPIO6_2 = PC_3, |
mbed_official | 315:1d806f4588f1 | 375 | GPIO6_3 = PC_4, |
mbed_official | 315:1d806f4588f1 | 376 | GPIO6_4 = PC_5, |
mbed_official | 315:1d806f4588f1 | 377 | GPIO6_5 = PC_6, |
mbed_official | 315:1d806f4588f1 | 378 | GPIO6_6 = PC_7, |
mbed_official | 315:1d806f4588f1 | 379 | GPIO6_7 = PC_8, |
mbed_official | 315:1d806f4588f1 | 380 | GPIO6_8 = PC_9, |
mbed_official | 315:1d806f4588f1 | 381 | GPIO6_9 = PC_10, |
mbed_official | 315:1d806f4588f1 | 382 | GPIO6_10 = PC_11, |
mbed_official | 315:1d806f4588f1 | 383 | GPIO6_11 = PC_12, |
mbed_official | 315:1d806f4588f1 | 384 | GPIO6_12 = PC_13, |
mbed_official | 315:1d806f4588f1 | 385 | GPIO6_13 = PC_14, |
mbed_official | 315:1d806f4588f1 | 386 | GPIO6_14 = PD_0, |
mbed_official | 315:1d806f4588f1 | 387 | GPIO6_15 = PD_1, |
mbed_official | 315:1d806f4588f1 | 388 | GPIO6_16 = PD_2, |
mbed_official | 315:1d806f4588f1 | 389 | GPIO6_17 = PD_3, |
mbed_official | 315:1d806f4588f1 | 390 | GPIO6_18 = PD_4, |
mbed_official | 315:1d806f4588f1 | 391 | GPIO6_19 = PD_5, |
mbed_official | 315:1d806f4588f1 | 392 | GPIO6_20 = PD_6, |
mbed_official | 315:1d806f4588f1 | 393 | GPIO6_21 = PD_7, |
mbed_official | 315:1d806f4588f1 | 394 | GPIO6_22 = PD_8, |
mbed_official | 315:1d806f4588f1 | 395 | GPIO6_23 = PD_9, |
mbed_official | 315:1d806f4588f1 | 396 | GPIO6_24 = PD_10, |
mbed_official | 315:1d806f4588f1 | 397 | GPIO6_25 = PD_11, |
mbed_official | 315:1d806f4588f1 | 398 | GPIO6_26 = PD_12, |
mbed_official | 315:1d806f4588f1 | 399 | GPIO6_27 = PD_13, |
mbed_official | 315:1d806f4588f1 | 400 | GPIO6_28 = PD_14, |
mbed_official | 315:1d806f4588f1 | 401 | GPIO6_29 = PD_15, |
mbed_official | 315:1d806f4588f1 | 402 | GPIO6_30 = PD_16, |
mbed_official | 315:1d806f4588f1 | 403 | |
mbed_official | 315:1d806f4588f1 | 404 | GPIO7_0 = PE_0, |
mbed_official | 315:1d806f4588f1 | 405 | GPIO7_1 = PE_1, |
mbed_official | 315:1d806f4588f1 | 406 | GPIO7_2 = PE_2, |
mbed_official | 315:1d806f4588f1 | 407 | GPIO7_3 = PE_3, |
mbed_official | 315:1d806f4588f1 | 408 | GPIO7_4 = PE_4, |
mbed_official | 315:1d806f4588f1 | 409 | GPIO7_5 = PE_5, |
mbed_official | 315:1d806f4588f1 | 410 | GPIO7_6 = PE_5, |
mbed_official | 315:1d806f4588f1 | 411 | GPIO7_7 = PE_7, |
mbed_official | 315:1d806f4588f1 | 412 | GPIO7_8 = PE_8, |
mbed_official | 315:1d806f4588f1 | 413 | GPIO7_9 = PE_9, |
mbed_official | 315:1d806f4588f1 | 414 | GPIO7_10 = PE_10, |
mbed_official | 315:1d806f4588f1 | 415 | GPIO7_11 = PE_11, |
mbed_official | 315:1d806f4588f1 | 416 | GPIO7_12 = PE_12, |
mbed_official | 315:1d806f4588f1 | 417 | GPIO7_13 = PE_13, |
mbed_official | 315:1d806f4588f1 | 418 | GPIO7_14 = PE_14, |
mbed_official | 315:1d806f4588f1 | 419 | GPIO7_15 = PE_15, |
mbed_official | 315:1d806f4588f1 | 420 | GPIO7_16 = PF_1, |
mbed_official | 315:1d806f4588f1 | 421 | GPIO7_17 = PF_2, |
mbed_official | 315:1d806f4588f1 | 422 | GPIO7_18 = PF_3, |
mbed_official | 315:1d806f4588f1 | 423 | GPIO7_19 = PF_5, |
mbed_official | 315:1d806f4588f1 | 424 | GPIO7_20 = PF_6, |
mbed_official | 315:1d806f4588f1 | 425 | GPIO7_21 = PF_7, |
mbed_official | 315:1d806f4588f1 | 426 | GPIO7_22 = PF_8, |
mbed_official | 315:1d806f4588f1 | 427 | GPIO7_23 = PF_9, |
mbed_official | 315:1d806f4588f1 | 428 | GPIO7_24 = PF_10, |
mbed_official | 315:1d806f4588f1 | 429 | GPIO7_25 = PF_11, |
mbed_official | 315:1d806f4588f1 | 430 | |
mbed_official | 315:1d806f4588f1 | 431 | // Map mbed pin names to LPC43xx board signals |
mbed_official | 315:1d806f4588f1 | 432 | |
mbed_official | 315:1d806f4588f1 | 433 | // Group 0x18 : CLKn pins |
mbed_official | 315:1d806f4588f1 | 434 | SFP_CLK0 = MBED_PIN(0x18, 0, 0, 0), |
mbed_official | 315:1d806f4588f1 | 435 | SFP_CLK1 = MBED_PIN(0x18, 1, 0, 0), |
mbed_official | 315:1d806f4588f1 | 436 | SFP_CLK2 = MBED_PIN(0x18, 2, 0, 0), |
mbed_official | 315:1d806f4588f1 | 437 | SFP_CLK3 = MBED_PIN(0x18, 3, 0, 0), |
mbed_official | 315:1d806f4588f1 | 438 | |
mbed_official | 315:1d806f4588f1 | 439 | // Group 0x19 : USB1, I2C0, ADC0, ADC1 |
mbed_official | 315:1d806f4588f1 | 440 | SFP_USB1 = MBED_PIN(0x19, 0, 0, 0), |
mbed_official | 315:1d806f4588f1 | 441 | SFP_I2C0 = MBED_PIN(0x19, 1, 0, 0), |
mbed_official | 315:1d806f4588f1 | 442 | SFP_AIO0 = MBED_PIN(0x19, 2, 0, 0), // ADC0 function select register |
mbed_official | 315:1d806f4588f1 | 443 | SFP_AIO1 = MBED_PIN(0x19, 3, 0, 0), // ADC1 function select register |
mbed_official | 315:1d806f4588f1 | 444 | SFP_AIO2 = MBED_PIN(0x19, 4, 0, 0), // Analog function select register |
mbed_official | 315:1d806f4588f1 | 445 | |
mbed_official | 315:1d806f4588f1 | 446 | SFP_EMCD = MBED_PIN(0x1A, 0, 0, 0), // EMC clock delay register |
mbed_official | 315:1d806f4588f1 | 447 | |
mbed_official | 315:1d806f4588f1 | 448 | SFP_INS0 = MBED_PIN(0x1C, 0, 0, 0), // Interrupt select for pin interrupts 0 to 3 |
mbed_official | 315:1d806f4588f1 | 449 | SFP_INS1 = MBED_PIN(0x1C, 1, 0, 0), // Interrupt select for pin interrupts 4 to 7 |
mbed_official | 315:1d806f4588f1 | 450 | |
mbed_official | 315:1d806f4588f1 | 451 | // Dedicated pin (no GPIO) |
mbed_official | 315:1d806f4588f1 | 452 | P_DED = MBED_PIN(0, 0, NO_GPIO, 0), |
mbed_official | 315:1d806f4588f1 | 453 | |
mbed_official | 315:1d806f4588f1 | 454 | // Not connected |
mbed_official | 315:1d806f4588f1 | 455 | NC = (int)0xFFFFFFFF, |
mbed_official | 315:1d806f4588f1 | 456 | |
mbed_official | 315:1d806f4588f1 | 457 | // ---------- Micromint Bambino 200/200E/210/210E (LQFP144) ---------- |
mbed_official | 315:1d806f4588f1 | 458 | // Base headers - J8, J9, J10 on Bambino 210/210E |
mbed_official | 315:1d806f4588f1 | 459 | // n/p = not populated, n/a = not available |
mbed_official | 315:1d806f4588f1 | 460 | // 210E 210 200E 200 |
mbed_official | 315:1d806f4588f1 | 461 | // ---- ---- ---- ---- |
mbed_official | 315:1d806f4588f1 | 462 | p15 = P7_4, // J8-1 J8-1 S4-3 S4-3 |
mbed_official | 315:1d806f4588f1 | 463 | p16 = P7_5, // J8-2 J8-2 S4-4 S4-4 |
mbed_official | 315:1d806f4588f1 | 464 | p17 = P4_1, // J8-3 J8-3 S3-4 S3-4 |
mbed_official | 315:1d806f4588f1 | 465 | p18 = P7_7, // J8-4 J8-4 S4-5 S4-5 |
mbed_official | 315:1d806f4588f1 | 466 | p19 = P4_3, // J8-5* J8-5* S3-4 S3-3 |
mbed_official | 315:1d806f4588f1 | 467 | p20 = P4_4, // J8-6* J8-6* S1-5 S1-5 |
mbed_official | 315:1d806f4588f1 | 468 | p20b = PF_8, // J8-6** J8-6** S3-5 S3-5 |
mbed_official | 315:1d806f4588f1 | 469 | // (*) if p20 is configured as DAC, ADC is not available for p19 |
mbed_official | 315:1d806f4588f1 | 470 | // (**) requires JP2 mod |
mbed_official | 315:1d806f4588f1 | 471 | |
mbed_official | 315:1d806f4588f1 | 472 | p21 = P6_5, // J9-1 J9-1 S2-5 S2-5 |
mbed_official | 315:1d806f4588f1 | 473 | p22 = P6_4, // J9-2 J9-2 S2=4 S2-4 |
mbed_official | 315:1d806f4588f1 | 474 | p23 = P1_7, // J9-3 J9-3 S2-3 S2-3 |
mbed_official | 315:1d806f4588f1 | 475 | p24 = P4_0, // J9-4 J9-4 S3-7 S3-7 |
mbed_official | 315:1d806f4588f1 | 476 | p25 = P6_9, // J9-5 J9-5 S8-7 n/p |
mbed_official | 315:1d806f4588f1 | 477 | p26 = P5_5, // J9-6 J9-6 S3-8 S3-8 |
mbed_official | 315:1d806f4588f1 | 478 | p27 = P5_7, // J9-7 J9-7 S3-9 S3-9 |
mbed_official | 315:1d806f4588f1 | 479 | p28 = P7_6, // J9-8 J9-8 S4-6 S4-6 |
mbed_official | 315:1d806f4588f1 | 480 | |
mbed_official | 315:1d806f4588f1 | 481 | p29 = P6_12, // J10-1 J10-1 S10-3 n/p |
mbed_official | 315:1d806f4588f1 | 482 | p30 = P5_0, // J10-2 J10-2 S1-4 S1-4 |
mbed_official | 315:1d806f4588f1 | 483 | p31 = P4_6, // J10-3 J10-3 S2-6 S2-6 |
mbed_official | 315:1d806f4588f1 | 484 | p32 = P4_8, // J10-4 J10-4 S2-7 S2-7 |
mbed_official | 315:1d806f4588f1 | 485 | p33 = P4_9, // J10-5 J10-5 S2-8 S2-8 |
mbed_official | 315:1d806f4588f1 | 486 | p34 = P4_10, // J10-6 J10-6 S2-9 S2-9 |
mbed_official | 315:1d806f4588f1 | 487 | p37 = P2_3, // J10-9 J10-9 S4-8 S4-8 |
mbed_official | 315:1d806f4588f1 | 488 | p38 = P2_4, // J10-10 J10-10 S4-9 S4-9 |
mbed_official | 315:1d806f4588f1 | 489 | |
mbed_official | 315:1d806f4588f1 | 490 | // Extended headers - J11, J12, J13, J14 on Bambino 210E |
mbed_official | 315:1d806f4588f1 | 491 | // 210E 210 200E 200 |
mbed_official | 315:1d806f4588f1 | 492 | // ---- ---- ---- ---- |
mbed_official | 315:1d806f4588f1 | 493 | p47 = P6_3, // J11-1 n/p S7-5 n/p |
mbed_official | 315:1d806f4588f1 | 494 | p48 = P6_6, // J11-2 n/p S6-7 n/p |
mbed_official | 315:1d806f4588f1 | 495 | p49 = P6_7, // J11-3 n/p S6-8 n/p |
mbed_official | 315:1d806f4588f1 | 496 | p50 = P6_8, // J11-4 n/p S6-9 n/p |
mbed_official | 315:1d806f4588f1 | 497 | p53 = P2_2, // J11-7 n/p S7-7 n/p |
mbed_official | 315:1d806f4588f1 | 498 | p54 = P2_1, // J11-8 n/p S7-3 n/p |
mbed_official | 315:1d806f4588f1 | 499 | |
mbed_official | 315:1d806f4588f1 | 500 | p55 = PF_10, // J12-1 n/p n/a n/a |
mbed_official | 315:1d806f4588f1 | 501 | p56 = PF_7, // J12-2 n/p n/a n/a |
mbed_official | 315:1d806f4588f1 | 502 | p57 = P2_6, // J12-3 n/p S8-6 n/p |
mbed_official | 315:1d806f4588f1 | 503 | p58 = P2_8, // J12-4 n/p S8-3 n/p |
mbed_official | 315:1d806f4588f1 | 504 | p59 = P6_10, // J12-5 n/p S7-8 n/p |
mbed_official | 315:1d806f4588f1 | 505 | p60 = P2_9, // J12-6 n/p S9-3 n/p |
mbed_official | 315:1d806f4588f1 | 506 | |
mbed_official | 315:1d806f4588f1 | 507 | p61 = P7_3, // J13-1 n/p S7-9 n/p |
mbed_official | 315:1d806f4588f1 | 508 | p62 = P3_2, // J13-2 n/p S9-4 n/p |
mbed_official | 315:1d806f4588f1 | 509 | p63 = P7_2, // J13-3 n/p S4-7 S4-7 |
mbed_official | 315:1d806f4588f1 | 510 | p64 = P3_1, // J13-4 n/p S9-5 n/p |
mbed_official | 315:1d806f4588f1 | 511 | p65 = P7_1, // J13-5 n/p S9-8 n/p |
mbed_official | 315:1d806f4588f1 | 512 | p66 = P7_0, // J13-6 n/p S9-9 n/p |
mbed_official | 315:1d806f4588f1 | 513 | p67 = P4_2, // J13-7 n/p S4-6 S4-6 |
mbed_official | 315:1d806f4588f1 | 514 | p68 = P4_5, // J13-8 n/p S1-3 S1-3 |
mbed_official | 315:1d806f4588f1 | 515 | |
mbed_official | 315:1d806f4588f1 | 516 | p69 = P2_13, // J14-1 n/p S9-7 n/p |
mbed_official | 315:1d806f4588f1 | 517 | p70 = P2_12, // J14-2 n/p S9-6 n/p |
mbed_official | 315:1d806f4588f1 | 518 | p71 = P9_6, // J14-3 n/p S6-6 n/p |
mbed_official | 315:1d806f4588f1 | 519 | p72 = P9_5, // J14-4 n/p S7-4 n/p |
mbed_official | 315:1d806f4588f1 | 520 | p73 = P5_3, // J14-5 n/p S6-5 n/p |
mbed_official | 315:1d806f4588f1 | 521 | p74 = P1_8, // J14-6 n/p S6-4 n/p |
mbed_official | 315:1d806f4588f1 | 522 | p75 = P1_5, // J14-7 n/p S10-6 n/p |
mbed_official | 315:1d806f4588f1 | 523 | p76 = P1_4, // J14-8 n/p S10-7 n/p |
mbed_official | 315:1d806f4588f1 | 524 | p77 = P1_3, // J14-9 n/p S10-8 n/p |
mbed_official | 315:1d806f4588f1 | 525 | p78 = PF_4, // J14-10 n/p S10-9 n/p |
mbed_official | 315:1d806f4588f1 | 526 | |
mbed_official | 315:1d806f4588f1 | 527 | // J16 - PMOD-SSP header (not populated, field installable) |
mbed_official | 315:1d806f4588f1 | 528 | p80 = P1_0, // J16-1 J16-1 S1-6 S1-6 |
mbed_official | 315:1d806f4588f1 | 529 | p81 = P1_2, // J16-2 J16-2 S1-7 S1-7 |
mbed_official | 315:1d806f4588f1 | 530 | p82 = P1_1, // J16-3 J16-3 S1-8 S1-8 |
mbed_official | 315:1d806f4588f1 | 531 | p83 = P3_0, // J16-4 J16-4 S1-9 S1-9 |
mbed_official | 315:1d806f4588f1 | 532 | |
mbed_official | 315:1d806f4588f1 | 533 | // Arduino pins - J8, J9, J10 |
mbed_official | 315:1d806f4588f1 | 534 | // 210E 210 200E 200 |
mbed_official | 315:1d806f4588f1 | 535 | // ---- ---- ---- ---- |
mbed_official | 315:1d806f4588f1 | 536 | D0 = p21, // J9-1 J9-1 S2-5 S2-5 |
mbed_official | 315:1d806f4588f1 | 537 | D1 = p22, // J9-2 J9-2 S2-4 S2-4 |
mbed_official | 315:1d806f4588f1 | 538 | D2 = p23, // J9-3 J9-3 S2-3 S2-3 |
mbed_official | 315:1d806f4588f1 | 539 | D3 = p24, // J9-4 J9-4 S3-7 S3-7 |
mbed_official | 315:1d806f4588f1 | 540 | D4 = p25, // J9-5 J9-5 S8-7 n/p |
mbed_official | 315:1d806f4588f1 | 541 | D5 = p26, // J9-6 J9-6 S3-8 S3-8 |
mbed_official | 315:1d806f4588f1 | 542 | D6 = p27, // J9-7 J9-7 S3-9 S3-9 |
mbed_official | 315:1d806f4588f1 | 543 | D7 = p28, // J9-8 J9-8 S4-6 S4-6 |
mbed_official | 315:1d806f4588f1 | 544 | |
mbed_official | 315:1d806f4588f1 | 545 | D8 = p29, // J10-1 J10-1 S10-1 n/p |
mbed_official | 315:1d806f4588f1 | 546 | D9 = p30, // J10-2 J10-2 S1-4 S1-4 |
mbed_official | 315:1d806f4588f1 | 547 | D10 = p31, // J10-3 J10-3 S2-6 S2-6 |
mbed_official | 315:1d806f4588f1 | 548 | D11 = p32, // J10-4 J10-4 S2-7 S2-7 |
mbed_official | 315:1d806f4588f1 | 549 | D12 = p33, // J10-5 J10-5 S2-8 S2-8 |
mbed_official | 315:1d806f4588f1 | 550 | D13 = p34, // J10-6 J10-6 S2-9 S2-9 |
mbed_official | 315:1d806f4588f1 | 551 | D16 = p37, // J10-9 J10-9 S4-8 S4-8 |
mbed_official | 315:1d806f4588f1 | 552 | D17 = p38, // J10-10 J10-10 S4-9 S4-9 |
mbed_official | 315:1d806f4588f1 | 553 | |
mbed_official | 315:1d806f4588f1 | 554 | A0 = p15, // J8-1 J8-1 S4-3 S4-3 |
mbed_official | 315:1d806f4588f1 | 555 | A1 = p16, // J8-2 J8-2 S4-4 S4-4 |
mbed_official | 315:1d806f4588f1 | 556 | A2 = p17, // J8-3 J8-3 S3-4 S3-4 |
mbed_official | 315:1d806f4588f1 | 557 | A3 = p18, // J8-4 J8-4 S3-4 S3-4 |
mbed_official | 315:1d806f4588f1 | 558 | A4 = p19, // J8-5* J8-5* S3-3 S3-3 |
mbed_official | 315:1d806f4588f1 | 559 | A5 = p20, // J8-6* J8-6* S1-5 S1-5 |
mbed_official | 315:1d806f4588f1 | 560 | A5b = p20b, // J8-6** J8-6** S3-5 S3-5 |
mbed_official | 315:1d806f4588f1 | 561 | // (*) if A5 is configured as DAC, ADC is not available for A4 |
mbed_official | 315:1d806f4588f1 | 562 | // (**) requires JP2 mod |
mbed_official | 315:1d806f4588f1 | 563 | |
mbed_official | 315:1d806f4588f1 | 564 | // Extended Arduino pins - J11, J12, J13, J14 |
mbed_official | 315:1d806f4588f1 | 565 | // 210E 210 200E 200 |
mbed_official | 315:1d806f4588f1 | 566 | // ---- ---- ---- ---- |
mbed_official | 315:1d806f4588f1 | 567 | D20 = p61, // J13-1 n/p S7-9 n/p |
mbed_official | 315:1d806f4588f1 | 568 | D21 = p62, // J13-2 n/p S9-4 n/p |
mbed_official | 315:1d806f4588f1 | 569 | D22 = p63, // J13-3 n/p S4-7 S4-7 |
mbed_official | 315:1d806f4588f1 | 570 | D23 = p64, // J13-4 n/p S9-5 n/p |
mbed_official | 315:1d806f4588f1 | 571 | D24 = p65, // J13-5 n/p S9-8 n/p |
mbed_official | 315:1d806f4588f1 | 572 | D25 = p66, // J13-6 n/p S9-9 n/p |
mbed_official | 315:1d806f4588f1 | 573 | D26 = p67, // J13-7 n/p S3-7 S3-7 |
mbed_official | 315:1d806f4588f1 | 574 | D27 = p68, // J13-8 n/p S1-3 S1-3 |
mbed_official | 315:1d806f4588f1 | 575 | |
mbed_official | 315:1d806f4588f1 | 576 | D30 = p69, // J14-1 n/p S9-7 n/p |
mbed_official | 315:1d806f4588f1 | 577 | D31 = p70, // J14-2 n/p S9-6 n/p |
mbed_official | 315:1d806f4588f1 | 578 | D32 = p71, // J14-3 n/p S6-6 n/p |
mbed_official | 315:1d806f4588f1 | 579 | D33 = p72, // J14-4 n/p S7-4 n/p |
mbed_official | 315:1d806f4588f1 | 580 | D34 = p73, // J14-5 n/p S6-5 n/p |
mbed_official | 315:1d806f4588f1 | 581 | D35 = p74, // J14-6 n/p S6-4 n/p |
mbed_official | 315:1d806f4588f1 | 582 | D36 = p75, // J14-7 n/p S10-6 n/p |
mbed_official | 315:1d806f4588f1 | 583 | D37 = p76, // J14-8 n/p S10-7 n/p |
mbed_official | 315:1d806f4588f1 | 584 | D38 = p77, // J14-9 n/p S10-8 n/p |
mbed_official | 315:1d806f4588f1 | 585 | D39 = p78, // J14-10 n/p S10-9 n/p |
mbed_official | 315:1d806f4588f1 | 586 | |
mbed_official | 315:1d806f4588f1 | 587 | D40 = p47, // J11-1 n/p S7-5 n/p |
mbed_official | 315:1d806f4588f1 | 588 | D41 = p48, // J11-2 n/p S6-7 n/p |
mbed_official | 315:1d806f4588f1 | 589 | D42 = p49, // J11-3 n/p S6-8 n/p |
mbed_official | 315:1d806f4588f1 | 590 | D43 = p50, // J11-4 n/p S6-9 n/p |
mbed_official | 315:1d806f4588f1 | 591 | D46 = p53, // J11-7 n/p S7-7 n/p |
mbed_official | 315:1d806f4588f1 | 592 | D47 = p54, // J11-8 n/p S7-3 n/p |
mbed_official | 315:1d806f4588f1 | 593 | |
mbed_official | 315:1d806f4588f1 | 594 | D52 = p57, // J12-3 n/p S8-6 n/p |
mbed_official | 315:1d806f4588f1 | 595 | D53 = p58, // J12-4 n/p S8-3 n/p |
mbed_official | 315:1d806f4588f1 | 596 | D54 = p59, // J12-5 n/p S7-8 n/p |
mbed_official | 315:1d806f4588f1 | 597 | D55 = p60, // J12-6 n/p S9-3 n/p |
mbed_official | 315:1d806f4588f1 | 598 | |
mbed_official | 315:1d806f4588f1 | 599 | A6 = p55, // J12-1 n/p n/a n/a |
mbed_official | 315:1d806f4588f1 | 600 | A7 = p56, // J12-2 n/p n/a n/a |
mbed_official | 315:1d806f4588f1 | 601 | |
mbed_official | 315:1d806f4588f1 | 602 | // User interfaces: LEDs, buttons |
mbed_official | 315:1d806f4588f1 | 603 | // 210E 210 200E 200 |
mbed_official | 315:1d806f4588f1 | 604 | // ---- ---- ---- ---- |
mbed_official | 315:1d806f4588f1 | 605 | LED1 = P6_11, // 210/210E/200e/200 |
mbed_official | 315:1d806f4588f1 | 606 | LED2 = P2_5, // 210/210E/200e/200 |
mbed_official | 315:1d806f4588f1 | 607 | LED3 = P6_1, // 210/210E only S6-3 n/p |
mbed_official | 315:1d806f4588f1 | 608 | LED4 = P6_2, // 210/210E only S7-6 n/p |
mbed_official | 315:1d806f4588f1 | 609 | |
mbed_official | 315:1d806f4588f1 | 610 | LED_YELLOW = LED1, |
mbed_official | 315:1d806f4588f1 | 611 | LED_GREEN = LED2, |
mbed_official | 315:1d806f4588f1 | 612 | LED_RED = LED3, |
mbed_official | 315:1d806f4588f1 | 613 | LED_BLUE = LED4, |
mbed_official | 315:1d806f4588f1 | 614 | |
mbed_official | 315:1d806f4588f1 | 615 | BTN1 = P2_7, |
mbed_official | 315:1d806f4588f1 | 616 | |
mbed_official | 315:1d806f4588f1 | 617 | // Serial pins - UART, SPI, I2C |
mbed_official | 315:1d806f4588f1 | 618 | // 210E 210 200E 200 |
mbed_official | 315:1d806f4588f1 | 619 | // ---- ---- ---- ---- |
mbed_official | 315:1d806f4588f1 | 620 | UART0_TX = P6_4, // J9-2 J9-2 S2-4 S2-4 |
mbed_official | 315:1d806f4588f1 | 621 | UART0_RX = P6_5, // J9-1 J9-1 S2-5 S2-5 |
mbed_official | 315:1d806f4588f1 | 622 | UART1_TX = P5_6, // XBEE n/p S5-4/XBEE S5-4 |
mbed_official | 315:1d806f4588f1 | 623 | UART1_RX = P1_14, // XBEE n/p S5-5/XBEE S5-5 |
mbed_official | 315:1d806f4588f1 | 624 | UART2_TX = P2_10, // MBEDHDK MBEDHDK S10-4 n/p |
mbed_official | 315:1d806f4588f1 | 625 | UART2_RX = P2_11, // MBEDHDK MBEDHDK S10-5 n/p |
mbed_official | 315:1d806f4588f1 | 626 | UART3_TX = P2_3, // J10-9 n/p S4-8 S4-8 |
mbed_official | 315:1d806f4588f1 | 627 | UART3_RX = P2_4, // J10-10 n/p S4-9 S4-9 |
mbed_official | 315:1d806f4588f1 | 628 | |
mbed_official | 315:1d806f4588f1 | 629 | COM1_TX = UART0_TX, |
mbed_official | 315:1d806f4588f1 | 630 | COM1_RX = UART0_RX, |
mbed_official | 315:1d806f4588f1 | 631 | COM2_TX = UART1_TX, |
mbed_official | 315:1d806f4588f1 | 632 | COM2_RX = UART1_RX, |
mbed_official | 315:1d806f4588f1 | 633 | COM3_TX = UART2_TX, |
mbed_official | 315:1d806f4588f1 | 634 | COM3_RX = UART2_RX, |
mbed_official | 315:1d806f4588f1 | 635 | COM4_TX = UART3_TX, |
mbed_official | 315:1d806f4588f1 | 636 | COM4_RX = UART3_RX, |
mbed_official | 315:1d806f4588f1 | 637 | |
mbed_official | 315:1d806f4588f1 | 638 | // 210E 210 200E 200 |
mbed_official | 315:1d806f4588f1 | 639 | // ---- ---- ---- ---- |
mbed_official | 315:1d806f4588f1 | 640 | SPI0_SCK = P3_0, // J16-4 n/p S1-9 S1-9 |
mbed_official | 315:1d806f4588f1 | 641 | SPI0_MISO = P1_1, // J16-3 n/p S1-8 S1-8 |
mbed_official | 315:1d806f4588f1 | 642 | SPI0_MOSI = P1_2, // J16-2 n/p S1-7 S1-7 |
mbed_official | 315:1d806f4588f1 | 643 | SPI0_SSEL = P1_0, // J16-1 n/p S1-6 S1-6 |
mbed_official | 315:1d806f4588f1 | 644 | SPI1_SCK = PF_4, // J14-10 n/p S10-9 n/p |
mbed_official | 315:1d806f4588f1 | 645 | SPI1_MISO = P1_3, // J14-9 n/p S10-8 n/p |
mbed_official | 315:1d806f4588f1 | 646 | SPI1_MOSI = P1_4, // J14-8 n/p S10-7 n/p |
mbed_official | 315:1d806f4588f1 | 647 | SPI1_SSEL = P1_5, // J14-7 n/p S10-6 n/p |
mbed_official | 315:1d806f4588f1 | 648 | |
mbed_official | 315:1d806f4588f1 | 649 | I2C0_SDA = P_DED, // J15-3 J15-3 S8-8 n/p |
mbed_official | 315:1d806f4588f1 | 650 | I2C0_SCL = P_DED, // J15-1 J15-1 S8-9 n/p |
mbed_official | 315:1d806f4588f1 | 651 | I2C1_SDA = P2_3, // J10-9 J10-9 S4-8 S4-8 |
mbed_official | 315:1d806f4588f1 | 652 | I2C1_SCL = P2_4, // J10-10 J10-10 S4-9 S4-9 |
mbed_official | 315:1d806f4588f1 | 653 | |
mbed_official | 315:1d806f4588f1 | 654 | // Analog pins |
mbed_official | 315:1d806f4588f1 | 655 | ADC0 = P7_4, // J8-1 J8-1 S4-3 S4-3 |
mbed_official | 315:1d806f4588f1 | 656 | ADC1 = P7_5, // J8-2 J8-2 S4-4 S4-4 |
mbed_official | 315:1d806f4588f1 | 657 | ADC2 = P4_1, // J8-3 J8-3 S3-4 S3-4 |
mbed_official | 315:1d806f4588f1 | 658 | ADC3 = P7_7, // J8-4 J8-4 S3-4 S3-4 |
mbed_official | 315:1d806f4588f1 | 659 | ADC4 = P4_3, // J8-5* J8-5* S3-3 S3-3 |
mbed_official | 315:1d806f4588f1 | 660 | ADC5 = PF_8, // J8-6** J8-6** S1-5 S1-5 |
mbed_official | 315:1d806f4588f1 | 661 | ADC6 = PF_10, // J12-1 n/p n/a n/a |
mbed_official | 315:1d806f4588f1 | 662 | ADC7 = PF_7, // J12-2 n/p n/a n/a |
mbed_official | 315:1d806f4588f1 | 663 | DAC0 = P4_4, // J8-6* J8-6* S3-5 S3-5 |
mbed_official | 315:1d806f4588f1 | 664 | // (*) if DAC0 is configured, ADC4 is not available |
mbed_official | 315:1d806f4588f1 | 665 | // (**) ADC5 requires JP2 mod |
mbed_official | 315:1d806f4588f1 | 666 | |
mbed_official | 315:1d806f4588f1 | 667 | // USB pins |
mbed_official | 315:1d806f4588f1 | 668 | // 210E 210 200E 200 |
mbed_official | 315:1d806f4588f1 | 669 | // ---- ---- ---- ---- |
mbed_official | 315:1d806f4588f1 | 670 | USBTX = UART2_TX, // MBEDHDK MBEDHDK S10-4 n/p |
mbed_official | 315:1d806f4588f1 | 671 | USBRX = UART2_RX, // MBEDHDK MBEDHDK S10-5 n/p |
mbed_official | 315:1d806f4588f1 | 672 | |
mbed_official | 315:1d806f4588f1 | 673 | // PWM pins |
mbed_official | 315:1d806f4588f1 | 674 | // 210E 210 200E 200 |
mbed_official | 315:1d806f4588f1 | 675 | // ---- ---- ---- ---- |
mbed_official | 315:1d806f4588f1 | 676 | PWM1 = P1_7, // J9-3 J9-3 S2-3 S2-3 |
mbed_official | 315:1d806f4588f1 | 677 | PWM2 = P7_6, // J9-8 J9-8 S4-6 S4-6 |
mbed_official | 315:1d806f4588f1 | 678 | PWM3 = P6_12, // J10-1 J10-1 S10-3 n/p |
mbed_official | 315:1d806f4588f1 | 679 | PWM4 = P4_6, // J10-3 J10-3 S2-6 S2-6 |
mbed_official | 315:1d806f4588f1 | 680 | PWM5 = P7_5, // J8-2 J8-2 S4-4 S4-4 |
mbed_official | 315:1d806f4588f1 | 681 | PWM6 = P4_1, // J8-3 J8-3 S3-4 S3-4 |
mbed_official | 315:1d806f4588f1 | 682 | PWM7 = P7_7, // J8-4 J8-4 S4-5 S4-5 |
mbed_official | 315:1d806f4588f1 | 683 | PWM8 = P2_8, // J12-4 n/p S8-3 n/p |
mbed_official | 315:1d806f4588f1 | 684 | PWM9 = P2_9, // J12-6 n/p S9-3 n/p |
mbed_official | 315:1d806f4588f1 | 685 | PWM10 = P7_1, // J13-5 n/p S9-8 n/p |
mbed_official | 315:1d806f4588f1 | 686 | PWM11 = P7_0, // J13-6 n/p S9-9 n/p |
mbed_official | 315:1d806f4588f1 | 687 | PWM12 = P1_5, // J14-7 n/p S10-6 n/p |
mbed_official | 315:1d806f4588f1 | 688 | |
mbed_official | 315:1d806f4588f1 | 689 | // ---------- End of Micromint Bambino ---------- |
mbed_official | 315:1d806f4588f1 | 690 | } PinName; |
mbed_official | 315:1d806f4588f1 | 691 | |
mbed_official | 315:1d806f4588f1 | 692 | typedef enum { |
mbed_official | 315:1d806f4588f1 | 693 | PullUp = 0, |
mbed_official | 315:1d806f4588f1 | 694 | PullDown = 3, |
mbed_official | 315:1d806f4588f1 | 695 | PullNone = 2, |
mbed_official | 315:1d806f4588f1 | 696 | Repeater = 1, |
mbed_official | 315:1d806f4588f1 | 697 | OpenDrain = 4, |
mbed_official | 315:1d806f4588f1 | 698 | PullDefault = PullDown |
mbed_official | 315:1d806f4588f1 | 699 | } PinMode; |
mbed_official | 315:1d806f4588f1 | 700 | |
mbed_official | 315:1d806f4588f1 | 701 | #ifdef __cplusplus |
mbed_official | 315:1d806f4588f1 | 702 | } |
mbed_official | 315:1d806f4588f1 | 703 | #endif |
mbed_official | 315:1d806f4588f1 | 704 | |
mbed_official | 315:1d806f4588f1 | 705 | #endif |