mbed.h library with any bug fixes AV finds.
Dependents: micromouse4_encoder_testing PID_Test Lab1_Test WorkingPID ... more
targets/hal/TARGET_NXP/TARGET_LPC13XX/PinNames.h@0:ba7650f404af, 2015-11-02 (annotated)
- Committer:
- aravindsv
- Date:
- Mon Nov 02 02:26:59 2015 +0000
- Revision:
- 0:ba7650f404af
Reduced HSE_STARTUP_TIMEOUT to 500 ms, fixed some compiler warnings
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
aravindsv | 0:ba7650f404af | 1 | /* mbed Microcontroller Library |
aravindsv | 0:ba7650f404af | 2 | * Copyright (c) 2006-2013 ARM Limited |
aravindsv | 0:ba7650f404af | 3 | * |
aravindsv | 0:ba7650f404af | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
aravindsv | 0:ba7650f404af | 5 | * you may not use this file except in compliance with the License. |
aravindsv | 0:ba7650f404af | 6 | * You may obtain a copy of the License at |
aravindsv | 0:ba7650f404af | 7 | * |
aravindsv | 0:ba7650f404af | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
aravindsv | 0:ba7650f404af | 9 | * |
aravindsv | 0:ba7650f404af | 10 | * Unless required by applicable law or agreed to in writing, software |
aravindsv | 0:ba7650f404af | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
aravindsv | 0:ba7650f404af | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
aravindsv | 0:ba7650f404af | 13 | * See the License for the specific language governing permissions and |
aravindsv | 0:ba7650f404af | 14 | * limitations under the License. |
aravindsv | 0:ba7650f404af | 15 | */ |
aravindsv | 0:ba7650f404af | 16 | #ifndef MBED_PINNAMES_H |
aravindsv | 0:ba7650f404af | 17 | #define MBED_PINNAMES_H |
aravindsv | 0:ba7650f404af | 18 | |
aravindsv | 0:ba7650f404af | 19 | #include "cmsis.h" |
aravindsv | 0:ba7650f404af | 20 | |
aravindsv | 0:ba7650f404af | 21 | #ifdef __cplusplus |
aravindsv | 0:ba7650f404af | 22 | extern "C" { |
aravindsv | 0:ba7650f404af | 23 | #endif |
aravindsv | 0:ba7650f404af | 24 | |
aravindsv | 0:ba7650f404af | 25 | typedef enum { |
aravindsv | 0:ba7650f404af | 26 | PIN_INPUT, |
aravindsv | 0:ba7650f404af | 27 | PIN_OUTPUT |
aravindsv | 0:ba7650f404af | 28 | } PinDirection; |
aravindsv | 0:ba7650f404af | 29 | |
aravindsv | 0:ba7650f404af | 30 | #define PORT_SHIFT 5 |
aravindsv | 0:ba7650f404af | 31 | |
aravindsv | 0:ba7650f404af | 32 | typedef enum { |
aravindsv | 0:ba7650f404af | 33 | // LPC1347 Pin Names |
aravindsv | 0:ba7650f404af | 34 | P0_0 = 0, |
aravindsv | 0:ba7650f404af | 35 | P0_1 = 1, |
aravindsv | 0:ba7650f404af | 36 | P0_2 = 2, |
aravindsv | 0:ba7650f404af | 37 | P0_3 = 3, |
aravindsv | 0:ba7650f404af | 38 | P0_4 = 4, |
aravindsv | 0:ba7650f404af | 39 | P0_5 = 5, |
aravindsv | 0:ba7650f404af | 40 | P0_6 = 6, |
aravindsv | 0:ba7650f404af | 41 | P0_7 = 7, |
aravindsv | 0:ba7650f404af | 42 | P0_8 = 8, |
aravindsv | 0:ba7650f404af | 43 | P0_9 = 9, |
aravindsv | 0:ba7650f404af | 44 | P0_10 = 10, |
aravindsv | 0:ba7650f404af | 45 | P0_11 = 11, |
aravindsv | 0:ba7650f404af | 46 | P0_12 = 12, |
aravindsv | 0:ba7650f404af | 47 | P0_13 = 13, |
aravindsv | 0:ba7650f404af | 48 | P0_14 = 14, |
aravindsv | 0:ba7650f404af | 49 | P0_15 = 15, |
aravindsv | 0:ba7650f404af | 50 | P0_16 = 16, |
aravindsv | 0:ba7650f404af | 51 | P0_17 = 17, |
aravindsv | 0:ba7650f404af | 52 | P0_18 = 18, |
aravindsv | 0:ba7650f404af | 53 | P0_19 = 19, |
aravindsv | 0:ba7650f404af | 54 | P0_20 = 20, |
aravindsv | 0:ba7650f404af | 55 | P0_21 = 21, |
aravindsv | 0:ba7650f404af | 56 | P0_22 = 22, |
aravindsv | 0:ba7650f404af | 57 | P0_23 = 23, |
aravindsv | 0:ba7650f404af | 58 | |
aravindsv | 0:ba7650f404af | 59 | P1_13 = 45, |
aravindsv | 0:ba7650f404af | 60 | P1_14 = 46, |
aravindsv | 0:ba7650f404af | 61 | P1_15 = 47, |
aravindsv | 0:ba7650f404af | 62 | P1_16 = 48, |
aravindsv | 0:ba7650f404af | 63 | |
aravindsv | 0:ba7650f404af | 64 | P1_19 = 51, |
aravindsv | 0:ba7650f404af | 65 | P1_20 = 52, |
aravindsv | 0:ba7650f404af | 66 | P1_21 = 53, |
aravindsv | 0:ba7650f404af | 67 | P1_22 = 54, |
aravindsv | 0:ba7650f404af | 68 | P1_23 = 55, |
aravindsv | 0:ba7650f404af | 69 | P1_24 = 56, |
aravindsv | 0:ba7650f404af | 70 | P1_25 = 57, |
aravindsv | 0:ba7650f404af | 71 | P1_26 = 58, |
aravindsv | 0:ba7650f404af | 72 | P1_27 = 59, |
aravindsv | 0:ba7650f404af | 73 | P1_28 = 60, |
aravindsv | 0:ba7650f404af | 74 | P1_29 = 61, |
aravindsv | 0:ba7650f404af | 75 | |
aravindsv | 0:ba7650f404af | 76 | P1_31 = 63, |
aravindsv | 0:ba7650f404af | 77 | |
aravindsv | 0:ba7650f404af | 78 | // DIP Pin Names |
aravindsv | 0:ba7650f404af | 79 | p1 = P0_0, |
aravindsv | 0:ba7650f404af | 80 | p2 = P0_11, |
aravindsv | 0:ba7650f404af | 81 | p3 = P0_12, |
aravindsv | 0:ba7650f404af | 82 | p4 = P0_13, |
aravindsv | 0:ba7650f404af | 83 | p5 = P0_14, |
aravindsv | 0:ba7650f404af | 84 | p6 = P1_31, |
aravindsv | 0:ba7650f404af | 85 | p8 = P0_16, |
aravindsv | 0:ba7650f404af | 86 | p9 = P0_22, |
aravindsv | 0:ba7650f404af | 87 | p10 = P0_23, |
aravindsv | 0:ba7650f404af | 88 | p13 = P1_29, |
aravindsv | 0:ba7650f404af | 89 | p14 = P1_21, |
aravindsv | 0:ba7650f404af | 90 | p15 = P0_8, |
aravindsv | 0:ba7650f404af | 91 | p16 = P0_9, |
aravindsv | 0:ba7650f404af | 92 | p17 = P1_24, |
aravindsv | 0:ba7650f404af | 93 | p18 = P0_4, |
aravindsv | 0:ba7650f404af | 94 | p19 = P1_13, |
aravindsv | 0:ba7650f404af | 95 | p20 = P1_14, |
aravindsv | 0:ba7650f404af | 96 | p21 = P1_22, |
aravindsv | 0:ba7650f404af | 97 | p22 = P0_17, |
aravindsv | 0:ba7650f404af | 98 | p23 = P0_5, |
aravindsv | 0:ba7650f404af | 99 | p24 = P0_21, |
aravindsv | 0:ba7650f404af | 100 | p25 = P0_19, |
aravindsv | 0:ba7650f404af | 101 | p26 = P0_18, |
aravindsv | 0:ba7650f404af | 102 | p27 = P1_15, |
aravindsv | 0:ba7650f404af | 103 | p28 = P1_16, |
aravindsv | 0:ba7650f404af | 104 | p29 = P1_25, |
aravindsv | 0:ba7650f404af | 105 | p30 = P1_19, |
aravindsv | 0:ba7650f404af | 106 | p33 = P0_20, |
aravindsv | 0:ba7650f404af | 107 | p34 = P0_2, |
aravindsv | 0:ba7650f404af | 108 | p35 = P1_26, |
aravindsv | 0:ba7650f404af | 109 | p36 = P1_27, |
aravindsv | 0:ba7650f404af | 110 | p37 = P1_20, |
aravindsv | 0:ba7650f404af | 111 | p38 = P1_23, |
aravindsv | 0:ba7650f404af | 112 | p39 = P0_7, |
aravindsv | 0:ba7650f404af | 113 | p40 = P1_28, |
aravindsv | 0:ba7650f404af | 114 | |
aravindsv | 0:ba7650f404af | 115 | UART_TX = P0_19, |
aravindsv | 0:ba7650f404af | 116 | UART_RX = P0_18, |
aravindsv | 0:ba7650f404af | 117 | |
aravindsv | 0:ba7650f404af | 118 | // Not connected |
aravindsv | 0:ba7650f404af | 119 | NC = (int)0xFFFFFFFF, |
aravindsv | 0:ba7650f404af | 120 | |
aravindsv | 0:ba7650f404af | 121 | LED1 = p21, |
aravindsv | 0:ba7650f404af | 122 | LED2 = p21, |
aravindsv | 0:ba7650f404af | 123 | LED3 = p21, |
aravindsv | 0:ba7650f404af | 124 | LED4 = p21, |
aravindsv | 0:ba7650f404af | 125 | |
aravindsv | 0:ba7650f404af | 126 | // Standard but not supported pins |
aravindsv | 0:ba7650f404af | 127 | USBTX = NC, |
aravindsv | 0:ba7650f404af | 128 | USBRX = NC, |
aravindsv | 0:ba7650f404af | 129 | |
aravindsv | 0:ba7650f404af | 130 | } PinName; |
aravindsv | 0:ba7650f404af | 131 | |
aravindsv | 0:ba7650f404af | 132 | typedef enum { |
aravindsv | 0:ba7650f404af | 133 | CHANNEL0 = PIN_INT0_IRQn, |
aravindsv | 0:ba7650f404af | 134 | CHANNEL1 = PIN_INT1_IRQn, |
aravindsv | 0:ba7650f404af | 135 | CHANNEL2 = PIN_INT2_IRQn, |
aravindsv | 0:ba7650f404af | 136 | CHANNEL3 = PIN_INT3_IRQn, |
aravindsv | 0:ba7650f404af | 137 | CHANNEL4 = PIN_INT4_IRQn, |
aravindsv | 0:ba7650f404af | 138 | CHANNEL5 = PIN_INT5_IRQn, |
aravindsv | 0:ba7650f404af | 139 | CHANNEL6 = PIN_INT6_IRQn, |
aravindsv | 0:ba7650f404af | 140 | CHANNEL7 = PIN_INT7_IRQn |
aravindsv | 0:ba7650f404af | 141 | } Channel; |
aravindsv | 0:ba7650f404af | 142 | |
aravindsv | 0:ba7650f404af | 143 | typedef enum { |
aravindsv | 0:ba7650f404af | 144 | PullUp = 2, |
aravindsv | 0:ba7650f404af | 145 | PullDown = 1, |
aravindsv | 0:ba7650f404af | 146 | PullNone = 0, |
aravindsv | 0:ba7650f404af | 147 | Repeater = 3, |
aravindsv | 0:ba7650f404af | 148 | OpenDrain = 4, |
aravindsv | 0:ba7650f404af | 149 | PullDefault = PullDown |
aravindsv | 0:ba7650f404af | 150 | } PinMode; |
aravindsv | 0:ba7650f404af | 151 | |
aravindsv | 0:ba7650f404af | 152 | #ifdef __cplusplus |
aravindsv | 0:ba7650f404af | 153 | } |
aravindsv | 0:ba7650f404af | 154 | #endif |
aravindsv | 0:ba7650f404af | 155 | |
aravindsv | 0:ba7650f404af | 156 | #endif |