mbed library sources
Fork of mbed-src by
targets/hal/TARGET_NXP/TARGET_LPC11UXX/PinNames.h@35:db417d6d0a5c, 2013-10-16 (annotated)
- Committer:
- vsluiter
- Date:
- Wed Oct 16 07:57:27 2013 +0000
- Revision:
- 35:db417d6d0a5c
- Parent:
- 13:0645d8841f51
Changed startup_MKL25Z4.s
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
bogdanm | 13:0645d8841f51 | 1 | /* mbed Microcontroller Library |
bogdanm | 13:0645d8841f51 | 2 | * Copyright (c) 2006-2013 ARM Limited |
bogdanm | 13:0645d8841f51 | 3 | * |
bogdanm | 13:0645d8841f51 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
bogdanm | 13:0645d8841f51 | 5 | * you may not use this file except in compliance with the License. |
bogdanm | 13:0645d8841f51 | 6 | * You may obtain a copy of the License at |
bogdanm | 13:0645d8841f51 | 7 | * |
bogdanm | 13:0645d8841f51 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
bogdanm | 13:0645d8841f51 | 9 | * |
bogdanm | 13:0645d8841f51 | 10 | * Unless required by applicable law or agreed to in writing, software |
bogdanm | 13:0645d8841f51 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
bogdanm | 13:0645d8841f51 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
bogdanm | 13:0645d8841f51 | 13 | * See the License for the specific language governing permissions and |
bogdanm | 13:0645d8841f51 | 14 | * limitations under the License. |
bogdanm | 13:0645d8841f51 | 15 | */ |
bogdanm | 13:0645d8841f51 | 16 | #ifndef MBED_PINNAMES_H |
bogdanm | 13:0645d8841f51 | 17 | #define MBED_PINNAMES_H |
bogdanm | 13:0645d8841f51 | 18 | |
bogdanm | 13:0645d8841f51 | 19 | #include "cmsis.h" |
bogdanm | 13:0645d8841f51 | 20 | |
bogdanm | 13:0645d8841f51 | 21 | #ifdef __cplusplus |
bogdanm | 13:0645d8841f51 | 22 | extern "C" { |
bogdanm | 13:0645d8841f51 | 23 | #endif |
bogdanm | 13:0645d8841f51 | 24 | |
bogdanm | 13:0645d8841f51 | 25 | typedef enum { |
bogdanm | 13:0645d8841f51 | 26 | PIN_INPUT, |
bogdanm | 13:0645d8841f51 | 27 | PIN_OUTPUT |
bogdanm | 13:0645d8841f51 | 28 | } PinDirection; |
bogdanm | 13:0645d8841f51 | 29 | |
bogdanm | 13:0645d8841f51 | 30 | #define PORT_SHIFT 5 |
bogdanm | 13:0645d8841f51 | 31 | |
bogdanm | 13:0645d8841f51 | 32 | typedef enum { |
bogdanm | 13:0645d8841f51 | 33 | // LPC11U Pin Names |
bogdanm | 13:0645d8841f51 | 34 | P0_0 = 0, |
bogdanm | 13:0645d8841f51 | 35 | P0_1 = 1, |
bogdanm | 13:0645d8841f51 | 36 | P0_2 = 2, |
bogdanm | 13:0645d8841f51 | 37 | P0_3 = 3, |
bogdanm | 13:0645d8841f51 | 38 | P0_4 = 4, |
bogdanm | 13:0645d8841f51 | 39 | P0_5 = 5, |
bogdanm | 13:0645d8841f51 | 40 | P0_6 = 6, |
bogdanm | 13:0645d8841f51 | 41 | P0_7 = 7, |
bogdanm | 13:0645d8841f51 | 42 | P0_8 = 8, |
bogdanm | 13:0645d8841f51 | 43 | P0_9 = 9, |
bogdanm | 13:0645d8841f51 | 44 | P0_10 = 10, |
bogdanm | 13:0645d8841f51 | 45 | P0_11 = 11, |
bogdanm | 13:0645d8841f51 | 46 | P0_12 = 12, |
bogdanm | 13:0645d8841f51 | 47 | P0_13 = 13, |
bogdanm | 13:0645d8841f51 | 48 | P0_14 = 14, |
bogdanm | 13:0645d8841f51 | 49 | P0_15 = 15, |
bogdanm | 13:0645d8841f51 | 50 | P0_16 = 16, |
bogdanm | 13:0645d8841f51 | 51 | P0_17 = 17, |
bogdanm | 13:0645d8841f51 | 52 | P0_18 = 18, |
bogdanm | 13:0645d8841f51 | 53 | P0_19 = 19, |
bogdanm | 13:0645d8841f51 | 54 | P0_20 = 20, |
bogdanm | 13:0645d8841f51 | 55 | P0_21 = 21, |
bogdanm | 13:0645d8841f51 | 56 | P0_22 = 22, |
bogdanm | 13:0645d8841f51 | 57 | P0_23 = 23, |
bogdanm | 13:0645d8841f51 | 58 | P0_24 = 24, |
bogdanm | 13:0645d8841f51 | 59 | P0_25 = 25, |
bogdanm | 13:0645d8841f51 | 60 | P0_26 = 26, |
bogdanm | 13:0645d8841f51 | 61 | P0_27 = 27, |
bogdanm | 13:0645d8841f51 | 62 | |
bogdanm | 13:0645d8841f51 | 63 | P1_0 = 32, |
bogdanm | 13:0645d8841f51 | 64 | P1_1 = 33, |
bogdanm | 13:0645d8841f51 | 65 | P1_2 = 34, |
bogdanm | 13:0645d8841f51 | 66 | P1_3 = 35, |
bogdanm | 13:0645d8841f51 | 67 | P1_4 = 36, |
bogdanm | 13:0645d8841f51 | 68 | P1_5 = 37, |
bogdanm | 13:0645d8841f51 | 69 | P1_6 = 38, |
bogdanm | 13:0645d8841f51 | 70 | P1_7 = 39, |
bogdanm | 13:0645d8841f51 | 71 | P1_8 = 40, |
bogdanm | 13:0645d8841f51 | 72 | P1_9 = 41, |
bogdanm | 13:0645d8841f51 | 73 | P1_10 = 42, |
bogdanm | 13:0645d8841f51 | 74 | P1_11 = 43, |
bogdanm | 13:0645d8841f51 | 75 | P1_12 = 44, |
bogdanm | 13:0645d8841f51 | 76 | P1_13 = 45, |
bogdanm | 13:0645d8841f51 | 77 | P1_14 = 46, |
bogdanm | 13:0645d8841f51 | 78 | P1_15 = 47, |
bogdanm | 13:0645d8841f51 | 79 | P1_16 = 48, |
bogdanm | 13:0645d8841f51 | 80 | P1_17 = 49, |
bogdanm | 13:0645d8841f51 | 81 | P1_18 = 50, |
bogdanm | 13:0645d8841f51 | 82 | P1_19 = 51, |
bogdanm | 13:0645d8841f51 | 83 | P1_20 = 52, |
bogdanm | 13:0645d8841f51 | 84 | P1_21 = 53, |
bogdanm | 13:0645d8841f51 | 85 | P1_22 = 54, |
bogdanm | 13:0645d8841f51 | 86 | P1_23 = 55, |
bogdanm | 13:0645d8841f51 | 87 | P1_24 = 56, |
bogdanm | 13:0645d8841f51 | 88 | P1_25 = 57, |
bogdanm | 13:0645d8841f51 | 89 | P1_26 = 58, |
bogdanm | 13:0645d8841f51 | 90 | P1_27 = 59, |
bogdanm | 13:0645d8841f51 | 91 | P1_28 = 60, |
bogdanm | 13:0645d8841f51 | 92 | P1_29 = 61, |
bogdanm | 13:0645d8841f51 | 93 | |
bogdanm | 13:0645d8841f51 | 94 | P1_31 = 63, |
bogdanm | 13:0645d8841f51 | 95 | |
bogdanm | 13:0645d8841f51 | 96 | // mbed DIP Pin Names |
bogdanm | 13:0645d8841f51 | 97 | p5 = P0_9, |
bogdanm | 13:0645d8841f51 | 98 | p6 = P0_8, |
bogdanm | 13:0645d8841f51 | 99 | p7 = P1_29, |
bogdanm | 13:0645d8841f51 | 100 | p8 = P0_2, |
bogdanm | 13:0645d8841f51 | 101 | p9 = P1_27, |
bogdanm | 13:0645d8841f51 | 102 | p10 = P1_26, |
bogdanm | 13:0645d8841f51 | 103 | p11 = P1_22, |
bogdanm | 13:0645d8841f51 | 104 | p12 = P1_21, |
bogdanm | 13:0645d8841f51 | 105 | p13 = P1_20, |
bogdanm | 13:0645d8841f51 | 106 | p14 = P1_23, |
bogdanm | 13:0645d8841f51 | 107 | p15 = P0_11, |
bogdanm | 13:0645d8841f51 | 108 | p16 = P0_12, |
bogdanm | 13:0645d8841f51 | 109 | p17 = P0_13, |
bogdanm | 13:0645d8841f51 | 110 | p18 = P0_14, |
bogdanm | 13:0645d8841f51 | 111 | p19 = P0_16, |
bogdanm | 13:0645d8841f51 | 112 | p20 = P0_22, |
bogdanm | 13:0645d8841f51 | 113 | p21 = P0_7, |
bogdanm | 13:0645d8841f51 | 114 | p22 = P0_17, |
bogdanm | 13:0645d8841f51 | 115 | p23 = P1_17, |
bogdanm | 13:0645d8841f51 | 116 | p24 = P1_18, |
bogdanm | 13:0645d8841f51 | 117 | p25 = P1_24, |
bogdanm | 13:0645d8841f51 | 118 | p26 = P1_25, |
bogdanm | 13:0645d8841f51 | 119 | p27 = P0_4, |
bogdanm | 13:0645d8841f51 | 120 | p28 = P0_5, |
bogdanm | 13:0645d8841f51 | 121 | p29 = P1_5, |
bogdanm | 13:0645d8841f51 | 122 | p30 = P1_2, |
bogdanm | 13:0645d8841f51 | 123 | |
bogdanm | 13:0645d8841f51 | 124 | p33 = P0_3, |
bogdanm | 13:0645d8841f51 | 125 | p34 = P1_15, |
bogdanm | 13:0645d8841f51 | 126 | p35 = P0_20, |
bogdanm | 13:0645d8841f51 | 127 | p36 = P0_21, |
bogdanm | 13:0645d8841f51 | 128 | |
bogdanm | 13:0645d8841f51 | 129 | // Other mbed Pin Names |
bogdanm | 13:0645d8841f51 | 130 | LED1 = P1_8, |
bogdanm | 13:0645d8841f51 | 131 | LED2 = P1_9, |
bogdanm | 13:0645d8841f51 | 132 | LED3 = P1_10, |
bogdanm | 13:0645d8841f51 | 133 | LED4 = P1_11, |
bogdanm | 13:0645d8841f51 | 134 | |
bogdanm | 13:0645d8841f51 | 135 | USBTX = P0_19, |
bogdanm | 13:0645d8841f51 | 136 | USBRX = P0_18, |
bogdanm | 13:0645d8841f51 | 137 | |
bogdanm | 13:0645d8841f51 | 138 | // Not connected |
bogdanm | 13:0645d8841f51 | 139 | NC = (int)0xFFFFFFFF, |
bogdanm | 13:0645d8841f51 | 140 | } PinName; |
bogdanm | 13:0645d8841f51 | 141 | |
bogdanm | 13:0645d8841f51 | 142 | typedef enum { |
bogdanm | 13:0645d8841f51 | 143 | CHANNEL0 = FLEX_INT0_IRQn, |
bogdanm | 13:0645d8841f51 | 144 | CHANNEL1 = FLEX_INT1_IRQn, |
bogdanm | 13:0645d8841f51 | 145 | CHANNEL2 = FLEX_INT2_IRQn, |
bogdanm | 13:0645d8841f51 | 146 | CHANNEL3 = FLEX_INT3_IRQn, |
bogdanm | 13:0645d8841f51 | 147 | CHANNEL4 = FLEX_INT4_IRQn, |
bogdanm | 13:0645d8841f51 | 148 | CHANNEL5 = FLEX_INT5_IRQn, |
bogdanm | 13:0645d8841f51 | 149 | CHANNEL6 = FLEX_INT6_IRQn, |
bogdanm | 13:0645d8841f51 | 150 | CHANNEL7 = FLEX_INT7_IRQn |
bogdanm | 13:0645d8841f51 | 151 | } Channel; |
bogdanm | 13:0645d8841f51 | 152 | |
bogdanm | 13:0645d8841f51 | 153 | typedef enum { |
bogdanm | 13:0645d8841f51 | 154 | PullUp = 2, |
bogdanm | 13:0645d8841f51 | 155 | PullDown = 1, |
bogdanm | 13:0645d8841f51 | 156 | PullNone = 0, |
bogdanm | 13:0645d8841f51 | 157 | Repeater = 3, |
bogdanm | 13:0645d8841f51 | 158 | OpenDrain = 4 |
bogdanm | 13:0645d8841f51 | 159 | } PinMode; |
bogdanm | 13:0645d8841f51 | 160 | |
bogdanm | 13:0645d8841f51 | 161 | #ifdef __cplusplus |
bogdanm | 13:0645d8841f51 | 162 | } |
bogdanm | 13:0645d8841f51 | 163 | #endif |
bogdanm | 13:0645d8841f51 | 164 | |
bogdanm | 13:0645d8841f51 | 165 | #endif |