...
Dependents: 2doejemplo Labo_TRSE_Drone
Fork of mbed by
LPC812/PinNames.h@62:7e6c9f46b3bd, 2013-04-17 (annotated)
- Committer:
- emilmont
- Date:
- Wed Apr 17 15:30:58 2013 +0100
- Revision:
- 62:7e6c9f46b3bd
Add NXP LPC812
[KL25Z] Use channel 0 as a prescaler for channel 1
[CodeSourcery] Fix standard library retargeting removing duplicate "_isatty"
Move parse_pins in RPC module
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
emilmont | 62:7e6c9f46b3bd | 1 | /* mbed Microcontroller Library |
emilmont | 62:7e6c9f46b3bd | 2 | * Copyright (c) 2006-2013 ARM Limited |
emilmont | 62:7e6c9f46b3bd | 3 | * |
emilmont | 62:7e6c9f46b3bd | 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
emilmont | 62:7e6c9f46b3bd | 5 | * you may not use this file except in compliance with the License. |
emilmont | 62:7e6c9f46b3bd | 6 | * You may obtain a copy of the License at |
emilmont | 62:7e6c9f46b3bd | 7 | * |
emilmont | 62:7e6c9f46b3bd | 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
emilmont | 62:7e6c9f46b3bd | 9 | * |
emilmont | 62:7e6c9f46b3bd | 10 | * Unless required by applicable law or agreed to in writing, software |
emilmont | 62:7e6c9f46b3bd | 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
emilmont | 62:7e6c9f46b3bd | 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
emilmont | 62:7e6c9f46b3bd | 13 | * See the License for the specific language governing permissions and |
emilmont | 62:7e6c9f46b3bd | 14 | * limitations under the License. |
emilmont | 62:7e6c9f46b3bd | 15 | */ |
emilmont | 62:7e6c9f46b3bd | 16 | #ifndef MBED_PINNAMES_H |
emilmont | 62:7e6c9f46b3bd | 17 | #define MBED_PINNAMES_H |
emilmont | 62:7e6c9f46b3bd | 18 | |
emilmont | 62:7e6c9f46b3bd | 19 | #include "cmsis.h" |
emilmont | 62:7e6c9f46b3bd | 20 | |
emilmont | 62:7e6c9f46b3bd | 21 | #ifdef __cplusplus |
emilmont | 62:7e6c9f46b3bd | 22 | extern "C" { |
emilmont | 62:7e6c9f46b3bd | 23 | #endif |
emilmont | 62:7e6c9f46b3bd | 24 | |
emilmont | 62:7e6c9f46b3bd | 25 | typedef enum { |
emilmont | 62:7e6c9f46b3bd | 26 | PIN_INPUT, |
emilmont | 62:7e6c9f46b3bd | 27 | PIN_OUTPUT |
emilmont | 62:7e6c9f46b3bd | 28 | } PinDirection; |
emilmont | 62:7e6c9f46b3bd | 29 | |
emilmont | 62:7e6c9f46b3bd | 30 | typedef enum { |
emilmont | 62:7e6c9f46b3bd | 31 | P0_0 = 0, |
emilmont | 62:7e6c9f46b3bd | 32 | P0_1 = 1, |
emilmont | 62:7e6c9f46b3bd | 33 | P0_2 = 2, |
emilmont | 62:7e6c9f46b3bd | 34 | P0_3 = 3, |
emilmont | 62:7e6c9f46b3bd | 35 | P0_4 = 4, |
emilmont | 62:7e6c9f46b3bd | 36 | P0_5 = 5, |
emilmont | 62:7e6c9f46b3bd | 37 | P0_6 = 6, |
emilmont | 62:7e6c9f46b3bd | 38 | P0_7 = 7, |
emilmont | 62:7e6c9f46b3bd | 39 | P0_8 = 8, |
emilmont | 62:7e6c9f46b3bd | 40 | P0_9 = 9, |
emilmont | 62:7e6c9f46b3bd | 41 | P0_10 = 10, |
emilmont | 62:7e6c9f46b3bd | 42 | P0_11 = 11, |
emilmont | 62:7e6c9f46b3bd | 43 | P0_12 = 12, |
emilmont | 62:7e6c9f46b3bd | 44 | P0_13 = 13, |
emilmont | 62:7e6c9f46b3bd | 45 | P0_14 = 14, |
emilmont | 62:7e6c9f46b3bd | 46 | P0_15 = 15, |
emilmont | 62:7e6c9f46b3bd | 47 | P0_16 = 16, |
emilmont | 62:7e6c9f46b3bd | 48 | P0_17 = 17, |
emilmont | 62:7e6c9f46b3bd | 49 | |
emilmont | 62:7e6c9f46b3bd | 50 | D0 = P0_0, |
emilmont | 62:7e6c9f46b3bd | 51 | D1 = P0_4, |
emilmont | 62:7e6c9f46b3bd | 52 | D2 = P0_6, |
emilmont | 62:7e6c9f46b3bd | 53 | D3 = P0_8, |
emilmont | 62:7e6c9f46b3bd | 54 | D4 = P0_9, |
emilmont | 62:7e6c9f46b3bd | 55 | |
emilmont | 62:7e6c9f46b3bd | 56 | D7 = P0_7, |
emilmont | 62:7e6c9f46b3bd | 57 | D8 = P0_17, |
emilmont | 62:7e6c9f46b3bd | 58 | D9 = P0_16, |
emilmont | 62:7e6c9f46b3bd | 59 | D10 = P0_13, |
emilmont | 62:7e6c9f46b3bd | 60 | D11 = P0_14, |
emilmont | 62:7e6c9f46b3bd | 61 | D12 = P0_15, |
emilmont | 62:7e6c9f46b3bd | 62 | D13 = P0_12, |
emilmont | 62:7e6c9f46b3bd | 63 | |
emilmont | 62:7e6c9f46b3bd | 64 | A4 = P0_10, |
emilmont | 62:7e6c9f46b3bd | 65 | A5 = P0_11, |
emilmont | 62:7e6c9f46b3bd | 66 | |
emilmont | 62:7e6c9f46b3bd | 67 | // LPC800-MAX board |
emilmont | 62:7e6c9f46b3bd | 68 | LED_RED = P0_7, |
emilmont | 62:7e6c9f46b3bd | 69 | LED_GREEN = P0_17, |
emilmont | 62:7e6c9f46b3bd | 70 | LED_BLUE = P0_16, |
emilmont | 62:7e6c9f46b3bd | 71 | |
emilmont | 62:7e6c9f46b3bd | 72 | // mbed original LED naming |
emilmont | 62:7e6c9f46b3bd | 73 | LED1 = LED_BLUE, |
emilmont | 62:7e6c9f46b3bd | 74 | LED2 = LED_GREEN, |
emilmont | 62:7e6c9f46b3bd | 75 | LED3 = LED_RED, |
emilmont | 62:7e6c9f46b3bd | 76 | LED4 = LED_RED, |
emilmont | 62:7e6c9f46b3bd | 77 | |
emilmont | 62:7e6c9f46b3bd | 78 | // Serial to USB pins |
emilmont | 62:7e6c9f46b3bd | 79 | USBTX = P0_6, |
emilmont | 62:7e6c9f46b3bd | 80 | USBRX = P0_1, |
emilmont | 62:7e6c9f46b3bd | 81 | |
emilmont | 62:7e6c9f46b3bd | 82 | // Not connected |
emilmont | 62:7e6c9f46b3bd | 83 | NC = (int)0xFFFFFFFF, |
emilmont | 62:7e6c9f46b3bd | 84 | } PinName; |
emilmont | 62:7e6c9f46b3bd | 85 | |
emilmont | 62:7e6c9f46b3bd | 86 | typedef enum { |
emilmont | 62:7e6c9f46b3bd | 87 | PullUp = 2, |
emilmont | 62:7e6c9f46b3bd | 88 | PullDown = 1, |
emilmont | 62:7e6c9f46b3bd | 89 | PullNone = 0, |
emilmont | 62:7e6c9f46b3bd | 90 | Repeater = 3, |
emilmont | 62:7e6c9f46b3bd | 91 | OpenDrain = 4 |
emilmont | 62:7e6c9f46b3bd | 92 | } PinMode; |
emilmont | 62:7e6c9f46b3bd | 93 | |
emilmont | 62:7e6c9f46b3bd | 94 | #define STDIO_UART_TX USBTX |
emilmont | 62:7e6c9f46b3bd | 95 | #define STDIO_UART_RX USBRX |
emilmont | 62:7e6c9f46b3bd | 96 | |
emilmont | 62:7e6c9f46b3bd | 97 | typedef struct { |
emilmont | 62:7e6c9f46b3bd | 98 | unsigned char n; |
emilmont | 62:7e6c9f46b3bd | 99 | unsigned char offset; |
emilmont | 62:7e6c9f46b3bd | 100 | } SWM_Map; |
emilmont | 62:7e6c9f46b3bd | 101 | |
emilmont | 62:7e6c9f46b3bd | 102 | #ifdef __cplusplus |
emilmont | 62:7e6c9f46b3bd | 103 | } |
emilmont | 62:7e6c9f46b3bd | 104 | #endif |
emilmont | 62:7e6c9f46b3bd | 105 | |
emilmont | 62:7e6c9f46b3bd | 106 | #endif |