The official Mbed 2 C/C++ SDK provides the software platform and libraries to build your applications.
Dependents: hello SerialTestv11 SerialTestv12 Sierpinski ... more
mbed 2
This is the mbed 2 library. If you'd like to learn about Mbed OS please see the mbed-os docs.
TARGET_MIMXRT1050_EVK/TOOLCHAIN_IAR/PinNames.h@172:65be27845400, 2019-02-20 (annotated)
- Committer:
- AnnaBridge
- Date:
- Wed Feb 20 20:53:29 2019 +0000
- Revision:
- 172:65be27845400
- Parent:
- 171:3a7713b1edbc
mbed library release version 165
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
AnnaBridge | 171:3a7713b1edbc | 1 | /* mbed Microcontroller Library |
AnnaBridge | 171:3a7713b1edbc | 2 | * Copyright (c) 2006-2013 ARM Limited |
AnnaBridge | 171:3a7713b1edbc | 3 | * |
AnnaBridge | 171:3a7713b1edbc | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
AnnaBridge | 171:3a7713b1edbc | 5 | * you may not use this file except in compliance with the License. |
AnnaBridge | 171:3a7713b1edbc | 6 | * You may obtain a copy of the License at |
AnnaBridge | 171:3a7713b1edbc | 7 | * |
AnnaBridge | 171:3a7713b1edbc | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
AnnaBridge | 171:3a7713b1edbc | 9 | * |
AnnaBridge | 171:3a7713b1edbc | 10 | * Unless required by applicable law or agreed to in writing, software |
AnnaBridge | 171:3a7713b1edbc | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
AnnaBridge | 171:3a7713b1edbc | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
AnnaBridge | 171:3a7713b1edbc | 13 | * See the License for the specific language governing permissions and |
AnnaBridge | 171:3a7713b1edbc | 14 | * limitations under the License. |
AnnaBridge | 171:3a7713b1edbc | 15 | */ |
AnnaBridge | 171:3a7713b1edbc | 16 | #ifndef MBED_PINNAMES_H |
AnnaBridge | 171:3a7713b1edbc | 17 | #define MBED_PINNAMES_H |
AnnaBridge | 171:3a7713b1edbc | 18 | |
AnnaBridge | 171:3a7713b1edbc | 19 | #include "cmsis.h" |
AnnaBridge | 171:3a7713b1edbc | 20 | |
AnnaBridge | 171:3a7713b1edbc | 21 | #ifdef __cplusplus |
AnnaBridge | 171:3a7713b1edbc | 22 | extern "C" { |
AnnaBridge | 171:3a7713b1edbc | 23 | #endif |
AnnaBridge | 171:3a7713b1edbc | 24 | |
AnnaBridge | 171:3a7713b1edbc | 25 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 26 | PIN_INPUT, |
AnnaBridge | 171:3a7713b1edbc | 27 | PIN_OUTPUT |
AnnaBridge | 171:3a7713b1edbc | 28 | } PinDirection; |
AnnaBridge | 171:3a7713b1edbc | 29 | |
AnnaBridge | 171:3a7713b1edbc | 30 | #define GPIO_PORT_SHIFT 12 |
AnnaBridge | 171:3a7713b1edbc | 31 | #define GPIO_MUX_PORT 5 |
AnnaBridge | 171:3a7713b1edbc | 32 | |
AnnaBridge | 171:3a7713b1edbc | 33 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 34 | WAKEUP = ((5 << GPIO_PORT_SHIFT) | 0), |
AnnaBridge | 171:3a7713b1edbc | 35 | PMIC_ON_REQ = ((5 << GPIO_PORT_SHIFT) | 1), |
AnnaBridge | 171:3a7713b1edbc | 36 | PMIC_STBY_REQ = ((5 << GPIO_PORT_SHIFT) | 2), |
AnnaBridge | 171:3a7713b1edbc | 37 | |
AnnaBridge | 171:3a7713b1edbc | 38 | GPIO_EMC_00 = ((4 << GPIO_PORT_SHIFT) | 0), |
AnnaBridge | 171:3a7713b1edbc | 39 | GPIO_EMC_01 = ((4 << GPIO_PORT_SHIFT) | 1), |
AnnaBridge | 171:3a7713b1edbc | 40 | GPIO_EMC_02 = ((4 << GPIO_PORT_SHIFT) | 2), |
AnnaBridge | 171:3a7713b1edbc | 41 | GPIO_EMC_03 = ((4 << GPIO_PORT_SHIFT) | 3), |
AnnaBridge | 171:3a7713b1edbc | 42 | GPIO_EMC_04 = ((4 << GPIO_PORT_SHIFT) | 4), |
AnnaBridge | 171:3a7713b1edbc | 43 | GPIO_EMC_05 = ((4 << GPIO_PORT_SHIFT) | 5), |
AnnaBridge | 171:3a7713b1edbc | 44 | GPIO_EMC_06 = ((4 << GPIO_PORT_SHIFT) | 6), |
AnnaBridge | 171:3a7713b1edbc | 45 | GPIO_EMC_07 = ((4 << GPIO_PORT_SHIFT) | 7), |
AnnaBridge | 171:3a7713b1edbc | 46 | GPIO_EMC_08 = ((4 << GPIO_PORT_SHIFT) | 8), |
AnnaBridge | 171:3a7713b1edbc | 47 | GPIO_EMC_09 = ((4 << GPIO_PORT_SHIFT) | 9), |
AnnaBridge | 171:3a7713b1edbc | 48 | GPIO_EMC_10 = ((4 << GPIO_PORT_SHIFT) | 10), |
AnnaBridge | 171:3a7713b1edbc | 49 | GPIO_EMC_11 = ((4 << GPIO_PORT_SHIFT) | 11), |
AnnaBridge | 171:3a7713b1edbc | 50 | GPIO_EMC_12 = ((4 << GPIO_PORT_SHIFT) | 12), |
AnnaBridge | 171:3a7713b1edbc | 51 | GPIO_EMC_13 = ((4 << GPIO_PORT_SHIFT) | 13), |
AnnaBridge | 171:3a7713b1edbc | 52 | GPIO_EMC_14 = ((4 << GPIO_PORT_SHIFT) | 14), |
AnnaBridge | 171:3a7713b1edbc | 53 | GPIO_EMC_15 = ((4 << GPIO_PORT_SHIFT) | 15), |
AnnaBridge | 171:3a7713b1edbc | 54 | GPIO_EMC_16 = ((4 << GPIO_PORT_SHIFT) | 16), |
AnnaBridge | 171:3a7713b1edbc | 55 | GPIO_EMC_17 = ((4 << GPIO_PORT_SHIFT) | 17), |
AnnaBridge | 171:3a7713b1edbc | 56 | GPIO_EMC_18 = ((4 << GPIO_PORT_SHIFT) | 18), |
AnnaBridge | 171:3a7713b1edbc | 57 | GPIO_EMC_19 = ((4 << GPIO_PORT_SHIFT) | 19), |
AnnaBridge | 171:3a7713b1edbc | 58 | GPIO_EMC_20 = ((4 << GPIO_PORT_SHIFT) | 20), |
AnnaBridge | 171:3a7713b1edbc | 59 | GPIO_EMC_21 = ((4 << GPIO_PORT_SHIFT) | 21), |
AnnaBridge | 171:3a7713b1edbc | 60 | GPIO_EMC_22 = ((4 << GPIO_PORT_SHIFT) | 22), |
AnnaBridge | 171:3a7713b1edbc | 61 | GPIO_EMC_23 = ((4 << GPIO_PORT_SHIFT) | 23), |
AnnaBridge | 171:3a7713b1edbc | 62 | GPIO_EMC_24 = ((4 << GPIO_PORT_SHIFT) | 24), |
AnnaBridge | 171:3a7713b1edbc | 63 | GPIO_EMC_25 = ((4 << GPIO_PORT_SHIFT) | 25), |
AnnaBridge | 171:3a7713b1edbc | 64 | GPIO_EMC_26 = ((4 << GPIO_PORT_SHIFT) | 26), |
AnnaBridge | 171:3a7713b1edbc | 65 | GPIO_EMC_27 = ((4 << GPIO_PORT_SHIFT) | 27), |
AnnaBridge | 171:3a7713b1edbc | 66 | GPIO_EMC_28 = ((4 << GPIO_PORT_SHIFT) | 28), |
AnnaBridge | 171:3a7713b1edbc | 67 | GPIO_EMC_29 = ((4 << GPIO_PORT_SHIFT) | 29), |
AnnaBridge | 171:3a7713b1edbc | 68 | GPIO_EMC_30 = ((4 << GPIO_PORT_SHIFT) | 30), |
AnnaBridge | 171:3a7713b1edbc | 69 | GPIO_EMC_31 = ((4 << GPIO_PORT_SHIFT) | 31), |
AnnaBridge | 171:3a7713b1edbc | 70 | GPIO_EMC_32 = ((3 << GPIO_PORT_SHIFT) | 18), |
AnnaBridge | 171:3a7713b1edbc | 71 | GPIO_EMC_33 = ((3 << GPIO_PORT_SHIFT) | 19), |
AnnaBridge | 171:3a7713b1edbc | 72 | GPIO_EMC_34 = ((3 << GPIO_PORT_SHIFT) | 20), |
AnnaBridge | 171:3a7713b1edbc | 73 | GPIO_EMC_35 = ((3 << GPIO_PORT_SHIFT) | 21), |
AnnaBridge | 171:3a7713b1edbc | 74 | GPIO_EMC_36 = ((3 << GPIO_PORT_SHIFT) | 22), |
AnnaBridge | 171:3a7713b1edbc | 75 | GPIO_EMC_37 = ((3 << GPIO_PORT_SHIFT) | 23), |
AnnaBridge | 171:3a7713b1edbc | 76 | GPIO_EMC_38 = ((3 << GPIO_PORT_SHIFT) | 24), |
AnnaBridge | 171:3a7713b1edbc | 77 | GPIO_EMC_39 = ((3 << GPIO_PORT_SHIFT) | 25), |
AnnaBridge | 171:3a7713b1edbc | 78 | GPIO_EMC_40 = ((3 << GPIO_PORT_SHIFT) | 26), |
AnnaBridge | 171:3a7713b1edbc | 79 | GPIO_EMC_41 = ((3 << GPIO_PORT_SHIFT) | 27), |
AnnaBridge | 171:3a7713b1edbc | 80 | |
AnnaBridge | 171:3a7713b1edbc | 81 | GPIO_AD_B0_00 = ((1 << GPIO_PORT_SHIFT) | 0), |
AnnaBridge | 171:3a7713b1edbc | 82 | GPIO_AD_B0_01 = ((1 << GPIO_PORT_SHIFT) | 1), |
AnnaBridge | 171:3a7713b1edbc | 83 | GPIO_AD_B0_02 = ((1 << GPIO_PORT_SHIFT) | 2), |
AnnaBridge | 171:3a7713b1edbc | 84 | GPIO_AD_B0_03 = ((1 << GPIO_PORT_SHIFT) | 3), |
AnnaBridge | 171:3a7713b1edbc | 85 | GPIO_AD_B0_04 = ((1 << GPIO_PORT_SHIFT) | 4), |
AnnaBridge | 171:3a7713b1edbc | 86 | GPIO_AD_B0_05 = ((1 << GPIO_PORT_SHIFT) | 5), |
AnnaBridge | 171:3a7713b1edbc | 87 | GPIO_AD_B0_06 = ((1 << GPIO_PORT_SHIFT) | 6), |
AnnaBridge | 171:3a7713b1edbc | 88 | GPIO_AD_B0_07 = ((1 << GPIO_PORT_SHIFT) | 7), |
AnnaBridge | 171:3a7713b1edbc | 89 | GPIO_AD_B0_08 = ((1 << GPIO_PORT_SHIFT) | 8), |
AnnaBridge | 171:3a7713b1edbc | 90 | GPIO_AD_B0_09 = ((1 << GPIO_PORT_SHIFT) | 9), |
AnnaBridge | 171:3a7713b1edbc | 91 | GPIO_AD_B0_10 = ((1 << GPIO_PORT_SHIFT) | 10), |
AnnaBridge | 171:3a7713b1edbc | 92 | GPIO_AD_B0_11 = ((1 << GPIO_PORT_SHIFT) | 11), |
AnnaBridge | 171:3a7713b1edbc | 93 | GPIO_AD_B0_12 = ((1 << GPIO_PORT_SHIFT) | 12), |
AnnaBridge | 171:3a7713b1edbc | 94 | GPIO_AD_B0_13 = ((1 << GPIO_PORT_SHIFT) | 13), |
AnnaBridge | 171:3a7713b1edbc | 95 | GPIO_AD_B0_14 = ((1 << GPIO_PORT_SHIFT) | 14), |
AnnaBridge | 171:3a7713b1edbc | 96 | GPIO_AD_B0_15 = ((1 << GPIO_PORT_SHIFT) | 15), |
AnnaBridge | 171:3a7713b1edbc | 97 | |
AnnaBridge | 171:3a7713b1edbc | 98 | GPIO_AD_B1_00 = ((1 << GPIO_PORT_SHIFT) | 16), |
AnnaBridge | 171:3a7713b1edbc | 99 | GPIO_AD_B1_01 = ((1 << GPIO_PORT_SHIFT) | 17), |
AnnaBridge | 171:3a7713b1edbc | 100 | GPIO_AD_B1_02 = ((1 << GPIO_PORT_SHIFT) | 18), |
AnnaBridge | 171:3a7713b1edbc | 101 | GPIO_AD_B1_03 = ((1 << GPIO_PORT_SHIFT) | 19), |
AnnaBridge | 171:3a7713b1edbc | 102 | GPIO_AD_B1_04 = ((1 << GPIO_PORT_SHIFT) | 20), |
AnnaBridge | 171:3a7713b1edbc | 103 | GPIO_AD_B1_05 = ((1 << GPIO_PORT_SHIFT) | 21), |
AnnaBridge | 171:3a7713b1edbc | 104 | GPIO_AD_B1_06 = ((1 << GPIO_PORT_SHIFT) | 22), |
AnnaBridge | 171:3a7713b1edbc | 105 | GPIO_AD_B1_07 = ((1 << GPIO_PORT_SHIFT) | 23), |
AnnaBridge | 171:3a7713b1edbc | 106 | GPIO_AD_B1_08 = ((1 << GPIO_PORT_SHIFT) | 24), |
AnnaBridge | 171:3a7713b1edbc | 107 | GPIO_AD_B1_09 = ((1 << GPIO_PORT_SHIFT) | 25), |
AnnaBridge | 171:3a7713b1edbc | 108 | GPIO_AD_B1_10 = ((1 << GPIO_PORT_SHIFT) | 26), |
AnnaBridge | 171:3a7713b1edbc | 109 | GPIO_AD_B1_11 = ((1 << GPIO_PORT_SHIFT) | 27), |
AnnaBridge | 171:3a7713b1edbc | 110 | GPIO_AD_B1_12 = ((1 << GPIO_PORT_SHIFT) | 28), |
AnnaBridge | 171:3a7713b1edbc | 111 | GPIO_AD_B1_13 = ((1 << GPIO_PORT_SHIFT) | 29), |
AnnaBridge | 171:3a7713b1edbc | 112 | GPIO_AD_B1_14 = ((1 << GPIO_PORT_SHIFT) | 30), |
AnnaBridge | 171:3a7713b1edbc | 113 | GPIO_AD_B1_15 = ((1 << GPIO_PORT_SHIFT) | 31), |
AnnaBridge | 171:3a7713b1edbc | 114 | |
AnnaBridge | 171:3a7713b1edbc | 115 | GPIO_B0_00 = ((2 << GPIO_PORT_SHIFT) | 0), |
AnnaBridge | 171:3a7713b1edbc | 116 | GPIO_B0_01 = ((2 << GPIO_PORT_SHIFT) | 1), |
AnnaBridge | 171:3a7713b1edbc | 117 | GPIO_B0_02 = ((2 << GPIO_PORT_SHIFT) | 2), |
AnnaBridge | 171:3a7713b1edbc | 118 | GPIO_B0_03 = ((2 << GPIO_PORT_SHIFT) | 3), |
AnnaBridge | 171:3a7713b1edbc | 119 | GPIO_B0_04 = ((2 << GPIO_PORT_SHIFT) | 4), |
AnnaBridge | 171:3a7713b1edbc | 120 | GPIO_B0_05 = ((2 << GPIO_PORT_SHIFT) | 5), |
AnnaBridge | 171:3a7713b1edbc | 121 | GPIO_B0_06 = ((2 << GPIO_PORT_SHIFT) | 6), |
AnnaBridge | 171:3a7713b1edbc | 122 | GPIO_B0_07 = ((2 << GPIO_PORT_SHIFT) | 7), |
AnnaBridge | 171:3a7713b1edbc | 123 | GPIO_B0_08 = ((2 << GPIO_PORT_SHIFT) | 8), |
AnnaBridge | 171:3a7713b1edbc | 124 | GPIO_B0_09 = ((2 << GPIO_PORT_SHIFT) | 9), |
AnnaBridge | 171:3a7713b1edbc | 125 | GPIO_B0_10 = ((2 << GPIO_PORT_SHIFT) | 10), |
AnnaBridge | 171:3a7713b1edbc | 126 | GPIO_B0_11 = ((2 << GPIO_PORT_SHIFT) | 11), |
AnnaBridge | 171:3a7713b1edbc | 127 | GPIO_B0_12 = ((2 << GPIO_PORT_SHIFT) | 12), |
AnnaBridge | 171:3a7713b1edbc | 128 | GPIO_B0_13 = ((2 << GPIO_PORT_SHIFT) | 13), |
AnnaBridge | 171:3a7713b1edbc | 129 | GPIO_B0_14 = ((2 << GPIO_PORT_SHIFT) | 14), |
AnnaBridge | 171:3a7713b1edbc | 130 | GPIO_B0_15 = ((2 << GPIO_PORT_SHIFT) | 15), |
AnnaBridge | 171:3a7713b1edbc | 131 | |
AnnaBridge | 171:3a7713b1edbc | 132 | GPIO_B1_00 = ((2 << GPIO_PORT_SHIFT) | 16), |
AnnaBridge | 171:3a7713b1edbc | 133 | GPIO_B1_01 = ((2 << GPIO_PORT_SHIFT) | 17), |
AnnaBridge | 171:3a7713b1edbc | 134 | GPIO_B1_02 = ((2 << GPIO_PORT_SHIFT) | 18), |
AnnaBridge | 171:3a7713b1edbc | 135 | GPIO_B1_03 = ((2 << GPIO_PORT_SHIFT) | 19), |
AnnaBridge | 171:3a7713b1edbc | 136 | GPIO_B1_04 = ((2 << GPIO_PORT_SHIFT) | 20), |
AnnaBridge | 171:3a7713b1edbc | 137 | GPIO_B1_05 = ((2 << GPIO_PORT_SHIFT) | 21), |
AnnaBridge | 171:3a7713b1edbc | 138 | GPIO_B1_06 = ((2 << GPIO_PORT_SHIFT) | 22), |
AnnaBridge | 171:3a7713b1edbc | 139 | GPIO_B1_07 = ((2 << GPIO_PORT_SHIFT) | 23), |
AnnaBridge | 171:3a7713b1edbc | 140 | GPIO_B1_08 = ((2 << GPIO_PORT_SHIFT) | 24), |
AnnaBridge | 171:3a7713b1edbc | 141 | GPIO_B1_09 = ((2 << GPIO_PORT_SHIFT) | 25), |
AnnaBridge | 171:3a7713b1edbc | 142 | GPIO_B1_10 = ((2 << GPIO_PORT_SHIFT) | 26), |
AnnaBridge | 171:3a7713b1edbc | 143 | GPIO_B1_11 = ((2 << GPIO_PORT_SHIFT) | 27), |
AnnaBridge | 171:3a7713b1edbc | 144 | GPIO_B1_12 = ((2 << GPIO_PORT_SHIFT) | 28), |
AnnaBridge | 171:3a7713b1edbc | 145 | GPIO_B1_13 = ((2 << GPIO_PORT_SHIFT) | 29), |
AnnaBridge | 171:3a7713b1edbc | 146 | GPIO_B1_14 = ((2 << GPIO_PORT_SHIFT) | 30), |
AnnaBridge | 171:3a7713b1edbc | 147 | GPIO_B1_15 = ((2 << GPIO_PORT_SHIFT) | 31), |
AnnaBridge | 171:3a7713b1edbc | 148 | |
AnnaBridge | 171:3a7713b1edbc | 149 | GPIO_SD_B0_00 = ((3 << GPIO_PORT_SHIFT) | 12), |
AnnaBridge | 171:3a7713b1edbc | 150 | GPIO_SD_B0_01 = ((3 << GPIO_PORT_SHIFT) | 13), |
AnnaBridge | 171:3a7713b1edbc | 151 | GPIO_SD_B0_02 = ((3 << GPIO_PORT_SHIFT) | 14), |
AnnaBridge | 171:3a7713b1edbc | 152 | GPIO_SD_B0_03 = ((3 << GPIO_PORT_SHIFT) | 15), |
AnnaBridge | 171:3a7713b1edbc | 153 | GPIO_SD_B0_04 = ((3 << GPIO_PORT_SHIFT) | 16), |
AnnaBridge | 171:3a7713b1edbc | 154 | GPIO_SD_B0_05 = ((3 << GPIO_PORT_SHIFT) | 17), |
AnnaBridge | 171:3a7713b1edbc | 155 | |
AnnaBridge | 171:3a7713b1edbc | 156 | GPIO_SD_B1_00 = ((3 << GPIO_PORT_SHIFT) | 0), |
AnnaBridge | 171:3a7713b1edbc | 157 | GPIO_SD_B1_01 = ((3 << GPIO_PORT_SHIFT) | 1), |
AnnaBridge | 171:3a7713b1edbc | 158 | GPIO_SD_B1_02 = ((3 << GPIO_PORT_SHIFT) | 2), |
AnnaBridge | 171:3a7713b1edbc | 159 | GPIO_SD_B1_03 = ((3 << GPIO_PORT_SHIFT) | 3), |
AnnaBridge | 171:3a7713b1edbc | 160 | GPIO_SD_B1_04 = ((3 << GPIO_PORT_SHIFT) | 4), |
AnnaBridge | 171:3a7713b1edbc | 161 | GPIO_SD_B1_05 = ((3 << GPIO_PORT_SHIFT) | 5), |
AnnaBridge | 171:3a7713b1edbc | 162 | GPIO_SD_B1_06 = ((3 << GPIO_PORT_SHIFT) | 6), |
AnnaBridge | 171:3a7713b1edbc | 163 | GPIO_SD_B1_07 = ((3 << GPIO_PORT_SHIFT) | 7), |
AnnaBridge | 171:3a7713b1edbc | 164 | GPIO_SD_B1_08 = ((3 << GPIO_PORT_SHIFT) | 8), |
AnnaBridge | 171:3a7713b1edbc | 165 | GPIO_SD_B1_09 = ((3 << GPIO_PORT_SHIFT) | 9), |
AnnaBridge | 171:3a7713b1edbc | 166 | GPIO_SD_B1_10 = ((3 << GPIO_PORT_SHIFT) | 10), |
AnnaBridge | 171:3a7713b1edbc | 167 | GPIO_SD_B1_11 = ((3 << GPIO_PORT_SHIFT) | 11), |
AnnaBridge | 171:3a7713b1edbc | 168 | |
AnnaBridge | 171:3a7713b1edbc | 169 | LED_GREEN = GPIO_AD_B0_09, |
AnnaBridge | 171:3a7713b1edbc | 170 | |
AnnaBridge | 171:3a7713b1edbc | 171 | // mbed original LED naming |
AnnaBridge | 171:3a7713b1edbc | 172 | LED1 = LED_GREEN, |
AnnaBridge | 171:3a7713b1edbc | 173 | LED2 = LED_GREEN, |
AnnaBridge | 171:3a7713b1edbc | 174 | LED3 = LED_GREEN, |
AnnaBridge | 171:3a7713b1edbc | 175 | LED4 = LED_GREEN, |
AnnaBridge | 171:3a7713b1edbc | 176 | |
AnnaBridge | 171:3a7713b1edbc | 177 | // USB Pins |
AnnaBridge | 171:3a7713b1edbc | 178 | USBTX = GPIO_AD_B0_12, |
AnnaBridge | 171:3a7713b1edbc | 179 | USBRX = GPIO_AD_B0_13, |
AnnaBridge | 171:3a7713b1edbc | 180 | |
AnnaBridge | 171:3a7713b1edbc | 181 | // Arduino Headers |
AnnaBridge | 171:3a7713b1edbc | 182 | D0 = GPIO_AD_B1_07, |
AnnaBridge | 171:3a7713b1edbc | 183 | D1 = GPIO_AD_B1_06, |
AnnaBridge | 171:3a7713b1edbc | 184 | D2 = GPIO_AD_B0_11, |
AnnaBridge | 171:3a7713b1edbc | 185 | D3 = GPIO_AD_B1_08, |
AnnaBridge | 171:3a7713b1edbc | 186 | D4 = GPIO_AD_B0_09, |
AnnaBridge | 171:3a7713b1edbc | 187 | D5 = GPIO_AD_B0_10, |
AnnaBridge | 171:3a7713b1edbc | 188 | D6 = GPIO_AD_B1_02, |
AnnaBridge | 171:3a7713b1edbc | 189 | D7 = GPIO_AD_B1_03, |
AnnaBridge | 171:3a7713b1edbc | 190 | D8 = GPIO_AD_B0_03, |
AnnaBridge | 171:3a7713b1edbc | 191 | D9 = GPIO_AD_B0_02, |
AnnaBridge | 171:3a7713b1edbc | 192 | D10 = GPIO_SD_B0_01, |
AnnaBridge | 171:3a7713b1edbc | 193 | D11 = GPIO_SD_B0_02, |
AnnaBridge | 171:3a7713b1edbc | 194 | D12 = GPIO_SD_B0_03, |
AnnaBridge | 171:3a7713b1edbc | 195 | D13 = GPIO_SD_B0_00, |
AnnaBridge | 171:3a7713b1edbc | 196 | D14 = GPIO_AD_B0_01, |
AnnaBridge | 171:3a7713b1edbc | 197 | D15 = GPIO_AD_B0_00, |
AnnaBridge | 171:3a7713b1edbc | 198 | |
AnnaBridge | 171:3a7713b1edbc | 199 | A0 = GPIO_AD_B1_10, |
AnnaBridge | 171:3a7713b1edbc | 200 | A1 = GPIO_AD_B1_11, |
AnnaBridge | 171:3a7713b1edbc | 201 | A2 = GPIO_AD_B1_04, |
AnnaBridge | 171:3a7713b1edbc | 202 | A3 = GPIO_AD_B1_05, |
AnnaBridge | 171:3a7713b1edbc | 203 | A4 = GPIO_AD_B1_01, |
AnnaBridge | 171:3a7713b1edbc | 204 | A5 = GPIO_AD_B1_00, |
AnnaBridge | 171:3a7713b1edbc | 205 | |
AnnaBridge | 171:3a7713b1edbc | 206 | I2C_SCL = A5, |
AnnaBridge | 171:3a7713b1edbc | 207 | I2C_SDA = A4, |
AnnaBridge | 171:3a7713b1edbc | 208 | |
AnnaBridge | 171:3a7713b1edbc | 209 | // Not connected |
AnnaBridge | 171:3a7713b1edbc | 210 | NC = (int)0xFFFFFFFF |
AnnaBridge | 171:3a7713b1edbc | 211 | } PinName; |
AnnaBridge | 171:3a7713b1edbc | 212 | |
AnnaBridge | 171:3a7713b1edbc | 213 | |
AnnaBridge | 171:3a7713b1edbc | 214 | typedef enum { |
AnnaBridge | 171:3a7713b1edbc | 215 | PullNone = 0, |
AnnaBridge | 171:3a7713b1edbc | 216 | PullDown = 1, |
AnnaBridge | 171:3a7713b1edbc | 217 | PullUp_47K = 2, |
AnnaBridge | 171:3a7713b1edbc | 218 | PullUp_100K = 3, |
AnnaBridge | 171:3a7713b1edbc | 219 | PullUp_22K = 4, |
AnnaBridge | 171:3a7713b1edbc | 220 | PullDefault = PullUp_47K, |
AnnaBridge | 171:3a7713b1edbc | 221 | PullUp = PullUp_47K |
AnnaBridge | 171:3a7713b1edbc | 222 | } PinMode; |
AnnaBridge | 171:3a7713b1edbc | 223 | |
AnnaBridge | 171:3a7713b1edbc | 224 | #ifdef __cplusplus |
AnnaBridge | 171:3a7713b1edbc | 225 | } |
AnnaBridge | 171:3a7713b1edbc | 226 | #endif |
AnnaBridge | 171:3a7713b1edbc | 227 | |
AnnaBridge | 171:3a7713b1edbc | 228 | #endif |