Mouse code for the MacroRat
mbed-dev/targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/PinNames.h@18:6a4db94011d3, 2017-05-14 (annotated)
- Committer:
- sahilmgandhi
- Date:
- Sun May 14 23:18:57 2017 +0000
- Revision:
- 18:6a4db94011d3
Publishing again
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sahilmgandhi | 18:6a4db94011d3 | 1 | /* mbed Microcontroller Library |
sahilmgandhi | 18:6a4db94011d3 | 2 | * Copyright (c) 2006-2013 ARM Limited |
sahilmgandhi | 18:6a4db94011d3 | 3 | * |
sahilmgandhi | 18:6a4db94011d3 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
sahilmgandhi | 18:6a4db94011d3 | 5 | * you may not use this file except in compliance with the License. |
sahilmgandhi | 18:6a4db94011d3 | 6 | * You may obtain a copy of the License at |
sahilmgandhi | 18:6a4db94011d3 | 7 | * |
sahilmgandhi | 18:6a4db94011d3 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
sahilmgandhi | 18:6a4db94011d3 | 9 | * |
sahilmgandhi | 18:6a4db94011d3 | 10 | * Unless required by applicable law or agreed to in writing, software |
sahilmgandhi | 18:6a4db94011d3 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
sahilmgandhi | 18:6a4db94011d3 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
sahilmgandhi | 18:6a4db94011d3 | 13 | * See the License for the specific language governing permissions and |
sahilmgandhi | 18:6a4db94011d3 | 14 | * limitations under the License. |
sahilmgandhi | 18:6a4db94011d3 | 15 | */ |
sahilmgandhi | 18:6a4db94011d3 | 16 | |
sahilmgandhi | 18:6a4db94011d3 | 17 | #ifndef MBED_PINNAMES_H |
sahilmgandhi | 18:6a4db94011d3 | 18 | #define MBED_PINNAMES_H |
sahilmgandhi | 18:6a4db94011d3 | 19 | |
sahilmgandhi | 18:6a4db94011d3 | 20 | #include "cmsis.h" |
sahilmgandhi | 18:6a4db94011d3 | 21 | |
sahilmgandhi | 18:6a4db94011d3 | 22 | #ifdef __cplusplus |
sahilmgandhi | 18:6a4db94011d3 | 23 | extern "C" { |
sahilmgandhi | 18:6a4db94011d3 | 24 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 25 | |
sahilmgandhi | 18:6a4db94011d3 | 26 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 27 | PIN_INPUT, |
sahilmgandhi | 18:6a4db94011d3 | 28 | PIN_OUTPUT |
sahilmgandhi | 18:6a4db94011d3 | 29 | } PinDirection; |
sahilmgandhi | 18:6a4db94011d3 | 30 | |
sahilmgandhi | 18:6a4db94011d3 | 31 | #define PORT_SHIFT 5 |
sahilmgandhi | 18:6a4db94011d3 | 32 | #define NO_GPIO 15 |
sahilmgandhi | 18:6a4db94011d3 | 33 | #define NO_PORT 0xFF |
sahilmgandhi | 18:6a4db94011d3 | 34 | |
sahilmgandhi | 18:6a4db94011d3 | 35 | // On the LPC43xx the MCU pin name and the GPIO pin name are not the same. |
sahilmgandhi | 18:6a4db94011d3 | 36 | // Encode SCU and GPIO offsets as a pin identifier |
sahilmgandhi | 18:6a4db94011d3 | 37 | #define MBED_PIN(group, num, port, pin) ((SCU_OFF(group,num) << 16) + GPIO_OFF(port,pin)) |
sahilmgandhi | 18:6a4db94011d3 | 38 | |
sahilmgandhi | 18:6a4db94011d3 | 39 | // Decode pin identifier into register, port and pin values |
sahilmgandhi | 18:6a4db94011d3 | 40 | #define MBED_SCU_REG(MBED_PIN) (LPC_SCU_BASE + (MBED_PIN >> 16)) |
sahilmgandhi | 18:6a4db94011d3 | 41 | #define MBED_GPIO_REG(MBED_PIN) (LPC_GPIO_PORT_BASE + 0x2000 + ((MBED_PIN >> (PORT_SHIFT - 2)) & 0x0000003C)) |
sahilmgandhi | 18:6a4db94011d3 | 42 | #define MBED_GPIO_PORT(MBED_PIN) ((MBED_PIN >> PORT_SHIFT) & 0x0000000F) |
sahilmgandhi | 18:6a4db94011d3 | 43 | #define MBED_GPIO_PIN(MBED_PIN) (MBED_PIN & 0x0000001F) |
sahilmgandhi | 18:6a4db94011d3 | 44 | |
sahilmgandhi | 18:6a4db94011d3 | 45 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 46 | // LPC43xx Pin Names |
sahilmgandhi | 18:6a4db94011d3 | 47 | // All pins defined. Package determines which are available. |
sahilmgandhi | 18:6a4db94011d3 | 48 | // LBGA256 TFBGA180 TFBGA100 LQFP208 LQFP144 |
sahilmgandhi | 18:6a4db94011d3 | 49 | // GPIO0 [15:0] [15:0] [15:6] [15:0] [15:0] |
sahilmgandhi | 18:6a4db94011d3 | 50 | // [4:0] |
sahilmgandhi | 18:6a4db94011d3 | 51 | // GPIO1 [15:0] [15:0] [15:0] [15:0] [15:0] |
sahilmgandhi | 18:6a4db94011d3 | 52 | // GPIO2 [15:0] [15:0] [15:0] [15:0] |
sahilmgandhi | 18:6a4db94011d3 | 53 | // GPIO3 [15:0] [15:0] [7] [15:0] [15:0] |
sahilmgandhi | 18:6a4db94011d3 | 54 | // [5:3] |
sahilmgandhi | 18:6a4db94011d3 | 55 | // [1:0] |
sahilmgandhi | 18:6a4db94011d3 | 56 | // GPIO4 [15:0] [15:0] [15:0] [11] |
sahilmgandhi | 18:6a4db94011d3 | 57 | // GPIO5 [26:0] [26:0] [11:0] [25:0] [18] |
sahilmgandhi | 18:6a4db94011d3 | 58 | // [16:0] |
sahilmgandhi | 18:6a4db94011d3 | 59 | // GPIO6 [30:0] [30:28] [30:20] |
sahilmgandhi | 18:6a4db94011d3 | 60 | // [26:25] [5:0] |
sahilmgandhi | 18:6a4db94011d3 | 61 | // GPIO7 [25:0] [4:0] [25:23] |
sahilmgandhi | 18:6a4db94011d3 | 62 | // [21:17] |
sahilmgandhi | 18:6a4db94011d3 | 63 | // --- --- --- --- --- |
sahilmgandhi | 18:6a4db94011d3 | 64 | // Total 164 117 49 131 83 |
sahilmgandhi | 18:6a4db94011d3 | 65 | |
sahilmgandhi | 18:6a4db94011d3 | 66 | // Groups 0x00 - 0x0F : Digital pins |
sahilmgandhi | 18:6a4db94011d3 | 67 | // * Digital pins support up to 8 functions |
sahilmgandhi | 18:6a4db94011d3 | 68 | // Use func=0 for GPIO0-GPIO4, func=4 for GPIO5-GPIO7 |
sahilmgandhi | 18:6a4db94011d3 | 69 | // * High-drive pins default to 4 mA but can support 8, 14, 20 mA |
sahilmgandhi | 18:6a4db94011d3 | 70 | P0_0 = MBED_PIN(0x00, 0, 0, 0), // GPIO0[0] |
sahilmgandhi | 18:6a4db94011d3 | 71 | P0_1 = MBED_PIN(0x00, 1, 0, 1), // GPIO0[1] |
sahilmgandhi | 18:6a4db94011d3 | 72 | |
sahilmgandhi | 18:6a4db94011d3 | 73 | P1_0 = MBED_PIN(0x01, 0, 0, 4), // GPIO0[4] |
sahilmgandhi | 18:6a4db94011d3 | 74 | P1_1 = MBED_PIN(0x01, 1, 0, 8), // GPIO0[8] |
sahilmgandhi | 18:6a4db94011d3 | 75 | P1_2 = MBED_PIN(0x01, 2, 0, 9), // GPIO0[9] |
sahilmgandhi | 18:6a4db94011d3 | 76 | P1_3 = MBED_PIN(0x01, 3, 0, 10), // GPIO0[10] |
sahilmgandhi | 18:6a4db94011d3 | 77 | P1_4 = MBED_PIN(0x01, 4, 0, 11), // GPIO0[11] |
sahilmgandhi | 18:6a4db94011d3 | 78 | P1_5 = MBED_PIN(0x01, 5, 1, 8), // GPIO1[8] |
sahilmgandhi | 18:6a4db94011d3 | 79 | P1_6 = MBED_PIN(0x01, 6, 1, 9), // GPIO1[9] |
sahilmgandhi | 18:6a4db94011d3 | 80 | P1_7 = MBED_PIN(0x01, 7, 1, 0), // GPIO1[0] |
sahilmgandhi | 18:6a4db94011d3 | 81 | P1_8 = MBED_PIN(0x01, 8, 1, 1), // GPIO1[1] |
sahilmgandhi | 18:6a4db94011d3 | 82 | P1_9 = MBED_PIN(0x01, 9, 1, 2), // GPIO1[2] |
sahilmgandhi | 18:6a4db94011d3 | 83 | P1_10 = MBED_PIN(0x01, 10, 1, 3), // GPIO1[3] |
sahilmgandhi | 18:6a4db94011d3 | 84 | P1_11 = MBED_PIN(0x01, 11, 1, 4), // GPIO1[4] |
sahilmgandhi | 18:6a4db94011d3 | 85 | P1_12 = MBED_PIN(0x01, 12, 1, 5), // GPIO1[5] |
sahilmgandhi | 18:6a4db94011d3 | 86 | P1_13 = MBED_PIN(0x01, 13, 1, 6), // GPIO1[6] |
sahilmgandhi | 18:6a4db94011d3 | 87 | P1_14 = MBED_PIN(0x01, 14, 1, 7), // GPIO1[7] |
sahilmgandhi | 18:6a4db94011d3 | 88 | P1_15 = MBED_PIN(0x01, 15, 0, 2), // GPIO0[2] |
sahilmgandhi | 18:6a4db94011d3 | 89 | P1_16 = MBED_PIN(0x01, 16, 0, 3), // GPIO0[3] |
sahilmgandhi | 18:6a4db94011d3 | 90 | P1_17 = MBED_PIN(0x01, 17, 0, 12), // GPIO0[12] high-drive |
sahilmgandhi | 18:6a4db94011d3 | 91 | P1_18 = MBED_PIN(0x01, 18, 0, 13), // GPIO0[13] |
sahilmgandhi | 18:6a4db94011d3 | 92 | P1_19 = MBED_PIN(0x01, 19, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 93 | P1_20 = MBED_PIN(0x01, 20, 0, 15), // GPIO0[15] |
sahilmgandhi | 18:6a4db94011d3 | 94 | |
sahilmgandhi | 18:6a4db94011d3 | 95 | P2_0 = MBED_PIN(0x02, 0, 5, 0), // GPIO5[0] |
sahilmgandhi | 18:6a4db94011d3 | 96 | P2_1 = MBED_PIN(0x02, 1, 5, 1), // GPIO5[1] |
sahilmgandhi | 18:6a4db94011d3 | 97 | P2_2 = MBED_PIN(0x02, 2, 5, 2), // GPIO5[2] |
sahilmgandhi | 18:6a4db94011d3 | 98 | P2_3 = MBED_PIN(0x02, 3, 5, 3), // GPIO5[3] high-drive |
sahilmgandhi | 18:6a4db94011d3 | 99 | P2_4 = MBED_PIN(0x02, 4, 5, 4), // GPIO5[4] high-drive |
sahilmgandhi | 18:6a4db94011d3 | 100 | P2_5 = MBED_PIN(0x02, 5, 5, 5), // GPIO5[5] high-drive |
sahilmgandhi | 18:6a4db94011d3 | 101 | P2_6 = MBED_PIN(0x02, 6, 5, 6), // GPIO5[6] |
sahilmgandhi | 18:6a4db94011d3 | 102 | P2_7 = MBED_PIN(0x02, 7, 0, 7), // GPIO0[7] |
sahilmgandhi | 18:6a4db94011d3 | 103 | P2_8 = MBED_PIN(0x02, 8, 5, 7), // GPIO5[7] |
sahilmgandhi | 18:6a4db94011d3 | 104 | P2_9 = MBED_PIN(0x02, 9, 1, 10), // GPIO1[10] |
sahilmgandhi | 18:6a4db94011d3 | 105 | P2_10 = MBED_PIN(0x02, 10, 0, 14), // GPIO0[14] |
sahilmgandhi | 18:6a4db94011d3 | 106 | P2_11 = MBED_PIN(0x02, 11, 1, 11), // GPIO1[11] |
sahilmgandhi | 18:6a4db94011d3 | 107 | P2_12 = MBED_PIN(0x02, 12, 1, 12), // GPIO1[12] |
sahilmgandhi | 18:6a4db94011d3 | 108 | P2_13 = MBED_PIN(0x02, 13, 1, 13), // GPIO1[13] |
sahilmgandhi | 18:6a4db94011d3 | 109 | |
sahilmgandhi | 18:6a4db94011d3 | 110 | P3_0 = MBED_PIN(0x03, 0, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 111 | P3_1 = MBED_PIN(0x03, 1, 5, 8), // GPIO5[8] |
sahilmgandhi | 18:6a4db94011d3 | 112 | P3_2 = MBED_PIN(0x03, 2, 5, 9), // GPIO5[9] |
sahilmgandhi | 18:6a4db94011d3 | 113 | P3_3 = MBED_PIN(0x03, 3, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 114 | P3_4 = MBED_PIN(0x03, 4, 1, 14), // GPIO1[14] |
sahilmgandhi | 18:6a4db94011d3 | 115 | P3_5 = MBED_PIN(0x03, 5, 1, 15), // GPIO1[15] |
sahilmgandhi | 18:6a4db94011d3 | 116 | P3_6 = MBED_PIN(0x03, 6, 0, 6), // GPIO0[6] |
sahilmgandhi | 18:6a4db94011d3 | 117 | P3_7 = MBED_PIN(0x03, 7, 5, 10), // GPIO5[10] |
sahilmgandhi | 18:6a4db94011d3 | 118 | P3_8 = MBED_PIN(0x03, 8, 5, 11), // GPIO5[11] |
sahilmgandhi | 18:6a4db94011d3 | 119 | |
sahilmgandhi | 18:6a4db94011d3 | 120 | P4_0 = MBED_PIN(0x04, 0, 2, 0), // GPIO2[0] |
sahilmgandhi | 18:6a4db94011d3 | 121 | P4_1 = MBED_PIN(0x04, 1, 2, 1), // GPIO2[1] |
sahilmgandhi | 18:6a4db94011d3 | 122 | P4_2 = MBED_PIN(0x04, 2, 2, 2), // GPIO2[2] |
sahilmgandhi | 18:6a4db94011d3 | 123 | P4_3 = MBED_PIN(0x04, 3, 2, 3), // GPIO2[3] |
sahilmgandhi | 18:6a4db94011d3 | 124 | P4_4 = MBED_PIN(0x04, 4, 2, 4), // GPIO2[4] |
sahilmgandhi | 18:6a4db94011d3 | 125 | P4_5 = MBED_PIN(0x04, 5, 2, 5), // GPIO2[5] |
sahilmgandhi | 18:6a4db94011d3 | 126 | P4_6 = MBED_PIN(0x04, 6, 2, 6), // GPIO2[6] |
sahilmgandhi | 18:6a4db94011d3 | 127 | P4_7 = MBED_PIN(0x04, 7, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 128 | P4_8 = MBED_PIN(0x04, 8, 5, 12), // GPIO5[12] |
sahilmgandhi | 18:6a4db94011d3 | 129 | P4_9 = MBED_PIN(0x04, 9, 5, 13), // GPIO5[13] |
sahilmgandhi | 18:6a4db94011d3 | 130 | P4_10 = MBED_PIN(0x04, 10, 5, 14), // GPIO5[14] |
sahilmgandhi | 18:6a4db94011d3 | 131 | |
sahilmgandhi | 18:6a4db94011d3 | 132 | P5_0 = MBED_PIN(0x05, 0, 2, 9), // GPIO2[9] |
sahilmgandhi | 18:6a4db94011d3 | 133 | P5_1 = MBED_PIN(0x05, 1, 2, 10), // GPIO2[10] |
sahilmgandhi | 18:6a4db94011d3 | 134 | P5_2 = MBED_PIN(0x05, 2, 2, 11), // GPIO2[11] |
sahilmgandhi | 18:6a4db94011d3 | 135 | P5_3 = MBED_PIN(0x05, 3, 2, 12), // GPIO2[12] |
sahilmgandhi | 18:6a4db94011d3 | 136 | P5_4 = MBED_PIN(0x05, 4, 2, 13), // GPIO2[13] |
sahilmgandhi | 18:6a4db94011d3 | 137 | P5_5 = MBED_PIN(0x05, 5, 2, 14), // GPIO2[14] |
sahilmgandhi | 18:6a4db94011d3 | 138 | P5_6 = MBED_PIN(0x05, 6, 2, 15), // GPIO2[15] |
sahilmgandhi | 18:6a4db94011d3 | 139 | P5_7 = MBED_PIN(0x05, 7, 2, 7), // GPIO2[7] |
sahilmgandhi | 18:6a4db94011d3 | 140 | |
sahilmgandhi | 18:6a4db94011d3 | 141 | P6_0 = MBED_PIN(0x06, 0, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 142 | P6_1 = MBED_PIN(0x06, 1, 3, 0), // GPIO3[0] |
sahilmgandhi | 18:6a4db94011d3 | 143 | P6_2 = MBED_PIN(0x06, 2, 3, 1), // GPIO3[1] |
sahilmgandhi | 18:6a4db94011d3 | 144 | P6_3 = MBED_PIN(0x06, 3, 3, 2), // GPIO3[2] |
sahilmgandhi | 18:6a4db94011d3 | 145 | P6_4 = MBED_PIN(0x06, 4, 3, 3), // GPIO3[3] |
sahilmgandhi | 18:6a4db94011d3 | 146 | P6_5 = MBED_PIN(0x06, 5, 3, 4), // GPIO3[4] |
sahilmgandhi | 18:6a4db94011d3 | 147 | P6_6 = MBED_PIN(0x06, 6, 0, 5), // GPIO0[5] |
sahilmgandhi | 18:6a4db94011d3 | 148 | P6_7 = MBED_PIN(0x06, 7, 5, 15), // GPIO5[15] |
sahilmgandhi | 18:6a4db94011d3 | 149 | P6_8 = MBED_PIN(0x06, 8, 5, 16), // GPIO5[16] |
sahilmgandhi | 18:6a4db94011d3 | 150 | P6_9 = MBED_PIN(0x06, 9, 3, 5), // GPIO3[5] |
sahilmgandhi | 18:6a4db94011d3 | 151 | P6_10 = MBED_PIN(0x06, 10, 3, 6), // GPIO3[6] |
sahilmgandhi | 18:6a4db94011d3 | 152 | P6_11 = MBED_PIN(0x06, 11, 3, 7), // GPIO3[7] |
sahilmgandhi | 18:6a4db94011d3 | 153 | P6_12 = MBED_PIN(0x06, 12, 2, 8), // GPIO2[8] |
sahilmgandhi | 18:6a4db94011d3 | 154 | |
sahilmgandhi | 18:6a4db94011d3 | 155 | P7_0 = MBED_PIN(0x07, 0, 3, 8), // GPIO3[8] |
sahilmgandhi | 18:6a4db94011d3 | 156 | P7_1 = MBED_PIN(0x07, 1, 3, 9), // GPIO3[9] |
sahilmgandhi | 18:6a4db94011d3 | 157 | P7_2 = MBED_PIN(0x07, 2, 3, 10), // GPIO3[10] |
sahilmgandhi | 18:6a4db94011d3 | 158 | P7_3 = MBED_PIN(0x07, 3, 3, 11), // GPIO3[11] |
sahilmgandhi | 18:6a4db94011d3 | 159 | P7_4 = MBED_PIN(0x07, 4, 3, 12), // GPIO3[12] |
sahilmgandhi | 18:6a4db94011d3 | 160 | P7_5 = MBED_PIN(0x07, 5, 3, 13), // GPIO3[13] |
sahilmgandhi | 18:6a4db94011d3 | 161 | P7_6 = MBED_PIN(0x07, 6, 3, 14), // GPIO3[14] |
sahilmgandhi | 18:6a4db94011d3 | 162 | P7_7 = MBED_PIN(0x07, 7, 3, 15), // GPIO3[15] |
sahilmgandhi | 18:6a4db94011d3 | 163 | |
sahilmgandhi | 18:6a4db94011d3 | 164 | P8_0 = MBED_PIN(0x08, 8, 4, 0), // GPIO4[0] high-drive |
sahilmgandhi | 18:6a4db94011d3 | 165 | P8_1 = MBED_PIN(0x09, 0, 4, 1), // GPIO4[1] high-drive |
sahilmgandhi | 18:6a4db94011d3 | 166 | P8_2 = MBED_PIN(0x09, 1, 4, 2), // GPIO4[2] high-drive |
sahilmgandhi | 18:6a4db94011d3 | 167 | P8_3 = MBED_PIN(0x09, 2, 4, 3), // GPIO4[3] |
sahilmgandhi | 18:6a4db94011d3 | 168 | P8_4 = MBED_PIN(0x08, 4, 4, 4), // GPIO4[4] |
sahilmgandhi | 18:6a4db94011d3 | 169 | P8_5 = MBED_PIN(0x08, 5, 4, 5), // GPIO4[5] |
sahilmgandhi | 18:6a4db94011d3 | 170 | P8_6 = MBED_PIN(0x08, 6, 4, 6), // GPIO4[6] |
sahilmgandhi | 18:6a4db94011d3 | 171 | P8_7 = MBED_PIN(0x08, 7, 4, 7), // GPIO4[7] |
sahilmgandhi | 18:6a4db94011d3 | 172 | P8_8 = MBED_PIN(0x08, 8, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 173 | |
sahilmgandhi | 18:6a4db94011d3 | 174 | P9_0 = MBED_PIN(0x09, 0, 4, 12), // GPIO4[12] |
sahilmgandhi | 18:6a4db94011d3 | 175 | P9_1 = MBED_PIN(0x09, 1, 4, 13), // GPIO4[13] |
sahilmgandhi | 18:6a4db94011d3 | 176 | P9_2 = MBED_PIN(0x09, 2, 4, 14), // GPIO4[14] |
sahilmgandhi | 18:6a4db94011d3 | 177 | P9_3 = MBED_PIN(0x09, 3, 4, 15), // GPIO4[15] |
sahilmgandhi | 18:6a4db94011d3 | 178 | P9_4 = MBED_PIN(0x09, 4, 5, 17), // GPIO5[17] |
sahilmgandhi | 18:6a4db94011d3 | 179 | P9_5 = MBED_PIN(0x09, 5, 5, 18), // GPIO5[18] |
sahilmgandhi | 18:6a4db94011d3 | 180 | P9_6 = MBED_PIN(0x09, 6, 4, 11), // GPIO4[11] |
sahilmgandhi | 18:6a4db94011d3 | 181 | |
sahilmgandhi | 18:6a4db94011d3 | 182 | PA_0 = MBED_PIN(0x0A, 0, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 183 | PA_1 = MBED_PIN(0x0A, 1, 4, 8), // GPIO4[8] high-drive |
sahilmgandhi | 18:6a4db94011d3 | 184 | PA_2 = MBED_PIN(0x0A, 2, 4, 9), // GPIO4[9] high-drive |
sahilmgandhi | 18:6a4db94011d3 | 185 | PA_3 = MBED_PIN(0x0A, 3, 4, 10), // GPIO4[10] high-drive |
sahilmgandhi | 18:6a4db94011d3 | 186 | PA_4 = MBED_PIN(0x0A, 4, 5, 19), // GPIO5[19] |
sahilmgandhi | 18:6a4db94011d3 | 187 | |
sahilmgandhi | 18:6a4db94011d3 | 188 | PB_0 = MBED_PIN(0x0B, 0, 5, 20), // GPIO5[20] |
sahilmgandhi | 18:6a4db94011d3 | 189 | PB_1 = MBED_PIN(0x0B, 1, 5, 21), // GPIO5[21] |
sahilmgandhi | 18:6a4db94011d3 | 190 | PB_2 = MBED_PIN(0x0B, 2, 5, 22), // GPIO5[22] |
sahilmgandhi | 18:6a4db94011d3 | 191 | PB_3 = MBED_PIN(0x0B, 3, 5, 23), // GPIO5[23] |
sahilmgandhi | 18:6a4db94011d3 | 192 | PB_4 = MBED_PIN(0x0B, 4, 5, 24), // GPIO5[24] |
sahilmgandhi | 18:6a4db94011d3 | 193 | PB_5 = MBED_PIN(0x0B, 5, 5, 25), // GPIO5[25] |
sahilmgandhi | 18:6a4db94011d3 | 194 | PB_6 = MBED_PIN(0x0B, 6, 5, 26), // GPIO5[26] |
sahilmgandhi | 18:6a4db94011d3 | 195 | |
sahilmgandhi | 18:6a4db94011d3 | 196 | PC_0 = MBED_PIN(0x0C, 0, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 197 | PC_1 = MBED_PIN(0x0C, 1, 6, 0), // GPIO6[0] |
sahilmgandhi | 18:6a4db94011d3 | 198 | PC_2 = MBED_PIN(0x0C, 2, 6, 1), // GPIO6[1] |
sahilmgandhi | 18:6a4db94011d3 | 199 | PC_3 = MBED_PIN(0x0C, 3, 6, 2), // GPIO6[2] |
sahilmgandhi | 18:6a4db94011d3 | 200 | PC_4 = MBED_PIN(0x0C, 4, 6, 3), // GPIO6[3] |
sahilmgandhi | 18:6a4db94011d3 | 201 | PC_5 = MBED_PIN(0x0C, 5, 6, 4), // GPIO6[4] |
sahilmgandhi | 18:6a4db94011d3 | 202 | PC_6 = MBED_PIN(0x0C, 6, 6, 5), // GPIO6[5] |
sahilmgandhi | 18:6a4db94011d3 | 203 | PC_7 = MBED_PIN(0x0C, 7, 6, 6), // GPIO6[6] |
sahilmgandhi | 18:6a4db94011d3 | 204 | PC_8 = MBED_PIN(0x0C, 8, 6, 7), // GPIO6[7] |
sahilmgandhi | 18:6a4db94011d3 | 205 | PC_9 = MBED_PIN(0x0C, 9, 6, 8), // GPIO6[8] |
sahilmgandhi | 18:6a4db94011d3 | 206 | PC_10 = MBED_PIN(0x0C, 10, 6, 9), // GPIO6[9] |
sahilmgandhi | 18:6a4db94011d3 | 207 | PC_11 = MBED_PIN(0x0C, 11, 6, 10), // GPIO6[10] |
sahilmgandhi | 18:6a4db94011d3 | 208 | PC_12 = MBED_PIN(0x0C, 12, 6, 11), // GPIO6[11] |
sahilmgandhi | 18:6a4db94011d3 | 209 | PC_13 = MBED_PIN(0x0C, 13, 6, 12), // GPIO6[12] |
sahilmgandhi | 18:6a4db94011d3 | 210 | PC_14 = MBED_PIN(0x0C, 14, 6, 13), // GPIO6[13] |
sahilmgandhi | 18:6a4db94011d3 | 211 | |
sahilmgandhi | 18:6a4db94011d3 | 212 | PD_0 = MBED_PIN(0x0D, 0, 6, 14), // GPIO6[14] |
sahilmgandhi | 18:6a4db94011d3 | 213 | PD_1 = MBED_PIN(0x0D, 1, 6, 15), // GPIO6[15] |
sahilmgandhi | 18:6a4db94011d3 | 214 | PD_2 = MBED_PIN(0x0D, 2, 6, 16), // GPIO6[16] |
sahilmgandhi | 18:6a4db94011d3 | 215 | PD_3 = MBED_PIN(0x0D, 3, 6, 17), // GPIO6[17] |
sahilmgandhi | 18:6a4db94011d3 | 216 | PD_4 = MBED_PIN(0x0D, 4, 6, 18), // GPIO6[18] |
sahilmgandhi | 18:6a4db94011d3 | 217 | PD_5 = MBED_PIN(0x0D, 5, 6, 19), // GPIO6[19] |
sahilmgandhi | 18:6a4db94011d3 | 218 | PD_6 = MBED_PIN(0x0D, 6, 6, 20), // GPIO6[20] |
sahilmgandhi | 18:6a4db94011d3 | 219 | PD_7 = MBED_PIN(0x0D, 7, 6, 21), // GPIO6[21] |
sahilmgandhi | 18:6a4db94011d3 | 220 | PD_8 = MBED_PIN(0x0D, 8, 6, 22), // GPIO6[22] |
sahilmgandhi | 18:6a4db94011d3 | 221 | PD_9 = MBED_PIN(0x0D, 9, 6, 23), // GPIO6[23] |
sahilmgandhi | 18:6a4db94011d3 | 222 | PD_10 = MBED_PIN(0x0D, 10, 6, 24), // GPIO6[24] |
sahilmgandhi | 18:6a4db94011d3 | 223 | PD_11 = MBED_PIN(0x0D, 11, 6, 25), // GPIO6[25] |
sahilmgandhi | 18:6a4db94011d3 | 224 | PD_12 = MBED_PIN(0x0D, 12, 6, 26), // GPIO6[26] |
sahilmgandhi | 18:6a4db94011d3 | 225 | PD_13 = MBED_PIN(0x0D, 13, 6, 27), // GPIO6[27] |
sahilmgandhi | 18:6a4db94011d3 | 226 | PD_14 = MBED_PIN(0x0D, 14, 6, 28), // GPIO6[28] |
sahilmgandhi | 18:6a4db94011d3 | 227 | PD_15 = MBED_PIN(0x0D, 15, 6, 29), // GPIO6[29] |
sahilmgandhi | 18:6a4db94011d3 | 228 | PD_16 = MBED_PIN(0x0D, 16, 6, 30), // GPIO6[30] |
sahilmgandhi | 18:6a4db94011d3 | 229 | |
sahilmgandhi | 18:6a4db94011d3 | 230 | PE_0 = MBED_PIN(0x0E, 0, 7, 0), // GPIO7[0] |
sahilmgandhi | 18:6a4db94011d3 | 231 | PE_1 = MBED_PIN(0x0E, 1, 7, 1), // GPIO7[1] |
sahilmgandhi | 18:6a4db94011d3 | 232 | PE_2 = MBED_PIN(0x0E, 2, 7, 2), // GPIO7[2] |
sahilmgandhi | 18:6a4db94011d3 | 233 | PE_3 = MBED_PIN(0x0E, 3, 7, 3), // GPIO7[3] |
sahilmgandhi | 18:6a4db94011d3 | 234 | PE_4 = MBED_PIN(0x0E, 4, 7, 4), // GPIO7[4] |
sahilmgandhi | 18:6a4db94011d3 | 235 | PE_5 = MBED_PIN(0x0E, 5, 7, 5), // GPIO7[5] |
sahilmgandhi | 18:6a4db94011d3 | 236 | PE_6 = MBED_PIN(0x0E, 6, 7, 6), // GPIO7[6] |
sahilmgandhi | 18:6a4db94011d3 | 237 | PE_7 = MBED_PIN(0x0E, 7, 7, 7), // GPIO7[7] |
sahilmgandhi | 18:6a4db94011d3 | 238 | PE_8 = MBED_PIN(0x0E, 8, 7, 8), // GPIO7[8] |
sahilmgandhi | 18:6a4db94011d3 | 239 | PE_9 = MBED_PIN(0x0E, 9, 7, 9), // GPIO7[9] |
sahilmgandhi | 18:6a4db94011d3 | 240 | PE_10 = MBED_PIN(0x0E, 10, 7, 10), // GPIO7[10] |
sahilmgandhi | 18:6a4db94011d3 | 241 | PE_11 = MBED_PIN(0x0E, 11, 7, 11), // GPIO7[11] |
sahilmgandhi | 18:6a4db94011d3 | 242 | PE_12 = MBED_PIN(0x0E, 12, 7, 12), // GPIO7[12] |
sahilmgandhi | 18:6a4db94011d3 | 243 | PE_13 = MBED_PIN(0x0E, 13, 7, 13), // GPIO7[13] |
sahilmgandhi | 18:6a4db94011d3 | 244 | PE_14 = MBED_PIN(0x0E, 14, 7, 14), // GPIO7[14] |
sahilmgandhi | 18:6a4db94011d3 | 245 | PE_15 = MBED_PIN(0x0E, 15, 7, 15), // GPIO7[15] |
sahilmgandhi | 18:6a4db94011d3 | 246 | |
sahilmgandhi | 18:6a4db94011d3 | 247 | PF_0 = MBED_PIN(0x0F, 0, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 248 | PF_1 = MBED_PIN(0x0F, 1, 7, 16), // GPIO7[16] |
sahilmgandhi | 18:6a4db94011d3 | 249 | PF_2 = MBED_PIN(0x0F, 2, 7, 17), // GPIO7[17] |
sahilmgandhi | 18:6a4db94011d3 | 250 | PF_3 = MBED_PIN(0x0F, 3, 7, 18), // GPIO7[18] |
sahilmgandhi | 18:6a4db94011d3 | 251 | PF_4 = MBED_PIN(0x0F, 4, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 252 | PF_5 = MBED_PIN(0x0F, 5, 7, 19), // GPIO7[19] |
sahilmgandhi | 18:6a4db94011d3 | 253 | PF_6 = MBED_PIN(0x0F, 6, 7, 20), // GPIO7[20] |
sahilmgandhi | 18:6a4db94011d3 | 254 | PF_7 = MBED_PIN(0x0F, 7, 7, 21), // GPIO7[21] |
sahilmgandhi | 18:6a4db94011d3 | 255 | PF_8 = MBED_PIN(0x0F, 8, 7, 22), // GPIO7[22] |
sahilmgandhi | 18:6a4db94011d3 | 256 | PF_9 = MBED_PIN(0x0F, 9, 7, 23), // GPIO7[23] |
sahilmgandhi | 18:6a4db94011d3 | 257 | PF_10 = MBED_PIN(0x0F, 10, 7, 24), // GPIO7[24] |
sahilmgandhi | 18:6a4db94011d3 | 258 | PF_11 = MBED_PIN(0x0F, 11, 7, 25), // GPIO7[25] |
sahilmgandhi | 18:6a4db94011d3 | 259 | |
sahilmgandhi | 18:6a4db94011d3 | 260 | // GPIO pins from MCU pins |
sahilmgandhi | 18:6a4db94011d3 | 261 | GPIO0_0 = P0_0, |
sahilmgandhi | 18:6a4db94011d3 | 262 | GPIO0_1 = P0_1 , |
sahilmgandhi | 18:6a4db94011d3 | 263 | GPIO0_2 = P1_15, |
sahilmgandhi | 18:6a4db94011d3 | 264 | GPIO0_3 = P1_16, |
sahilmgandhi | 18:6a4db94011d3 | 265 | GPIO0_4 = P1_0, |
sahilmgandhi | 18:6a4db94011d3 | 266 | GPIO0_5 = P6_6, |
sahilmgandhi | 18:6a4db94011d3 | 267 | GPIO0_6 = P3_6, |
sahilmgandhi | 18:6a4db94011d3 | 268 | GPIO0_7 = P2_7, |
sahilmgandhi | 18:6a4db94011d3 | 269 | GPIO0_8 = P1_1, |
sahilmgandhi | 18:6a4db94011d3 | 270 | GPIO0_9 = P1_2, |
sahilmgandhi | 18:6a4db94011d3 | 271 | GPIO0_10 = P1_3, |
sahilmgandhi | 18:6a4db94011d3 | 272 | GPIO0_11 = P1_4, |
sahilmgandhi | 18:6a4db94011d3 | 273 | GPIO0_12 = P1_17, |
sahilmgandhi | 18:6a4db94011d3 | 274 | GPIO0_13 = P1_18, |
sahilmgandhi | 18:6a4db94011d3 | 275 | GPIO0_14 = P2_10, |
sahilmgandhi | 18:6a4db94011d3 | 276 | GPIO0_15 = P1_20, |
sahilmgandhi | 18:6a4db94011d3 | 277 | |
sahilmgandhi | 18:6a4db94011d3 | 278 | GPIO1_0 = P1_7, |
sahilmgandhi | 18:6a4db94011d3 | 279 | GPIO1_1 = P1_8, |
sahilmgandhi | 18:6a4db94011d3 | 280 | GPIO1_2 = P1_9, |
sahilmgandhi | 18:6a4db94011d3 | 281 | GPIO1_3 = P1_10, |
sahilmgandhi | 18:6a4db94011d3 | 282 | GPIO1_4 = P1_11, |
sahilmgandhi | 18:6a4db94011d3 | 283 | GPIO1_5 = P1_12, |
sahilmgandhi | 18:6a4db94011d3 | 284 | GPIO1_6 = P1_13, |
sahilmgandhi | 18:6a4db94011d3 | 285 | GPIO1_7 = P1_14, |
sahilmgandhi | 18:6a4db94011d3 | 286 | GPIO1_8 = P1_5, |
sahilmgandhi | 18:6a4db94011d3 | 287 | GPIO1_9 = P1_6, |
sahilmgandhi | 18:6a4db94011d3 | 288 | GPIO1_10 = P2_9, |
sahilmgandhi | 18:6a4db94011d3 | 289 | GPIO1_11 = P2_11, |
sahilmgandhi | 18:6a4db94011d3 | 290 | GPIO1_12 = P2_12, |
sahilmgandhi | 18:6a4db94011d3 | 291 | GPIO1_13 = P2_13, |
sahilmgandhi | 18:6a4db94011d3 | 292 | GPIO1_14 = P3_4, |
sahilmgandhi | 18:6a4db94011d3 | 293 | GPIO1_15 = P3_5, |
sahilmgandhi | 18:6a4db94011d3 | 294 | |
sahilmgandhi | 18:6a4db94011d3 | 295 | GPIO2_0 = P4_0, |
sahilmgandhi | 18:6a4db94011d3 | 296 | GPIO2_1 = P4_1, |
sahilmgandhi | 18:6a4db94011d3 | 297 | GPIO2_2 = P4_2, |
sahilmgandhi | 18:6a4db94011d3 | 298 | GPIO2_3 = P4_3, |
sahilmgandhi | 18:6a4db94011d3 | 299 | GPIO2_4 = P4_4, |
sahilmgandhi | 18:6a4db94011d3 | 300 | GPIO2_5 = P4_5, |
sahilmgandhi | 18:6a4db94011d3 | 301 | GPIO2_6 = P4_6, |
sahilmgandhi | 18:6a4db94011d3 | 302 | GPIO2_7 = P5_7, |
sahilmgandhi | 18:6a4db94011d3 | 303 | GPIO2_8 = P6_12, |
sahilmgandhi | 18:6a4db94011d3 | 304 | GPIO2_9 = P5_0, |
sahilmgandhi | 18:6a4db94011d3 | 305 | GPIO2_10 = P5_1, |
sahilmgandhi | 18:6a4db94011d3 | 306 | GPIO2_11 = P5_2, |
sahilmgandhi | 18:6a4db94011d3 | 307 | GPIO2_12 = P5_3, |
sahilmgandhi | 18:6a4db94011d3 | 308 | GPIO2_13 = P5_4, |
sahilmgandhi | 18:6a4db94011d3 | 309 | GPIO2_14 = P5_5, |
sahilmgandhi | 18:6a4db94011d3 | 310 | GPIO2_15 = P5_6, |
sahilmgandhi | 18:6a4db94011d3 | 311 | |
sahilmgandhi | 18:6a4db94011d3 | 312 | GPIO3_0 = P6_1, |
sahilmgandhi | 18:6a4db94011d3 | 313 | GPIO3_1 = P6_2, |
sahilmgandhi | 18:6a4db94011d3 | 314 | GPIO3_2 = P6_3, |
sahilmgandhi | 18:6a4db94011d3 | 315 | GPIO3_3 = P6_4, |
sahilmgandhi | 18:6a4db94011d3 | 316 | GPIO3_4 = P6_5, |
sahilmgandhi | 18:6a4db94011d3 | 317 | GPIO3_5 = P6_9, |
sahilmgandhi | 18:6a4db94011d3 | 318 | GPIO3_6 = P6_10, |
sahilmgandhi | 18:6a4db94011d3 | 319 | GPIO3_7 = P6_11, |
sahilmgandhi | 18:6a4db94011d3 | 320 | GPIO3_8 = P7_0, |
sahilmgandhi | 18:6a4db94011d3 | 321 | GPIO3_9 = P7_1, |
sahilmgandhi | 18:6a4db94011d3 | 322 | GPIO3_10 = P7_2, |
sahilmgandhi | 18:6a4db94011d3 | 323 | GPIO3_11 = P7_3, |
sahilmgandhi | 18:6a4db94011d3 | 324 | GPIO3_12 = P7_4, |
sahilmgandhi | 18:6a4db94011d3 | 325 | GPIO3_13 = P7_5, |
sahilmgandhi | 18:6a4db94011d3 | 326 | GPIO3_14 = P7_6, |
sahilmgandhi | 18:6a4db94011d3 | 327 | GPIO3_15 = P7_7, |
sahilmgandhi | 18:6a4db94011d3 | 328 | |
sahilmgandhi | 18:6a4db94011d3 | 329 | GPIO4_0 = P8_0, |
sahilmgandhi | 18:6a4db94011d3 | 330 | GPIO4_1 = P8_1, |
sahilmgandhi | 18:6a4db94011d3 | 331 | GPIO4_2 = P8_2, |
sahilmgandhi | 18:6a4db94011d3 | 332 | GPIO4_3 = P8_3, |
sahilmgandhi | 18:6a4db94011d3 | 333 | GPIO4_4 = P8_4, |
sahilmgandhi | 18:6a4db94011d3 | 334 | GPIO4_5 = P8_5, |
sahilmgandhi | 18:6a4db94011d3 | 335 | GPIO4_6 = P8_6, |
sahilmgandhi | 18:6a4db94011d3 | 336 | GPIO4_7 = P8_7, |
sahilmgandhi | 18:6a4db94011d3 | 337 | GPIO4_8 = PA_1, |
sahilmgandhi | 18:6a4db94011d3 | 338 | GPIO4_9 = PA_2, |
sahilmgandhi | 18:6a4db94011d3 | 339 | GPIO4_10 = PA_3, |
sahilmgandhi | 18:6a4db94011d3 | 340 | GPIO4_11 = P9_6, |
sahilmgandhi | 18:6a4db94011d3 | 341 | GPIO4_12 = P9_0, |
sahilmgandhi | 18:6a4db94011d3 | 342 | GPIO4_13 = P9_1, |
sahilmgandhi | 18:6a4db94011d3 | 343 | GPIO4_14 = P9_2, |
sahilmgandhi | 18:6a4db94011d3 | 344 | GPIO4_15 = P9_3, |
sahilmgandhi | 18:6a4db94011d3 | 345 | |
sahilmgandhi | 18:6a4db94011d3 | 346 | GPIO5_0 = P2_0, |
sahilmgandhi | 18:6a4db94011d3 | 347 | GPIO5_1 = P2_1, |
sahilmgandhi | 18:6a4db94011d3 | 348 | GPIO5_2 = P2_2, |
sahilmgandhi | 18:6a4db94011d3 | 349 | GPIO5_3 = P2_3, |
sahilmgandhi | 18:6a4db94011d3 | 350 | GPIO5_4 = P2_4, |
sahilmgandhi | 18:6a4db94011d3 | 351 | GPIO5_5 = P2_5, |
sahilmgandhi | 18:6a4db94011d3 | 352 | GPIO5_6 = P2_6, |
sahilmgandhi | 18:6a4db94011d3 | 353 | GPIO5_7 = P2_8, |
sahilmgandhi | 18:6a4db94011d3 | 354 | GPIO5_8 = P3_1, |
sahilmgandhi | 18:6a4db94011d3 | 355 | GPIO5_9 = P3_2, |
sahilmgandhi | 18:6a4db94011d3 | 356 | GPIO5_10 = P3_7, |
sahilmgandhi | 18:6a4db94011d3 | 357 | GPIO5_11 = P3_8, |
sahilmgandhi | 18:6a4db94011d3 | 358 | GPIO5_12 = P4_8, |
sahilmgandhi | 18:6a4db94011d3 | 359 | GPIO5_13 = P4_9, |
sahilmgandhi | 18:6a4db94011d3 | 360 | GPIO5_14 = P4_10, |
sahilmgandhi | 18:6a4db94011d3 | 361 | GPIO5_15 = P6_7, |
sahilmgandhi | 18:6a4db94011d3 | 362 | GPIO5_16 = P6_8, |
sahilmgandhi | 18:6a4db94011d3 | 363 | GPIO5_17 = P9_4, |
sahilmgandhi | 18:6a4db94011d3 | 364 | GPIO5_18 = P9_5, |
sahilmgandhi | 18:6a4db94011d3 | 365 | GPIO5_19 = PA_4, |
sahilmgandhi | 18:6a4db94011d3 | 366 | GPIO5_20 = PB_0, |
sahilmgandhi | 18:6a4db94011d3 | 367 | GPIO5_21 = PB_1, |
sahilmgandhi | 18:6a4db94011d3 | 368 | GPIO5_22 = PB_2, |
sahilmgandhi | 18:6a4db94011d3 | 369 | GPIO5_23 = PB_3, |
sahilmgandhi | 18:6a4db94011d3 | 370 | GPIO5_24 = PB_4, |
sahilmgandhi | 18:6a4db94011d3 | 371 | GPIO5_25 = PB_5, |
sahilmgandhi | 18:6a4db94011d3 | 372 | GPIO5_26 = PB_6, |
sahilmgandhi | 18:6a4db94011d3 | 373 | |
sahilmgandhi | 18:6a4db94011d3 | 374 | GPIO6_0 = PC_1, |
sahilmgandhi | 18:6a4db94011d3 | 375 | GPIO6_1 = PC_2, |
sahilmgandhi | 18:6a4db94011d3 | 376 | GPIO6_2 = PC_3, |
sahilmgandhi | 18:6a4db94011d3 | 377 | GPIO6_3 = PC_4, |
sahilmgandhi | 18:6a4db94011d3 | 378 | GPIO6_4 = PC_5, |
sahilmgandhi | 18:6a4db94011d3 | 379 | GPIO6_5 = PC_6, |
sahilmgandhi | 18:6a4db94011d3 | 380 | GPIO6_6 = PC_7, |
sahilmgandhi | 18:6a4db94011d3 | 381 | GPIO6_7 = PC_8, |
sahilmgandhi | 18:6a4db94011d3 | 382 | GPIO6_8 = PC_9, |
sahilmgandhi | 18:6a4db94011d3 | 383 | GPIO6_9 = PC_10, |
sahilmgandhi | 18:6a4db94011d3 | 384 | GPIO6_10 = PC_11, |
sahilmgandhi | 18:6a4db94011d3 | 385 | GPIO6_11 = PC_12, |
sahilmgandhi | 18:6a4db94011d3 | 386 | GPIO6_12 = PC_13, |
sahilmgandhi | 18:6a4db94011d3 | 387 | GPIO6_13 = PC_14, |
sahilmgandhi | 18:6a4db94011d3 | 388 | GPIO6_14 = PD_0, |
sahilmgandhi | 18:6a4db94011d3 | 389 | GPIO6_15 = PD_1, |
sahilmgandhi | 18:6a4db94011d3 | 390 | GPIO6_16 = PD_2, |
sahilmgandhi | 18:6a4db94011d3 | 391 | GPIO6_17 = PD_3, |
sahilmgandhi | 18:6a4db94011d3 | 392 | GPIO6_18 = PD_4, |
sahilmgandhi | 18:6a4db94011d3 | 393 | GPIO6_19 = PD_5, |
sahilmgandhi | 18:6a4db94011d3 | 394 | GPIO6_20 = PD_6, |
sahilmgandhi | 18:6a4db94011d3 | 395 | GPIO6_21 = PD_7, |
sahilmgandhi | 18:6a4db94011d3 | 396 | GPIO6_22 = PD_8, |
sahilmgandhi | 18:6a4db94011d3 | 397 | GPIO6_23 = PD_9, |
sahilmgandhi | 18:6a4db94011d3 | 398 | GPIO6_24 = PD_10, |
sahilmgandhi | 18:6a4db94011d3 | 399 | GPIO6_25 = PD_11, |
sahilmgandhi | 18:6a4db94011d3 | 400 | GPIO6_26 = PD_12, |
sahilmgandhi | 18:6a4db94011d3 | 401 | GPIO6_27 = PD_13, |
sahilmgandhi | 18:6a4db94011d3 | 402 | GPIO6_28 = PD_14, |
sahilmgandhi | 18:6a4db94011d3 | 403 | GPIO6_29 = PD_15, |
sahilmgandhi | 18:6a4db94011d3 | 404 | GPIO6_30 = PD_16, |
sahilmgandhi | 18:6a4db94011d3 | 405 | |
sahilmgandhi | 18:6a4db94011d3 | 406 | GPIO7_0 = PE_0, |
sahilmgandhi | 18:6a4db94011d3 | 407 | GPIO7_1 = PE_1, |
sahilmgandhi | 18:6a4db94011d3 | 408 | GPIO7_2 = PE_2, |
sahilmgandhi | 18:6a4db94011d3 | 409 | GPIO7_3 = PE_3, |
sahilmgandhi | 18:6a4db94011d3 | 410 | GPIO7_4 = PE_4, |
sahilmgandhi | 18:6a4db94011d3 | 411 | GPIO7_5 = PE_5, |
sahilmgandhi | 18:6a4db94011d3 | 412 | GPIO7_6 = PE_5, |
sahilmgandhi | 18:6a4db94011d3 | 413 | GPIO7_7 = PE_7, |
sahilmgandhi | 18:6a4db94011d3 | 414 | GPIO7_8 = PE_8, |
sahilmgandhi | 18:6a4db94011d3 | 415 | GPIO7_9 = PE_9, |
sahilmgandhi | 18:6a4db94011d3 | 416 | GPIO7_10 = PE_10, |
sahilmgandhi | 18:6a4db94011d3 | 417 | GPIO7_11 = PE_11, |
sahilmgandhi | 18:6a4db94011d3 | 418 | GPIO7_12 = PE_12, |
sahilmgandhi | 18:6a4db94011d3 | 419 | GPIO7_13 = PE_13, |
sahilmgandhi | 18:6a4db94011d3 | 420 | GPIO7_14 = PE_14, |
sahilmgandhi | 18:6a4db94011d3 | 421 | GPIO7_15 = PE_15, |
sahilmgandhi | 18:6a4db94011d3 | 422 | GPIO7_16 = PF_1, |
sahilmgandhi | 18:6a4db94011d3 | 423 | GPIO7_17 = PF_2, |
sahilmgandhi | 18:6a4db94011d3 | 424 | GPIO7_18 = PF_3, |
sahilmgandhi | 18:6a4db94011d3 | 425 | GPIO7_19 = PF_5, |
sahilmgandhi | 18:6a4db94011d3 | 426 | GPIO7_20 = PF_6, |
sahilmgandhi | 18:6a4db94011d3 | 427 | GPIO7_21 = PF_7, |
sahilmgandhi | 18:6a4db94011d3 | 428 | GPIO7_22 = PF_8, |
sahilmgandhi | 18:6a4db94011d3 | 429 | GPIO7_23 = PF_9, |
sahilmgandhi | 18:6a4db94011d3 | 430 | GPIO7_24 = PF_10, |
sahilmgandhi | 18:6a4db94011d3 | 431 | GPIO7_25 = PF_11, |
sahilmgandhi | 18:6a4db94011d3 | 432 | |
sahilmgandhi | 18:6a4db94011d3 | 433 | // Map mbed pin names to LPC43xx board signals |
sahilmgandhi | 18:6a4db94011d3 | 434 | |
sahilmgandhi | 18:6a4db94011d3 | 435 | // Group 0x18 : CLKn pins |
sahilmgandhi | 18:6a4db94011d3 | 436 | SFP_CLK0 = MBED_PIN(0x18, 0, 0, 0), |
sahilmgandhi | 18:6a4db94011d3 | 437 | SFP_CLK1 = MBED_PIN(0x18, 1, 0, 0), |
sahilmgandhi | 18:6a4db94011d3 | 438 | SFP_CLK2 = MBED_PIN(0x18, 2, 0, 0), |
sahilmgandhi | 18:6a4db94011d3 | 439 | SFP_CLK3 = MBED_PIN(0x18, 3, 0, 0), |
sahilmgandhi | 18:6a4db94011d3 | 440 | |
sahilmgandhi | 18:6a4db94011d3 | 441 | // Group 0x19 : USB1, I2C0, ADC0, ADC1 |
sahilmgandhi | 18:6a4db94011d3 | 442 | SFP_USB1 = MBED_PIN(0x19, 0, 0, 0), |
sahilmgandhi | 18:6a4db94011d3 | 443 | SFP_I2C0 = MBED_PIN(0x19, 1, 0, 0), |
sahilmgandhi | 18:6a4db94011d3 | 444 | SFP_AIO0 = MBED_PIN(0x19, 2, 0, 0), // ADC0 function select register |
sahilmgandhi | 18:6a4db94011d3 | 445 | SFP_AIO1 = MBED_PIN(0x19, 3, 0, 0), // ADC1 function select register |
sahilmgandhi | 18:6a4db94011d3 | 446 | SFP_AIO2 = MBED_PIN(0x19, 4, 0, 0), // Analog function select register |
sahilmgandhi | 18:6a4db94011d3 | 447 | |
sahilmgandhi | 18:6a4db94011d3 | 448 | SFP_EMCD = MBED_PIN(0x1A, 0, 0, 0), // EMC clock delay register |
sahilmgandhi | 18:6a4db94011d3 | 449 | |
sahilmgandhi | 18:6a4db94011d3 | 450 | SFP_INS0 = MBED_PIN(0x1C, 0, 0, 0), // Interrupt select for pin interrupts 0 to 3 |
sahilmgandhi | 18:6a4db94011d3 | 451 | SFP_INS1 = MBED_PIN(0x1C, 1, 0, 0), // Interrupt select for pin interrupts 4 to 7 |
sahilmgandhi | 18:6a4db94011d3 | 452 | |
sahilmgandhi | 18:6a4db94011d3 | 453 | // Dedicated pin (no GPIO) |
sahilmgandhi | 18:6a4db94011d3 | 454 | P_DED = MBED_PIN(0, 0, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 455 | |
sahilmgandhi | 18:6a4db94011d3 | 456 | // Not connected |
sahilmgandhi | 18:6a4db94011d3 | 457 | NC = (int)0xFFFFFFFF, |
sahilmgandhi | 18:6a4db94011d3 | 458 | |
sahilmgandhi | 18:6a4db94011d3 | 459 | // ---------- LPCXpresso 4337 pins ---------- |
sahilmgandhi | 18:6a4db94011d3 | 460 | |
sahilmgandhi | 18:6a4db94011d3 | 461 | D0 = P2_11, |
sahilmgandhi | 18:6a4db94011d3 | 462 | D1 = P2_10, |
sahilmgandhi | 18:6a4db94011d3 | 463 | D2 = P2_13, |
sahilmgandhi | 18:6a4db94011d3 | 464 | D3 = P1_8, |
sahilmgandhi | 18:6a4db94011d3 | 465 | D4 = P2_2, |
sahilmgandhi | 18:6a4db94011d3 | 466 | D5 = P1_7, |
sahilmgandhi | 18:6a4db94011d3 | 467 | D6 = P2_9, |
sahilmgandhi | 18:6a4db94011d3 | 468 | D7 = P2_12, |
sahilmgandhi | 18:6a4db94011d3 | 469 | |
sahilmgandhi | 18:6a4db94011d3 | 470 | D8 = P2_6, |
sahilmgandhi | 18:6a4db94011d3 | 471 | D9 = P6_5, |
sahilmgandhi | 18:6a4db94011d3 | 472 | D10 = P1_5, |
sahilmgandhi | 18:6a4db94011d3 | 473 | D11 = P1_4, |
sahilmgandhi | 18:6a4db94011d3 | 474 | D12 = P1_3, |
sahilmgandhi | 18:6a4db94011d3 | 475 | D13 = PF_4, |
sahilmgandhi | 18:6a4db94011d3 | 476 | D14 = P2_3, |
sahilmgandhi | 18:6a4db94011d3 | 477 | D15 = P2_4, |
sahilmgandhi | 18:6a4db94011d3 | 478 | SDA = P2_3, |
sahilmgandhi | 18:6a4db94011d3 | 479 | SCL = P2_4, |
sahilmgandhi | 18:6a4db94011d3 | 480 | |
sahilmgandhi | 18:6a4db94011d3 | 481 | A0 = P4_3, |
sahilmgandhi | 18:6a4db94011d3 | 482 | A1 = P4_1, |
sahilmgandhi | 18:6a4db94011d3 | 483 | A2 = PF_8, |
sahilmgandhi | 18:6a4db94011d3 | 484 | A3 = P7_5, |
sahilmgandhi | 18:6a4db94011d3 | 485 | A4 = NC, |
sahilmgandhi | 18:6a4db94011d3 | 486 | A5 = P2_5, |
sahilmgandhi | 18:6a4db94011d3 | 487 | |
sahilmgandhi | 18:6a4db94011d3 | 488 | LED_GREEN = P2_7, |
sahilmgandhi | 18:6a4db94011d3 | 489 | LED_RED = P6_11, |
sahilmgandhi | 18:6a4db94011d3 | 490 | LED_BLUE = P6_9, |
sahilmgandhi | 18:6a4db94011d3 | 491 | |
sahilmgandhi | 18:6a4db94011d3 | 492 | // Serial pins |
sahilmgandhi | 18:6a4db94011d3 | 493 | UART0_TX = P6_4, |
sahilmgandhi | 18:6a4db94011d3 | 494 | UART0_RX = P2_1, |
sahilmgandhi | 18:6a4db94011d3 | 495 | UART1_TX = D1, |
sahilmgandhi | 18:6a4db94011d3 | 496 | UART1_RX = D0, |
sahilmgandhi | 18:6a4db94011d3 | 497 | USBTX = UART0_TX, |
sahilmgandhi | 18:6a4db94011d3 | 498 | USBRX = UART0_RX, |
sahilmgandhi | 18:6a4db94011d3 | 499 | |
sahilmgandhi | 18:6a4db94011d3 | 500 | I2C_SDA = SDA, |
sahilmgandhi | 18:6a4db94011d3 | 501 | I2C_SDL = SCL, |
sahilmgandhi | 18:6a4db94011d3 | 502 | |
sahilmgandhi | 18:6a4db94011d3 | 503 | LED1 = LED_RED, |
sahilmgandhi | 18:6a4db94011d3 | 504 | LED2 = LED_BLUE, |
sahilmgandhi | 18:6a4db94011d3 | 505 | LED3 = LED_GREEN, |
sahilmgandhi | 18:6a4db94011d3 | 506 | LED4 = LED_RED, |
sahilmgandhi | 18:6a4db94011d3 | 507 | |
sahilmgandhi | 18:6a4db94011d3 | 508 | // Analog Only pins |
sahilmgandhi | 18:6a4db94011d3 | 509 | adc0_0 = MBED_PIN(NO_PORT, 0, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 510 | adc0_1 = MBED_PIN(NO_PORT, 1, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 511 | adc0_2 = MBED_PIN(NO_PORT, 2, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 512 | adc0_3 = MBED_PIN(NO_PORT, 3, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 513 | adc0_4 = MBED_PIN(NO_PORT, 4, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 514 | adc0_5 = MBED_PIN(NO_PORT, 5, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 515 | adc0_6 = MBED_PIN(NO_PORT, 6, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 516 | adc0_7 = MBED_PIN(NO_PORT, 7, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 517 | adc1_0 = MBED_PIN(NO_PORT, 8, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 518 | adc1_1 = MBED_PIN(NO_PORT, 9, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 519 | adc1_2 = MBED_PIN(NO_PORT, 10, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 520 | adc1_3 = MBED_PIN(NO_PORT, 11, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 521 | adc1_4 = MBED_PIN(NO_PORT, 12, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 522 | adc1_5 = MBED_PIN(NO_PORT, 13, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 523 | adc1_6 = MBED_PIN(NO_PORT, 14, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 524 | adc1_7 = MBED_PIN(NO_PORT, 15, NO_GPIO, 0), |
sahilmgandhi | 18:6a4db94011d3 | 525 | |
sahilmgandhi | 18:6a4db94011d3 | 526 | // ---------- End of LPCXpresso 4337 pins ---------- |
sahilmgandhi | 18:6a4db94011d3 | 527 | } PinName; |
sahilmgandhi | 18:6a4db94011d3 | 528 | |
sahilmgandhi | 18:6a4db94011d3 | 529 | typedef enum { |
sahilmgandhi | 18:6a4db94011d3 | 530 | PullUp = 0, |
sahilmgandhi | 18:6a4db94011d3 | 531 | PullDown = 3, |
sahilmgandhi | 18:6a4db94011d3 | 532 | PullNone = 2, |
sahilmgandhi | 18:6a4db94011d3 | 533 | Repeater = 1, |
sahilmgandhi | 18:6a4db94011d3 | 534 | OpenDrain = 4, |
sahilmgandhi | 18:6a4db94011d3 | 535 | PullDefault = PullDown |
sahilmgandhi | 18:6a4db94011d3 | 536 | } PinMode; |
sahilmgandhi | 18:6a4db94011d3 | 537 | |
sahilmgandhi | 18:6a4db94011d3 | 538 | #ifdef __cplusplus |
sahilmgandhi | 18:6a4db94011d3 | 539 | } |
sahilmgandhi | 18:6a4db94011d3 | 540 | #endif |
sahilmgandhi | 18:6a4db94011d3 | 541 | |
sahilmgandhi | 18:6a4db94011d3 | 542 | #endif |