Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: WizFi250_AP_HelloWorld
Fork of mbed-src by
vendor/NXP/LPC812/hal/PinNames.h@12:5fa2273de5db, 2013-07-24 (annotated)
- Committer:
- emimon01
- Date:
- Wed Jul 24 11:11:21 2013 +0100
- Revision:
- 12:5fa2273de5db
- Parent:
- 10:3bc89ef62ce7
Remove sources for toolchains unknown by the online compiler
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| emilmont | 10:3bc89ef62ce7 | 1 | /* mbed Microcontroller Library |
| emilmont | 10:3bc89ef62ce7 | 2 | * Copyright (c) 2006-2013 ARM Limited |
| emilmont | 10:3bc89ef62ce7 | 3 | * |
| emilmont | 10:3bc89ef62ce7 | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| emilmont | 10:3bc89ef62ce7 | 5 | * you may not use this file except in compliance with the License. |
| emilmont | 10:3bc89ef62ce7 | 6 | * You may obtain a copy of the License at |
| emilmont | 10:3bc89ef62ce7 | 7 | * |
| emilmont | 10:3bc89ef62ce7 | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| emilmont | 10:3bc89ef62ce7 | 9 | * |
| emilmont | 10:3bc89ef62ce7 | 10 | * Unless required by applicable law or agreed to in writing, software |
| emilmont | 10:3bc89ef62ce7 | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| emilmont | 10:3bc89ef62ce7 | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| emilmont | 10:3bc89ef62ce7 | 13 | * See the License for the specific language governing permissions and |
| emilmont | 10:3bc89ef62ce7 | 14 | * limitations under the License. |
| emilmont | 10:3bc89ef62ce7 | 15 | */ |
| emilmont | 10:3bc89ef62ce7 | 16 | #ifndef MBED_PINNAMES_H |
| emilmont | 10:3bc89ef62ce7 | 17 | #define MBED_PINNAMES_H |
| emilmont | 10:3bc89ef62ce7 | 18 | |
| emilmont | 10:3bc89ef62ce7 | 19 | #include "cmsis.h" |
| emilmont | 10:3bc89ef62ce7 | 20 | |
| emilmont | 10:3bc89ef62ce7 | 21 | #ifdef __cplusplus |
| emilmont | 10:3bc89ef62ce7 | 22 | extern "C" { |
| emilmont | 10:3bc89ef62ce7 | 23 | #endif |
| emilmont | 10:3bc89ef62ce7 | 24 | |
| emilmont | 10:3bc89ef62ce7 | 25 | typedef enum { |
| emilmont | 10:3bc89ef62ce7 | 26 | PIN_INPUT, |
| emilmont | 10:3bc89ef62ce7 | 27 | PIN_OUTPUT |
| emilmont | 10:3bc89ef62ce7 | 28 | } PinDirection; |
| emilmont | 10:3bc89ef62ce7 | 29 | |
| emilmont | 10:3bc89ef62ce7 | 30 | typedef enum { |
| emilmont | 10:3bc89ef62ce7 | 31 | P0_0 = 0, |
| emilmont | 10:3bc89ef62ce7 | 32 | P0_1 = 1, |
| emilmont | 10:3bc89ef62ce7 | 33 | P0_2 = 2, |
| emilmont | 10:3bc89ef62ce7 | 34 | P0_3 = 3, |
| emilmont | 10:3bc89ef62ce7 | 35 | P0_4 = 4, |
| emilmont | 10:3bc89ef62ce7 | 36 | P0_5 = 5, |
| emilmont | 10:3bc89ef62ce7 | 37 | P0_6 = 6, |
| emilmont | 10:3bc89ef62ce7 | 38 | P0_7 = 7, |
| emilmont | 10:3bc89ef62ce7 | 39 | P0_8 = 8, |
| emilmont | 10:3bc89ef62ce7 | 40 | P0_9 = 9, |
| emilmont | 10:3bc89ef62ce7 | 41 | P0_10 = 10, |
| emilmont | 10:3bc89ef62ce7 | 42 | P0_11 = 11, |
| emilmont | 10:3bc89ef62ce7 | 43 | P0_12 = 12, |
| emilmont | 10:3bc89ef62ce7 | 44 | P0_13 = 13, |
| emilmont | 10:3bc89ef62ce7 | 45 | P0_14 = 14, |
| emilmont | 10:3bc89ef62ce7 | 46 | P0_15 = 15, |
| emilmont | 10:3bc89ef62ce7 | 47 | P0_16 = 16, |
| emilmont | 10:3bc89ef62ce7 | 48 | P0_17 = 17, |
| emilmont | 10:3bc89ef62ce7 | 49 | |
| emilmont | 10:3bc89ef62ce7 | 50 | D0 = P0_0, |
| emilmont | 10:3bc89ef62ce7 | 51 | D1 = P0_4, |
| emilmont | 10:3bc89ef62ce7 | 52 | D2 = P0_6, |
| emilmont | 10:3bc89ef62ce7 | 53 | D3 = P0_8, |
| emilmont | 10:3bc89ef62ce7 | 54 | D4 = P0_9, |
| emilmont | 10:3bc89ef62ce7 | 55 | |
| emilmont | 10:3bc89ef62ce7 | 56 | D7 = P0_7, |
| emilmont | 10:3bc89ef62ce7 | 57 | D8 = P0_17, |
| emilmont | 10:3bc89ef62ce7 | 58 | D9 = P0_16, |
| emilmont | 10:3bc89ef62ce7 | 59 | D10 = P0_13, |
| emilmont | 10:3bc89ef62ce7 | 60 | D11 = P0_14, |
| emilmont | 10:3bc89ef62ce7 | 61 | D12 = P0_15, |
| emilmont | 10:3bc89ef62ce7 | 62 | D13 = P0_12, |
| emilmont | 10:3bc89ef62ce7 | 63 | |
| emilmont | 10:3bc89ef62ce7 | 64 | A4 = P0_10, |
| emilmont | 10:3bc89ef62ce7 | 65 | A5 = P0_11, |
| emilmont | 10:3bc89ef62ce7 | 66 | |
| emilmont | 10:3bc89ef62ce7 | 67 | // LPC800-MAX board |
| emilmont | 10:3bc89ef62ce7 | 68 | LED_RED = P0_7, |
| emilmont | 10:3bc89ef62ce7 | 69 | LED_GREEN = P0_17, |
| emilmont | 10:3bc89ef62ce7 | 70 | LED_BLUE = P0_16, |
| emilmont | 10:3bc89ef62ce7 | 71 | |
| emilmont | 10:3bc89ef62ce7 | 72 | // mbed original LED naming |
| emilmont | 10:3bc89ef62ce7 | 73 | LED1 = LED_BLUE, |
| emilmont | 10:3bc89ef62ce7 | 74 | LED2 = LED_GREEN, |
| emilmont | 10:3bc89ef62ce7 | 75 | LED3 = LED_RED, |
| emilmont | 10:3bc89ef62ce7 | 76 | LED4 = LED_RED, |
| emilmont | 10:3bc89ef62ce7 | 77 | |
| emilmont | 10:3bc89ef62ce7 | 78 | // Serial to USB pins |
| emilmont | 10:3bc89ef62ce7 | 79 | USBTX = P0_6, |
| emilmont | 10:3bc89ef62ce7 | 80 | USBRX = P0_1, |
| emilmont | 10:3bc89ef62ce7 | 81 | |
| emilmont | 10:3bc89ef62ce7 | 82 | // Not connected |
| emilmont | 10:3bc89ef62ce7 | 83 | NC = (int)0xFFFFFFFF, |
| emilmont | 10:3bc89ef62ce7 | 84 | } PinName; |
| emilmont | 10:3bc89ef62ce7 | 85 | |
| emilmont | 10:3bc89ef62ce7 | 86 | typedef enum { |
| emilmont | 10:3bc89ef62ce7 | 87 | PullUp = 2, |
| emilmont | 10:3bc89ef62ce7 | 88 | PullDown = 1, |
| emilmont | 10:3bc89ef62ce7 | 89 | PullNone = 0, |
| emilmont | 10:3bc89ef62ce7 | 90 | Repeater = 3, |
| emilmont | 10:3bc89ef62ce7 | 91 | OpenDrain = 4 |
| emilmont | 10:3bc89ef62ce7 | 92 | } PinMode; |
| emilmont | 10:3bc89ef62ce7 | 93 | |
| emilmont | 10:3bc89ef62ce7 | 94 | #define STDIO_UART_TX USBTX |
| emilmont | 10:3bc89ef62ce7 | 95 | #define STDIO_UART_RX USBRX |
| emilmont | 10:3bc89ef62ce7 | 96 | |
| emilmont | 10:3bc89ef62ce7 | 97 | typedef struct { |
| emilmont | 10:3bc89ef62ce7 | 98 | unsigned char n; |
| emilmont | 10:3bc89ef62ce7 | 99 | unsigned char offset; |
| emilmont | 10:3bc89ef62ce7 | 100 | } SWM_Map; |
| emilmont | 10:3bc89ef62ce7 | 101 | |
| emilmont | 10:3bc89ef62ce7 | 102 | #ifdef __cplusplus |
| emilmont | 10:3bc89ef62ce7 | 103 | } |
| emilmont | 10:3bc89ef62ce7 | 104 | #endif |
| emilmont | 10:3bc89ef62ce7 | 105 | |
| emilmont | 10:3bc89ef62ce7 | 106 | #endif |
