...
Dependents: 2doejemplo Labo_TRSE_Drone
Fork of mbed by
LPC11U24/PinNames.h@54:71b101360fb9, 2013-01-08 (annotated)
- Committer:
- emilmont
- Date:
- Tue Jan 08 12:46:36 2013 +0000
- Revision:
- 54:71b101360fb9
- Parent:
- 44:24d45a770a51
- Child:
- 55:d722ed6a4237
Support "stream as file" use case
Unify binary libraries
Update copyright
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 44:24d45a770a51 | 1 | /* mbed Microcontroller Library |
emilmont | 54:71b101360fb9 | 2 | * Copyright (c) 2006-2013 ARM Limited |
emilmont | 44:24d45a770a51 | 3 | * |
emilmont | 44:24d45a770a51 | 4 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
emilmont | 44:24d45a770a51 | 5 | * of this software and associated documentation files (the "Software"), to deal |
emilmont | 44:24d45a770a51 | 6 | * in the Software without restriction, including without limitation the rights |
emilmont | 44:24d45a770a51 | 7 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
emilmont | 44:24d45a770a51 | 8 | * copies of the Software, and to permit persons to whom the Software is |
emilmont | 44:24d45a770a51 | 9 | * furnished to do so, subject to the following conditions: |
emilmont | 44:24d45a770a51 | 10 | * |
emilmont | 44:24d45a770a51 | 11 | * The above copyright notice and this permission notice shall be included in |
emilmont | 44:24d45a770a51 | 12 | * all copies or substantial portions of the Software. |
emilmont | 44:24d45a770a51 | 13 | * |
emilmont | 44:24d45a770a51 | 14 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
emilmont | 44:24d45a770a51 | 15 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
emilmont | 44:24d45a770a51 | 16 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
emilmont | 44:24d45a770a51 | 17 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
emilmont | 44:24d45a770a51 | 18 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
emilmont | 44:24d45a770a51 | 19 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
emilmont | 44:24d45a770a51 | 20 | * SOFTWARE. |
emilmont | 44:24d45a770a51 | 21 | */ |
emilmont | 44:24d45a770a51 | 22 | #ifndef MBED_PINNAMES_H |
emilmont | 44:24d45a770a51 | 23 | #define MBED_PINNAMES_H |
emilmont | 44:24d45a770a51 | 24 | |
emilmont | 44:24d45a770a51 | 25 | #include "cmsis.h" |
emilmont | 44:24d45a770a51 | 26 | |
emilmont | 44:24d45a770a51 | 27 | #ifdef __cplusplus |
emilmont | 44:24d45a770a51 | 28 | extern "C" { |
emilmont | 44:24d45a770a51 | 29 | #endif |
emilmont | 44:24d45a770a51 | 30 | |
emilmont | 44:24d45a770a51 | 31 | typedef enum { |
emilmont | 44:24d45a770a51 | 32 | PIN_INPUT, |
emilmont | 44:24d45a770a51 | 33 | PIN_OUTPUT |
emilmont | 44:24d45a770a51 | 34 | } PinDirection; |
emilmont | 44:24d45a770a51 | 35 | |
emilmont | 44:24d45a770a51 | 36 | #define PORT_SHIFT 5 |
emilmont | 44:24d45a770a51 | 37 | |
emilmont | 44:24d45a770a51 | 38 | typedef enum { |
emilmont | 44:24d45a770a51 | 39 | // LPC11U Pin Names |
emilmont | 44:24d45a770a51 | 40 | P0_0 = 0, |
emilmont | 44:24d45a770a51 | 41 | P0_1 = 1, |
emilmont | 44:24d45a770a51 | 42 | P0_2 = 2, |
emilmont | 44:24d45a770a51 | 43 | P0_3 = 3, |
emilmont | 44:24d45a770a51 | 44 | P0_4 = 4, |
emilmont | 44:24d45a770a51 | 45 | P0_5 = 5, |
emilmont | 44:24d45a770a51 | 46 | P0_6 = 6, |
emilmont | 44:24d45a770a51 | 47 | P0_7 = 7, |
emilmont | 44:24d45a770a51 | 48 | P0_8 = 8, |
emilmont | 44:24d45a770a51 | 49 | P0_9 = 9, |
emilmont | 44:24d45a770a51 | 50 | P0_10 = 10, |
emilmont | 44:24d45a770a51 | 51 | P0_11 = 11, |
emilmont | 44:24d45a770a51 | 52 | P0_12 = 12, |
emilmont | 44:24d45a770a51 | 53 | P0_13 = 13, |
emilmont | 44:24d45a770a51 | 54 | P0_14 = 14, |
emilmont | 44:24d45a770a51 | 55 | P0_15 = 15, |
emilmont | 44:24d45a770a51 | 56 | P0_16 = 16, |
emilmont | 44:24d45a770a51 | 57 | P0_17 = 17, |
emilmont | 44:24d45a770a51 | 58 | P0_18 = 18, |
emilmont | 44:24d45a770a51 | 59 | P0_19 = 19, |
emilmont | 44:24d45a770a51 | 60 | P0_20 = 20, |
emilmont | 44:24d45a770a51 | 61 | P0_21 = 21, |
emilmont | 44:24d45a770a51 | 62 | P0_22 = 22, |
emilmont | 44:24d45a770a51 | 63 | P0_23 = 23, |
emilmont | 44:24d45a770a51 | 64 | P0_24 = 24, |
emilmont | 44:24d45a770a51 | 65 | P0_25 = 25, |
emilmont | 44:24d45a770a51 | 66 | P0_26 = 26, |
emilmont | 44:24d45a770a51 | 67 | P0_27 = 27, |
emilmont | 44:24d45a770a51 | 68 | |
emilmont | 44:24d45a770a51 | 69 | P1_0 = 32, |
emilmont | 44:24d45a770a51 | 70 | P1_1 = 33, |
emilmont | 44:24d45a770a51 | 71 | P1_2 = 34, |
emilmont | 44:24d45a770a51 | 72 | P1_3 = 35, |
emilmont | 44:24d45a770a51 | 73 | P1_4 = 36, |
emilmont | 44:24d45a770a51 | 74 | P1_5 = 37, |
emilmont | 44:24d45a770a51 | 75 | P1_6 = 38, |
emilmont | 44:24d45a770a51 | 76 | P1_7 = 39, |
emilmont | 44:24d45a770a51 | 77 | P1_8 = 40, |
emilmont | 44:24d45a770a51 | 78 | P1_9 = 41, |
emilmont | 44:24d45a770a51 | 79 | P1_10 = 42, |
emilmont | 44:24d45a770a51 | 80 | P1_11 = 43, |
emilmont | 44:24d45a770a51 | 81 | P1_12 = 44, |
emilmont | 44:24d45a770a51 | 82 | P1_13 = 45, |
emilmont | 44:24d45a770a51 | 83 | P1_14 = 46, |
emilmont | 44:24d45a770a51 | 84 | P1_15 = 47, |
emilmont | 44:24d45a770a51 | 85 | P1_16 = 48, |
emilmont | 44:24d45a770a51 | 86 | P1_17 = 49, |
emilmont | 44:24d45a770a51 | 87 | P1_18 = 50, |
emilmont | 44:24d45a770a51 | 88 | P1_19 = 51, |
emilmont | 44:24d45a770a51 | 89 | P1_20 = 52, |
emilmont | 44:24d45a770a51 | 90 | P1_21 = 53, |
emilmont | 44:24d45a770a51 | 91 | P1_22 = 54, |
emilmont | 44:24d45a770a51 | 92 | P1_23 = 55, |
emilmont | 44:24d45a770a51 | 93 | P1_24 = 56, |
emilmont | 44:24d45a770a51 | 94 | P1_25 = 57, |
emilmont | 44:24d45a770a51 | 95 | P1_26 = 58, |
emilmont | 44:24d45a770a51 | 96 | P1_27 = 59, |
emilmont | 44:24d45a770a51 | 97 | P1_28 = 60, |
emilmont | 44:24d45a770a51 | 98 | P1_29 = 61, |
emilmont | 44:24d45a770a51 | 99 | |
emilmont | 44:24d45a770a51 | 100 | P1_31 = 63, |
emilmont | 44:24d45a770a51 | 101 | |
emilmont | 44:24d45a770a51 | 102 | // mbed DIP Pin Names |
emilmont | 44:24d45a770a51 | 103 | p5 = P0_9, |
emilmont | 44:24d45a770a51 | 104 | p6 = P0_8, |
emilmont | 44:24d45a770a51 | 105 | p7 = P1_29, |
emilmont | 44:24d45a770a51 | 106 | p8 = P0_2, |
emilmont | 44:24d45a770a51 | 107 | p9 = P1_27, |
emilmont | 44:24d45a770a51 | 108 | p10 = P1_26, |
emilmont | 44:24d45a770a51 | 109 | p11 = P1_22, |
emilmont | 44:24d45a770a51 | 110 | p12 = P1_21, |
emilmont | 44:24d45a770a51 | 111 | p13 = P1_20, |
emilmont | 44:24d45a770a51 | 112 | p14 = P1_23, |
emilmont | 44:24d45a770a51 | 113 | p15 = P0_11, |
emilmont | 44:24d45a770a51 | 114 | p16 = P0_12, |
emilmont | 44:24d45a770a51 | 115 | p17 = P0_13, |
emilmont | 44:24d45a770a51 | 116 | p18 = P0_14, |
emilmont | 44:24d45a770a51 | 117 | p19 = P0_16, |
emilmont | 44:24d45a770a51 | 118 | p20 = P0_22, |
emilmont | 44:24d45a770a51 | 119 | p21 = P0_7, |
emilmont | 44:24d45a770a51 | 120 | p22 = P0_17, |
emilmont | 44:24d45a770a51 | 121 | p23 = P1_17, |
emilmont | 44:24d45a770a51 | 122 | p24 = P1_18, |
emilmont | 44:24d45a770a51 | 123 | p25 = P1_24, |
emilmont | 44:24d45a770a51 | 124 | p26 = P1_25, |
emilmont | 44:24d45a770a51 | 125 | p27 = P0_4, |
emilmont | 44:24d45a770a51 | 126 | p28 = P0_5, |
emilmont | 44:24d45a770a51 | 127 | p29 = P1_5, |
emilmont | 44:24d45a770a51 | 128 | p30 = P1_2, |
emilmont | 44:24d45a770a51 | 129 | |
emilmont | 44:24d45a770a51 | 130 | p33 = P0_3, |
emilmont | 44:24d45a770a51 | 131 | p34 = P1_15, |
emilmont | 44:24d45a770a51 | 132 | p35 = P0_20, |
emilmont | 44:24d45a770a51 | 133 | p36 = P0_21, |
emilmont | 44:24d45a770a51 | 134 | |
emilmont | 44:24d45a770a51 | 135 | // Other mbed Pin Names |
emilmont | 44:24d45a770a51 | 136 | LED1 = P1_8, |
emilmont | 44:24d45a770a51 | 137 | LED2 = P1_9, |
emilmont | 44:24d45a770a51 | 138 | LED3 = P1_10, |
emilmont | 44:24d45a770a51 | 139 | LED4 = P1_11, |
emilmont | 44:24d45a770a51 | 140 | |
emilmont | 44:24d45a770a51 | 141 | USBTX = P0_19, |
emilmont | 44:24d45a770a51 | 142 | USBRX = P0_18, |
emilmont | 44:24d45a770a51 | 143 | |
emilmont | 44:24d45a770a51 | 144 | // Not connected |
emilmont | 44:24d45a770a51 | 145 | NC = (int)0xFFFFFFFF, |
emilmont | 44:24d45a770a51 | 146 | } PinName; |
emilmont | 44:24d45a770a51 | 147 | |
emilmont | 44:24d45a770a51 | 148 | typedef enum { |
emilmont | 44:24d45a770a51 | 149 | CHANNEL0 = FLEX_INT0_IRQn, |
emilmont | 44:24d45a770a51 | 150 | CHANNEL1 = FLEX_INT1_IRQn, |
emilmont | 44:24d45a770a51 | 151 | CHANNEL2 = FLEX_INT2_IRQn, |
emilmont | 44:24d45a770a51 | 152 | CHANNEL3 = FLEX_INT3_IRQn, |
emilmont | 44:24d45a770a51 | 153 | CHANNEL4 = FLEX_INT4_IRQn, |
emilmont | 44:24d45a770a51 | 154 | CHANNEL5 = FLEX_INT5_IRQn, |
emilmont | 44:24d45a770a51 | 155 | CHANNEL6 = FLEX_INT6_IRQn, |
emilmont | 44:24d45a770a51 | 156 | CHANNEL7 = FLEX_INT7_IRQn |
emilmont | 44:24d45a770a51 | 157 | } Channel; |
emilmont | 44:24d45a770a51 | 158 | |
emilmont | 44:24d45a770a51 | 159 | typedef enum { |
emilmont | 44:24d45a770a51 | 160 | PullUp = 2, |
emilmont | 44:24d45a770a51 | 161 | PullDown = 1, |
emilmont | 44:24d45a770a51 | 162 | PullNone = 0, |
emilmont | 44:24d45a770a51 | 163 | Repeater = 3, |
emilmont | 44:24d45a770a51 | 164 | OpenDrain = 4 |
emilmont | 44:24d45a770a51 | 165 | } PinMode; |
emilmont | 44:24d45a770a51 | 166 | |
emilmont | 44:24d45a770a51 | 167 | #ifdef __cplusplus |
emilmont | 44:24d45a770a51 | 168 | } |
emilmont | 44:24d45a770a51 | 169 | #endif |
emilmont | 44:24d45a770a51 | 170 | |
emilmont | 44:24d45a770a51 | 171 | #endif |