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_LPC54114/TOOLCHAIN_ARM_STD/PinNames.h@171:3a7713b1edbc, 2018-11-08 (annotated)
- Committer:
- AnnaBridge
- Date:
- Thu Nov 08 11:45:42 2018 +0000
- Revision:
- 171:3a7713b1edbc
- Parent:
- TARGET_LPC54114/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC54114/TARGET_LPCXpresso/PinNames.h@148:fd96258d940d
mbed library. Release version 164
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Kojto | 148:fd96258d940d | 1 | /* mbed Microcontroller Library |
Kojto | 148:fd96258d940d | 2 | * Copyright (c) 2006-2013 ARM Limited |
Kojto | 148:fd96258d940d | 3 | * |
Kojto | 148:fd96258d940d | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
Kojto | 148:fd96258d940d | 5 | * you may not use this file except in compliance with the License. |
Kojto | 148:fd96258d940d | 6 | * You may obtain a copy of the License at |
Kojto | 148:fd96258d940d | 7 | * |
Kojto | 148:fd96258d940d | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
Kojto | 148:fd96258d940d | 9 | * |
Kojto | 148:fd96258d940d | 10 | * Unless required by applicable law or agreed to in writing, software |
Kojto | 148:fd96258d940d | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
Kojto | 148:fd96258d940d | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Kojto | 148:fd96258d940d | 13 | * See the License for the specific language governing permissions and |
Kojto | 148:fd96258d940d | 14 | * limitations under the License. |
Kojto | 148:fd96258d940d | 15 | */ |
Kojto | 148:fd96258d940d | 16 | #ifndef MBED_PINNAMES_H |
Kojto | 148:fd96258d940d | 17 | #define MBED_PINNAMES_H |
Kojto | 148:fd96258d940d | 18 | |
Kojto | 148:fd96258d940d | 19 | #include "cmsis.h" |
Kojto | 148:fd96258d940d | 20 | |
Kojto | 148:fd96258d940d | 21 | #ifdef __cplusplus |
Kojto | 148:fd96258d940d | 22 | extern "C" { |
Kojto | 148:fd96258d940d | 23 | #endif |
Kojto | 148:fd96258d940d | 24 | |
Kojto | 148:fd96258d940d | 25 | typedef enum { |
Kojto | 148:fd96258d940d | 26 | PIN_INPUT, |
Kojto | 148:fd96258d940d | 27 | PIN_OUTPUT |
Kojto | 148:fd96258d940d | 28 | } PinDirection; |
Kojto | 148:fd96258d940d | 29 | |
Kojto | 148:fd96258d940d | 30 | #define PORT_SHIFT 5 |
Kojto | 148:fd96258d940d | 31 | |
Kojto | 148:fd96258d940d | 32 | typedef enum { |
Kojto | 148:fd96258d940d | 33 | P0_0 = 0, |
Kojto | 148:fd96258d940d | 34 | P0_1 = 1, |
Kojto | 148:fd96258d940d | 35 | P0_2 = 2, |
Kojto | 148:fd96258d940d | 36 | P0_3 = 3, |
Kojto | 148:fd96258d940d | 37 | P0_4 = 4, |
Kojto | 148:fd96258d940d | 38 | P0_5 = 5, |
Kojto | 148:fd96258d940d | 39 | P0_6 = 6, |
Kojto | 148:fd96258d940d | 40 | P0_7 = 7, |
Kojto | 148:fd96258d940d | 41 | P0_8 = 8, |
Kojto | 148:fd96258d940d | 42 | P0_9 = 9, |
Kojto | 148:fd96258d940d | 43 | P0_10 = 10, |
Kojto | 148:fd96258d940d | 44 | P0_11 = 11, |
Kojto | 148:fd96258d940d | 45 | P0_12 = 12, |
Kojto | 148:fd96258d940d | 46 | P0_13 = 13, |
Kojto | 148:fd96258d940d | 47 | P0_14 = 14, |
Kojto | 148:fd96258d940d | 48 | P0_15 = 15, |
Kojto | 148:fd96258d940d | 49 | P0_16 = 16, |
Kojto | 148:fd96258d940d | 50 | P0_17 = 17, |
Kojto | 148:fd96258d940d | 51 | P0_18 = 18, |
Kojto | 148:fd96258d940d | 52 | P0_19 = 19, |
Kojto | 148:fd96258d940d | 53 | P0_20 = 20, |
Kojto | 148:fd96258d940d | 54 | P0_21 = 21, |
Kojto | 148:fd96258d940d | 55 | P0_22 = 22, |
Kojto | 148:fd96258d940d | 56 | P0_23 = 23, |
Kojto | 148:fd96258d940d | 57 | P0_24 = 24, |
Kojto | 148:fd96258d940d | 58 | P0_25 = 25, |
Kojto | 148:fd96258d940d | 59 | P0_26 = 26, |
Kojto | 148:fd96258d940d | 60 | P0_29 = 29, |
Kojto | 148:fd96258d940d | 61 | P0_30 = 30, |
Kojto | 148:fd96258d940d | 62 | P0_31 = 31, |
Kojto | 148:fd96258d940d | 63 | |
Kojto | 148:fd96258d940d | 64 | P1_0 = 32, |
Kojto | 148:fd96258d940d | 65 | P1_1 = 33, |
Kojto | 148:fd96258d940d | 66 | P1_2 = 34, |
Kojto | 148:fd96258d940d | 67 | P1_3 = 35, |
Kojto | 148:fd96258d940d | 68 | P1_4 = 36, |
Kojto | 148:fd96258d940d | 69 | P1_5 = 37, |
Kojto | 148:fd96258d940d | 70 | P1_6 = 38, |
Kojto | 148:fd96258d940d | 71 | P1_7 = 39, |
Kojto | 148:fd96258d940d | 72 | P1_8 = 40, |
Kojto | 148:fd96258d940d | 73 | P1_9 = 41, |
Kojto | 148:fd96258d940d | 74 | P1_10 = 42, |
Kojto | 148:fd96258d940d | 75 | P1_11 = 43, |
Kojto | 148:fd96258d940d | 76 | P1_12 = 44, |
Kojto | 148:fd96258d940d | 77 | P1_13 = 45, |
Kojto | 148:fd96258d940d | 78 | P1_14 = 46, |
Kojto | 148:fd96258d940d | 79 | P1_15 = 47, |
Kojto | 148:fd96258d940d | 80 | P1_16 = 48, |
Kojto | 148:fd96258d940d | 81 | P1_17 = 49, |
Kojto | 148:fd96258d940d | 82 | |
Kojto | 148:fd96258d940d | 83 | LED_RED = P0_29, |
Kojto | 148:fd96258d940d | 84 | LED_GREEN = P1_10, |
Kojto | 148:fd96258d940d | 85 | LED_BLUE = P1_9, |
Kojto | 148:fd96258d940d | 86 | |
Kojto | 148:fd96258d940d | 87 | // mbed original LED naming |
Kojto | 148:fd96258d940d | 88 | LED1 = LED_RED, |
Kojto | 148:fd96258d940d | 89 | LED2 = LED_GREEN, |
Kojto | 148:fd96258d940d | 90 | LED3 = LED_BLUE, |
Kojto | 148:fd96258d940d | 91 | LED4 = LED_RED, |
Kojto | 148:fd96258d940d | 92 | |
Kojto | 148:fd96258d940d | 93 | //Push buttons |
Kojto | 148:fd96258d940d | 94 | SW1 = P0_24, |
Kojto | 148:fd96258d940d | 95 | SW2 = P0_31, |
Kojto | 148:fd96258d940d | 96 | SW3 = P0_4, |
Kojto | 148:fd96258d940d | 97 | |
Kojto | 148:fd96258d940d | 98 | // USB Pins |
Kojto | 148:fd96258d940d | 99 | USBTX = P0_1, |
Kojto | 148:fd96258d940d | 100 | USBRX = P0_0, |
Kojto | 148:fd96258d940d | 101 | |
Kojto | 148:fd96258d940d | 102 | // Arduino Headers |
Kojto | 148:fd96258d940d | 103 | D0 = P0_8, |
Kojto | 148:fd96258d940d | 104 | D1 = P0_9, |
Kojto | 148:fd96258d940d | 105 | D2 = P0_10, |
Kojto | 148:fd96258d940d | 106 | D3 = P1_12, |
Kojto | 148:fd96258d940d | 107 | D4 = P1_13, |
Kojto | 148:fd96258d940d | 108 | D5 = P0_29, |
Kojto | 148:fd96258d940d | 109 | D6 = P1_0, |
Kojto | 148:fd96258d940d | 110 | D7 = P1_14, |
Kojto | 148:fd96258d940d | 111 | D8 = P1_16, |
Kojto | 148:fd96258d940d | 112 | D9 = P1_15, |
Kojto | 148:fd96258d940d | 113 | D10 = P1_1, |
Kojto | 148:fd96258d940d | 114 | D11 = P0_20, |
Kojto | 148:fd96258d940d | 115 | D12 = P0_18, |
Kojto | 148:fd96258d940d | 116 | D13 = P0_19, |
Kojto | 148:fd96258d940d | 117 | D14 = P0_26, |
Kojto | 148:fd96258d940d | 118 | D15 = P0_25, |
Kojto | 148:fd96258d940d | 119 | |
Kojto | 148:fd96258d940d | 120 | I2C_SCL = D15, |
Kojto | 148:fd96258d940d | 121 | I2C_SDA = D14, |
Kojto | 148:fd96258d940d | 122 | |
Kojto | 148:fd96258d940d | 123 | // Not connected |
Kojto | 148:fd96258d940d | 124 | NC = (int)0xFFFFFFFF, |
Kojto | 148:fd96258d940d | 125 | |
Kojto | 148:fd96258d940d | 126 | A0 = P0_30, |
Kojto | 148:fd96258d940d | 127 | A1 = NC, |
Kojto | 148:fd96258d940d | 128 | A2 = P1_8, |
Kojto | 148:fd96258d940d | 129 | A3 = P1_10, |
Kojto | 148:fd96258d940d | 130 | A4 = P1_4, |
Kojto | 148:fd96258d940d | 131 | A5 = P1_5 |
Kojto | 148:fd96258d940d | 132 | } PinName; |
Kojto | 148:fd96258d940d | 133 | |
Kojto | 148:fd96258d940d | 134 | |
Kojto | 148:fd96258d940d | 135 | typedef enum { |
Kojto | 148:fd96258d940d | 136 | PullNone = 0, |
Kojto | 148:fd96258d940d | 137 | PullDown = 1, |
Kojto | 148:fd96258d940d | 138 | PullUp = 2, |
Kojto | 148:fd96258d940d | 139 | PullDefault = PullUp |
Kojto | 148:fd96258d940d | 140 | } PinMode; |
Kojto | 148:fd96258d940d | 141 | |
Kojto | 148:fd96258d940d | 142 | #ifdef __cplusplus |
Kojto | 148:fd96258d940d | 143 | } |
Kojto | 148:fd96258d940d | 144 | #endif |
Kojto | 148:fd96258d940d | 145 | |
Kojto | 148:fd96258d940d | 146 | #endif |