![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Color Oled(SSD1331) connect to STMicroelectronics Nucleo-F466
mbed-os/targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PinNames.h@3:f3764f852aa8, 2018-10-11 (annotated)
- Committer:
- kadonotakashi
- Date:
- Thu Oct 11 02:27:46 2018 +0000
- Revision:
- 3:f3764f852aa8
- Parent:
- 0:8fdf9a60065b
Nucreo 446 + SSD1331 test version;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kadonotakashi | 0:8fdf9a60065b | 1 | /* mbed Microcontroller Library |
kadonotakashi | 0:8fdf9a60065b | 2 | * Copyright (c) 2006-2013 ARM Limited |
kadonotakashi | 0:8fdf9a60065b | 3 | * |
kadonotakashi | 0:8fdf9a60065b | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
kadonotakashi | 0:8fdf9a60065b | 5 | * you may not use this file except in compliance with the License. |
kadonotakashi | 0:8fdf9a60065b | 6 | * You may obtain a copy of the License at |
kadonotakashi | 0:8fdf9a60065b | 7 | * |
kadonotakashi | 0:8fdf9a60065b | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
kadonotakashi | 0:8fdf9a60065b | 9 | * |
kadonotakashi | 0:8fdf9a60065b | 10 | * Unless required by applicable law or agreed to in writing, software |
kadonotakashi | 0:8fdf9a60065b | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
kadonotakashi | 0:8fdf9a60065b | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
kadonotakashi | 0:8fdf9a60065b | 13 | * See the License for the specific language governing permissions and |
kadonotakashi | 0:8fdf9a60065b | 14 | * limitations under the License. |
kadonotakashi | 0:8fdf9a60065b | 15 | */ |
kadonotakashi | 0:8fdf9a60065b | 16 | #ifndef MBED_PINNAMES_H |
kadonotakashi | 0:8fdf9a60065b | 17 | #define MBED_PINNAMES_H |
kadonotakashi | 0:8fdf9a60065b | 18 | |
kadonotakashi | 0:8fdf9a60065b | 19 | #include "cmsis.h" |
kadonotakashi | 0:8fdf9a60065b | 20 | |
kadonotakashi | 0:8fdf9a60065b | 21 | #ifdef __cplusplus |
kadonotakashi | 0:8fdf9a60065b | 22 | extern "C" { |
kadonotakashi | 0:8fdf9a60065b | 23 | #endif |
kadonotakashi | 0:8fdf9a60065b | 24 | |
kadonotakashi | 0:8fdf9a60065b | 25 | typedef enum { |
kadonotakashi | 0:8fdf9a60065b | 26 | PIN_INPUT, |
kadonotakashi | 0:8fdf9a60065b | 27 | PIN_OUTPUT |
kadonotakashi | 0:8fdf9a60065b | 28 | } PinDirection; |
kadonotakashi | 0:8fdf9a60065b | 29 | |
kadonotakashi | 0:8fdf9a60065b | 30 | #define GPIO_PORT_SHIFT 12 |
kadonotakashi | 0:8fdf9a60065b | 31 | |
kadonotakashi | 0:8fdf9a60065b | 32 | typedef enum { |
kadonotakashi | 0:8fdf9a60065b | 33 | PTA0 = (0 << GPIO_PORT_SHIFT | 0 ), |
kadonotakashi | 0:8fdf9a60065b | 34 | PTA1 = (0 << GPIO_PORT_SHIFT | 1 ), |
kadonotakashi | 0:8fdf9a60065b | 35 | PTA2 = (0 << GPIO_PORT_SHIFT | 2 ), |
kadonotakashi | 0:8fdf9a60065b | 36 | PTA3 = (0 << GPIO_PORT_SHIFT | 3 ), |
kadonotakashi | 0:8fdf9a60065b | 37 | PTA4 = (0 << GPIO_PORT_SHIFT | 4 ), |
kadonotakashi | 0:8fdf9a60065b | 38 | PTA5 = (0 << GPIO_PORT_SHIFT | 5 ), |
kadonotakashi | 0:8fdf9a60065b | 39 | PTA6 = (0 << GPIO_PORT_SHIFT | 6 ), |
kadonotakashi | 0:8fdf9a60065b | 40 | PTA7 = (0 << GPIO_PORT_SHIFT | 7 ), |
kadonotakashi | 0:8fdf9a60065b | 41 | PTA8 = (0 << GPIO_PORT_SHIFT | 8 ), |
kadonotakashi | 0:8fdf9a60065b | 42 | PTA9 = (0 << GPIO_PORT_SHIFT | 9 ), |
kadonotakashi | 0:8fdf9a60065b | 43 | PTA10 = (0 << GPIO_PORT_SHIFT | 10), |
kadonotakashi | 0:8fdf9a60065b | 44 | PTA11 = (0 << GPIO_PORT_SHIFT | 11), |
kadonotakashi | 0:8fdf9a60065b | 45 | PTA12 = (0 << GPIO_PORT_SHIFT | 12), |
kadonotakashi | 0:8fdf9a60065b | 46 | PTA13 = (0 << GPIO_PORT_SHIFT | 13), |
kadonotakashi | 0:8fdf9a60065b | 47 | PTA14 = (0 << GPIO_PORT_SHIFT | 14), |
kadonotakashi | 0:8fdf9a60065b | 48 | PTA15 = (0 << GPIO_PORT_SHIFT | 15), |
kadonotakashi | 0:8fdf9a60065b | 49 | PTA16 = (0 << GPIO_PORT_SHIFT | 16), |
kadonotakashi | 0:8fdf9a60065b | 50 | PTA17 = (0 << GPIO_PORT_SHIFT | 17), |
kadonotakashi | 0:8fdf9a60065b | 51 | PTA18 = (0 << GPIO_PORT_SHIFT | 18), |
kadonotakashi | 0:8fdf9a60065b | 52 | PTA19 = (0 << GPIO_PORT_SHIFT | 19), |
kadonotakashi | 0:8fdf9a60065b | 53 | PTA20 = (0 << GPIO_PORT_SHIFT | 20), |
kadonotakashi | 0:8fdf9a60065b | 54 | PTA21 = (0 << GPIO_PORT_SHIFT | 21), |
kadonotakashi | 0:8fdf9a60065b | 55 | PTA22 = (0 << GPIO_PORT_SHIFT | 22), |
kadonotakashi | 0:8fdf9a60065b | 56 | PTA23 = (0 << GPIO_PORT_SHIFT | 23), |
kadonotakashi | 0:8fdf9a60065b | 57 | PTA24 = (0 << GPIO_PORT_SHIFT | 24), |
kadonotakashi | 0:8fdf9a60065b | 58 | PTA25 = (0 << GPIO_PORT_SHIFT | 25), |
kadonotakashi | 0:8fdf9a60065b | 59 | PTA26 = (0 << GPIO_PORT_SHIFT | 26), |
kadonotakashi | 0:8fdf9a60065b | 60 | PTA27 = (0 << GPIO_PORT_SHIFT | 27), |
kadonotakashi | 0:8fdf9a60065b | 61 | PTA28 = (0 << GPIO_PORT_SHIFT | 28), |
kadonotakashi | 0:8fdf9a60065b | 62 | PTA29 = (0 << GPIO_PORT_SHIFT | 29), |
kadonotakashi | 0:8fdf9a60065b | 63 | PTA30 = (0 << GPIO_PORT_SHIFT | 30), |
kadonotakashi | 0:8fdf9a60065b | 64 | PTA31 = (0 << GPIO_PORT_SHIFT | 31), |
kadonotakashi | 0:8fdf9a60065b | 65 | PTB0 = (1 << GPIO_PORT_SHIFT | 0 ), |
kadonotakashi | 0:8fdf9a60065b | 66 | PTB1 = (1 << GPIO_PORT_SHIFT | 1 ), |
kadonotakashi | 0:8fdf9a60065b | 67 | PTB2 = (1 << GPIO_PORT_SHIFT | 2 ), |
kadonotakashi | 0:8fdf9a60065b | 68 | PTB3 = (1 << GPIO_PORT_SHIFT | 3 ), |
kadonotakashi | 0:8fdf9a60065b | 69 | PTB4 = (1 << GPIO_PORT_SHIFT | 4 ), |
kadonotakashi | 0:8fdf9a60065b | 70 | PTB5 = (1 << GPIO_PORT_SHIFT | 5 ), |
kadonotakashi | 0:8fdf9a60065b | 71 | PTB6 = (1 << GPIO_PORT_SHIFT | 6 ), |
kadonotakashi | 0:8fdf9a60065b | 72 | PTB7 = (1 << GPIO_PORT_SHIFT | 7 ), |
kadonotakashi | 0:8fdf9a60065b | 73 | PTB8 = (1 << GPIO_PORT_SHIFT | 8 ), |
kadonotakashi | 0:8fdf9a60065b | 74 | PTB9 = (1 << GPIO_PORT_SHIFT | 9 ), |
kadonotakashi | 0:8fdf9a60065b | 75 | PTB10 = (1 << GPIO_PORT_SHIFT | 10), |
kadonotakashi | 0:8fdf9a60065b | 76 | PTB11 = (1 << GPIO_PORT_SHIFT | 11), |
kadonotakashi | 0:8fdf9a60065b | 77 | PTB12 = (1 << GPIO_PORT_SHIFT | 12), |
kadonotakashi | 0:8fdf9a60065b | 78 | PTB13 = (1 << GPIO_PORT_SHIFT | 13), |
kadonotakashi | 0:8fdf9a60065b | 79 | PTB14 = (1 << GPIO_PORT_SHIFT | 14), |
kadonotakashi | 0:8fdf9a60065b | 80 | PTB15 = (1 << GPIO_PORT_SHIFT | 15), |
kadonotakashi | 0:8fdf9a60065b | 81 | PTB16 = (1 << GPIO_PORT_SHIFT | 16), |
kadonotakashi | 0:8fdf9a60065b | 82 | PTB17 = (1 << GPIO_PORT_SHIFT | 17), |
kadonotakashi | 0:8fdf9a60065b | 83 | PTB18 = (1 << GPIO_PORT_SHIFT | 18), |
kadonotakashi | 0:8fdf9a60065b | 84 | PTB19 = (1 << GPIO_PORT_SHIFT | 19), |
kadonotakashi | 0:8fdf9a60065b | 85 | PTB20 = (1 << GPIO_PORT_SHIFT | 20), |
kadonotakashi | 0:8fdf9a60065b | 86 | PTB21 = (1 << GPIO_PORT_SHIFT | 21), |
kadonotakashi | 0:8fdf9a60065b | 87 | PTB22 = (1 << GPIO_PORT_SHIFT | 22), |
kadonotakashi | 0:8fdf9a60065b | 88 | PTB23 = (1 << GPIO_PORT_SHIFT | 23), |
kadonotakashi | 0:8fdf9a60065b | 89 | PTB24 = (1 << GPIO_PORT_SHIFT | 24), |
kadonotakashi | 0:8fdf9a60065b | 90 | PTB25 = (1 << GPIO_PORT_SHIFT | 25), |
kadonotakashi | 0:8fdf9a60065b | 91 | PTB26 = (1 << GPIO_PORT_SHIFT | 26), |
kadonotakashi | 0:8fdf9a60065b | 92 | PTB27 = (1 << GPIO_PORT_SHIFT | 27), |
kadonotakashi | 0:8fdf9a60065b | 93 | PTB28 = (1 << GPIO_PORT_SHIFT | 28), |
kadonotakashi | 0:8fdf9a60065b | 94 | PTB29 = (1 << GPIO_PORT_SHIFT | 29), |
kadonotakashi | 0:8fdf9a60065b | 95 | PTB30 = (1 << GPIO_PORT_SHIFT | 30), |
kadonotakashi | 0:8fdf9a60065b | 96 | PTB31 = (1 << GPIO_PORT_SHIFT | 31), |
kadonotakashi | 0:8fdf9a60065b | 97 | PTC0 = (2 << GPIO_PORT_SHIFT | 0 ), |
kadonotakashi | 0:8fdf9a60065b | 98 | PTC1 = (2 << GPIO_PORT_SHIFT | 1 ), |
kadonotakashi | 0:8fdf9a60065b | 99 | PTC2 = (2 << GPIO_PORT_SHIFT | 2 ), |
kadonotakashi | 0:8fdf9a60065b | 100 | PTC3 = (2 << GPIO_PORT_SHIFT | 3 ), |
kadonotakashi | 0:8fdf9a60065b | 101 | PTC4 = (2 << GPIO_PORT_SHIFT | 4 ), |
kadonotakashi | 0:8fdf9a60065b | 102 | PTC5 = (2 << GPIO_PORT_SHIFT | 5 ), |
kadonotakashi | 0:8fdf9a60065b | 103 | PTC6 = (2 << GPIO_PORT_SHIFT | 6 ), |
kadonotakashi | 0:8fdf9a60065b | 104 | PTC7 = (2 << GPIO_PORT_SHIFT | 7 ), |
kadonotakashi | 0:8fdf9a60065b | 105 | PTC8 = (2 << GPIO_PORT_SHIFT | 8 ), |
kadonotakashi | 0:8fdf9a60065b | 106 | PTC9 = (2 << GPIO_PORT_SHIFT | 9 ), |
kadonotakashi | 0:8fdf9a60065b | 107 | PTC10 = (2 << GPIO_PORT_SHIFT | 10), |
kadonotakashi | 0:8fdf9a60065b | 108 | PTC11 = (2 << GPIO_PORT_SHIFT | 11), |
kadonotakashi | 0:8fdf9a60065b | 109 | PTC12 = (2 << GPIO_PORT_SHIFT | 12), |
kadonotakashi | 0:8fdf9a60065b | 110 | PTC13 = (2 << GPIO_PORT_SHIFT | 13), |
kadonotakashi | 0:8fdf9a60065b | 111 | PTC14 = (2 << GPIO_PORT_SHIFT | 14), |
kadonotakashi | 0:8fdf9a60065b | 112 | PTC15 = (2 << GPIO_PORT_SHIFT | 15), |
kadonotakashi | 0:8fdf9a60065b | 113 | PTC16 = (2 << GPIO_PORT_SHIFT | 16), |
kadonotakashi | 0:8fdf9a60065b | 114 | PTC17 = (2 << GPIO_PORT_SHIFT | 17), |
kadonotakashi | 0:8fdf9a60065b | 115 | PTC18 = (2 << GPIO_PORT_SHIFT | 18), |
kadonotakashi | 0:8fdf9a60065b | 116 | PTC19 = (2 << GPIO_PORT_SHIFT | 19), |
kadonotakashi | 0:8fdf9a60065b | 117 | PTC20 = (2 << GPIO_PORT_SHIFT | 20), |
kadonotakashi | 0:8fdf9a60065b | 118 | PTC21 = (2 << GPIO_PORT_SHIFT | 21), |
kadonotakashi | 0:8fdf9a60065b | 119 | PTC22 = (2 << GPIO_PORT_SHIFT | 22), |
kadonotakashi | 0:8fdf9a60065b | 120 | PTC23 = (2 << GPIO_PORT_SHIFT | 23), |
kadonotakashi | 0:8fdf9a60065b | 121 | PTC24 = (2 << GPIO_PORT_SHIFT | 24), |
kadonotakashi | 0:8fdf9a60065b | 122 | PTC25 = (2 << GPIO_PORT_SHIFT | 25), |
kadonotakashi | 0:8fdf9a60065b | 123 | PTC26 = (2 << GPIO_PORT_SHIFT | 26), |
kadonotakashi | 0:8fdf9a60065b | 124 | PTC27 = (2 << GPIO_PORT_SHIFT | 27), |
kadonotakashi | 0:8fdf9a60065b | 125 | PTC28 = (2 << GPIO_PORT_SHIFT | 28), |
kadonotakashi | 0:8fdf9a60065b | 126 | PTC29 = (2 << GPIO_PORT_SHIFT | 29), |
kadonotakashi | 0:8fdf9a60065b | 127 | PTC30 = (2 << GPIO_PORT_SHIFT | 30), |
kadonotakashi | 0:8fdf9a60065b | 128 | PTC31 = (2 << GPIO_PORT_SHIFT | 31), |
kadonotakashi | 0:8fdf9a60065b | 129 | PTD0 = (3 << GPIO_PORT_SHIFT | 0 ), |
kadonotakashi | 0:8fdf9a60065b | 130 | PTD1 = (3 << GPIO_PORT_SHIFT | 1 ), |
kadonotakashi | 0:8fdf9a60065b | 131 | PTD2 = (3 << GPIO_PORT_SHIFT | 2 ), |
kadonotakashi | 0:8fdf9a60065b | 132 | PTD3 = (3 << GPIO_PORT_SHIFT | 3 ), |
kadonotakashi | 0:8fdf9a60065b | 133 | PTD4 = (3 << GPIO_PORT_SHIFT | 4 ), |
kadonotakashi | 0:8fdf9a60065b | 134 | PTD5 = (3 << GPIO_PORT_SHIFT | 5 ), |
kadonotakashi | 0:8fdf9a60065b | 135 | PTD6 = (3 << GPIO_PORT_SHIFT | 6 ), |
kadonotakashi | 0:8fdf9a60065b | 136 | PTD7 = (3 << GPIO_PORT_SHIFT | 7 ), |
kadonotakashi | 0:8fdf9a60065b | 137 | PTD8 = (3 << GPIO_PORT_SHIFT | 8 ), |
kadonotakashi | 0:8fdf9a60065b | 138 | PTD9 = (3 << GPIO_PORT_SHIFT | 9 ), |
kadonotakashi | 0:8fdf9a60065b | 139 | PTD10 = (3 << GPIO_PORT_SHIFT | 10), |
kadonotakashi | 0:8fdf9a60065b | 140 | PTD11 = (3 << GPIO_PORT_SHIFT | 11), |
kadonotakashi | 0:8fdf9a60065b | 141 | PTD12 = (3 << GPIO_PORT_SHIFT | 12), |
kadonotakashi | 0:8fdf9a60065b | 142 | PTD13 = (3 << GPIO_PORT_SHIFT | 13), |
kadonotakashi | 0:8fdf9a60065b | 143 | PTD14 = (3 << GPIO_PORT_SHIFT | 14), |
kadonotakashi | 0:8fdf9a60065b | 144 | PTD15 = (3 << GPIO_PORT_SHIFT | 15), |
kadonotakashi | 0:8fdf9a60065b | 145 | PTD16 = (3 << GPIO_PORT_SHIFT | 16), |
kadonotakashi | 0:8fdf9a60065b | 146 | PTD17 = (3 << GPIO_PORT_SHIFT | 17), |
kadonotakashi | 0:8fdf9a60065b | 147 | PTD18 = (3 << GPIO_PORT_SHIFT | 18), |
kadonotakashi | 0:8fdf9a60065b | 148 | PTD19 = (3 << GPIO_PORT_SHIFT | 19), |
kadonotakashi | 0:8fdf9a60065b | 149 | PTD20 = (3 << GPIO_PORT_SHIFT | 20), |
kadonotakashi | 0:8fdf9a60065b | 150 | PTD21 = (3 << GPIO_PORT_SHIFT | 21), |
kadonotakashi | 0:8fdf9a60065b | 151 | PTD22 = (3 << GPIO_PORT_SHIFT | 22), |
kadonotakashi | 0:8fdf9a60065b | 152 | PTD23 = (3 << GPIO_PORT_SHIFT | 23), |
kadonotakashi | 0:8fdf9a60065b | 153 | PTD24 = (3 << GPIO_PORT_SHIFT | 24), |
kadonotakashi | 0:8fdf9a60065b | 154 | PTD25 = (3 << GPIO_PORT_SHIFT | 25), |
kadonotakashi | 0:8fdf9a60065b | 155 | PTD26 = (3 << GPIO_PORT_SHIFT | 26), |
kadonotakashi | 0:8fdf9a60065b | 156 | PTD27 = (3 << GPIO_PORT_SHIFT | 27), |
kadonotakashi | 0:8fdf9a60065b | 157 | PTD28 = (3 << GPIO_PORT_SHIFT | 28), |
kadonotakashi | 0:8fdf9a60065b | 158 | PTD29 = (3 << GPIO_PORT_SHIFT | 29), |
kadonotakashi | 0:8fdf9a60065b | 159 | PTD30 = (3 << GPIO_PORT_SHIFT | 30), |
kadonotakashi | 0:8fdf9a60065b | 160 | PTD31 = (3 << GPIO_PORT_SHIFT | 31), |
kadonotakashi | 0:8fdf9a60065b | 161 | PTE0 = (4 << GPIO_PORT_SHIFT | 0 ), |
kadonotakashi | 0:8fdf9a60065b | 162 | PTE1 = (4 << GPIO_PORT_SHIFT | 1 ), |
kadonotakashi | 0:8fdf9a60065b | 163 | PTE2 = (4 << GPIO_PORT_SHIFT | 2 ), |
kadonotakashi | 0:8fdf9a60065b | 164 | PTE3 = (4 << GPIO_PORT_SHIFT | 3 ), |
kadonotakashi | 0:8fdf9a60065b | 165 | PTE4 = (4 << GPIO_PORT_SHIFT | 4 ), |
kadonotakashi | 0:8fdf9a60065b | 166 | PTE5 = (4 << GPIO_PORT_SHIFT | 5 ), |
kadonotakashi | 0:8fdf9a60065b | 167 | PTE6 = (4 << GPIO_PORT_SHIFT | 6 ), |
kadonotakashi | 0:8fdf9a60065b | 168 | PTE7 = (4 << GPIO_PORT_SHIFT | 7 ), |
kadonotakashi | 0:8fdf9a60065b | 169 | PTE8 = (4 << GPIO_PORT_SHIFT | 8 ), |
kadonotakashi | 0:8fdf9a60065b | 170 | PTE9 = (4 << GPIO_PORT_SHIFT | 9 ), |
kadonotakashi | 0:8fdf9a60065b | 171 | PTE10 = (4 << GPIO_PORT_SHIFT | 10), |
kadonotakashi | 0:8fdf9a60065b | 172 | PTE11 = (4 << GPIO_PORT_SHIFT | 11), |
kadonotakashi | 0:8fdf9a60065b | 173 | PTE12 = (4 << GPIO_PORT_SHIFT | 12), |
kadonotakashi | 0:8fdf9a60065b | 174 | PTE13 = (4 << GPIO_PORT_SHIFT | 13), |
kadonotakashi | 0:8fdf9a60065b | 175 | PTE14 = (4 << GPIO_PORT_SHIFT | 14), |
kadonotakashi | 0:8fdf9a60065b | 176 | PTE15 = (4 << GPIO_PORT_SHIFT | 15), |
kadonotakashi | 0:8fdf9a60065b | 177 | PTE16 = (4 << GPIO_PORT_SHIFT | 16), |
kadonotakashi | 0:8fdf9a60065b | 178 | PTE17 = (4 << GPIO_PORT_SHIFT | 17), |
kadonotakashi | 0:8fdf9a60065b | 179 | PTE18 = (4 << GPIO_PORT_SHIFT | 18), |
kadonotakashi | 0:8fdf9a60065b | 180 | PTE19 = (4 << GPIO_PORT_SHIFT | 19), |
kadonotakashi | 0:8fdf9a60065b | 181 | PTE20 = (4 << GPIO_PORT_SHIFT | 20), |
kadonotakashi | 0:8fdf9a60065b | 182 | PTE21 = (4 << GPIO_PORT_SHIFT | 21), |
kadonotakashi | 0:8fdf9a60065b | 183 | PTE22 = (4 << GPIO_PORT_SHIFT | 22), |
kadonotakashi | 0:8fdf9a60065b | 184 | PTE23 = (4 << GPIO_PORT_SHIFT | 23), |
kadonotakashi | 0:8fdf9a60065b | 185 | PTE24 = (4 << GPIO_PORT_SHIFT | 24), |
kadonotakashi | 0:8fdf9a60065b | 186 | PTE25 = (4 << GPIO_PORT_SHIFT | 25), |
kadonotakashi | 0:8fdf9a60065b | 187 | PTE26 = (4 << GPIO_PORT_SHIFT | 26), |
kadonotakashi | 0:8fdf9a60065b | 188 | PTE27 = (4 << GPIO_PORT_SHIFT | 27), |
kadonotakashi | 0:8fdf9a60065b | 189 | PTE28 = (4 << GPIO_PORT_SHIFT | 28), |
kadonotakashi | 0:8fdf9a60065b | 190 | PTE29 = (4 << GPIO_PORT_SHIFT | 29), |
kadonotakashi | 0:8fdf9a60065b | 191 | PTE30 = (4 << GPIO_PORT_SHIFT | 30), |
kadonotakashi | 0:8fdf9a60065b | 192 | PTE31 = (4 << GPIO_PORT_SHIFT | 31), |
kadonotakashi | 0:8fdf9a60065b | 193 | |
kadonotakashi | 0:8fdf9a60065b | 194 | LED_RED = PTC8, |
kadonotakashi | 0:8fdf9a60065b | 195 | LED_GREEN = PTD0, |
kadonotakashi | 0:8fdf9a60065b | 196 | LED_BLUE = PTC9, |
kadonotakashi | 0:8fdf9a60065b | 197 | |
kadonotakashi | 0:8fdf9a60065b | 198 | // mbed original LED naming |
kadonotakashi | 0:8fdf9a60065b | 199 | LED1 = LED_RED, |
kadonotakashi | 0:8fdf9a60065b | 200 | LED2 = LED_GREEN, |
kadonotakashi | 0:8fdf9a60065b | 201 | LED3 = LED_BLUE, |
kadonotakashi | 0:8fdf9a60065b | 202 | LED4 = LED_RED, |
kadonotakashi | 0:8fdf9a60065b | 203 | |
kadonotakashi | 0:8fdf9a60065b | 204 | // Standardized button names |
kadonotakashi | 0:8fdf9a60065b | 205 | BUTTON1 = PTA12, |
kadonotakashi | 0:8fdf9a60065b | 206 | BUTTON2 = PTA13, |
kadonotakashi | 0:8fdf9a60065b | 207 | BUTTON3 = PTA15, |
kadonotakashi | 0:8fdf9a60065b | 208 | |
kadonotakashi | 0:8fdf9a60065b | 209 | // USB Pins |
kadonotakashi | 0:8fdf9a60065b | 210 | USBTX = PTB17, |
kadonotakashi | 0:8fdf9a60065b | 211 | USBRX = PTB16, |
kadonotakashi | 0:8fdf9a60065b | 212 | |
kadonotakashi | 0:8fdf9a60065b | 213 | I2C_SCL = PTC10, |
kadonotakashi | 0:8fdf9a60065b | 214 | I2C_SDA = PTC11, |
kadonotakashi | 0:8fdf9a60065b | 215 | |
kadonotakashi | 0:8fdf9a60065b | 216 | DAC0_OUT = 0xFEFE, /* DAC does not have Pin Name in RM */ |
kadonotakashi | 0:8fdf9a60065b | 217 | |
kadonotakashi | 0:8fdf9a60065b | 218 | SPI_MOSI = PTE3, |
kadonotakashi | 0:8fdf9a60065b | 219 | SPI_MISO = PTE1, |
kadonotakashi | 0:8fdf9a60065b | 220 | SPI_SCK = PTE2, |
kadonotakashi | 0:8fdf9a60065b | 221 | SPI_PERSISTENT_MEM_CS = PTE4, |
kadonotakashi | 0:8fdf9a60065b | 222 | |
kadonotakashi | 0:8fdf9a60065b | 223 | // Not connected |
kadonotakashi | 0:8fdf9a60065b | 224 | NC = (int)0xFFFFFFFF |
kadonotakashi | 0:8fdf9a60065b | 225 | } PinName; |
kadonotakashi | 0:8fdf9a60065b | 226 | |
kadonotakashi | 0:8fdf9a60065b | 227 | |
kadonotakashi | 0:8fdf9a60065b | 228 | typedef enum { |
kadonotakashi | 0:8fdf9a60065b | 229 | PullNone = 0, |
kadonotakashi | 0:8fdf9a60065b | 230 | PullDown = 1, |
kadonotakashi | 0:8fdf9a60065b | 231 | PullUp = 2, |
kadonotakashi | 0:8fdf9a60065b | 232 | PullDefault = PullUp |
kadonotakashi | 0:8fdf9a60065b | 233 | } PinMode; |
kadonotakashi | 0:8fdf9a60065b | 234 | |
kadonotakashi | 0:8fdf9a60065b | 235 | #ifdef __cplusplus |
kadonotakashi | 0:8fdf9a60065b | 236 | } |
kadonotakashi | 0:8fdf9a60065b | 237 | #endif |
kadonotakashi | 0:8fdf9a60065b | 238 | |
kadonotakashi | 0:8fdf9a60065b | 239 | #endif |