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.
Fork of mbed-src by
PinNames.h
00001 /* mbed Microcontroller Library 00002 * Copyright (c) 2006-2013 ARM Limited 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 #ifndef MBED_PINNAMES_H 00017 #define MBED_PINNAMES_H 00018 00019 #include "cmsis.h" 00020 00021 #ifdef __cplusplus 00022 extern "C" { 00023 #endif 00024 00025 typedef enum { 00026 PIN_INPUT, 00027 PIN_OUTPUT 00028 } PinDirection; 00029 00030 typedef enum { 00031 P0_0 = 0, 00032 P0_1 = 1, 00033 P0_2 = 2, 00034 P0_3 = 3, 00035 P0_4 = 4, 00036 P0_5 = 5, 00037 P0_6 = 6, 00038 P0_7 = 7, 00039 P0_8 = 8, 00040 P0_9 = 9, 00041 P0_10 = 10, 00042 P0_11 = 11, 00043 P0_12 = 12, 00044 P0_13 = 13, 00045 P0_14 = 14, 00046 P0_15 = 15, 00047 P0_16 = 16, 00048 P0_17 = 17, 00049 00050 D0 = P0_0, 00051 D1 = P0_4, 00052 D2 = P0_6, 00053 D3 = P0_8, 00054 D4 = P0_9, 00055 00056 D7 = P0_7, 00057 D8 = P0_17, 00058 D9 = P0_16, 00059 D10 = P0_13, 00060 D11 = P0_14, 00061 D12 = P0_15, 00062 D13 = P0_12, 00063 00064 A4 = P0_10, 00065 A5 = P0_11, 00066 00067 // LPC800-MAX board 00068 LED_RED = P0_7, 00069 LED_GREEN = P0_17, 00070 LED_BLUE = P0_16, 00071 00072 // mbed original LED naming 00073 LED1 = LED_BLUE, 00074 LED2 = LED_GREEN, 00075 LED3 = LED_RED, 00076 LED4 = LED_RED, 00077 00078 // Serial to USB pins 00079 USBTX = P0_6, 00080 USBRX = P0_1, 00081 00082 // Not connected 00083 NC = (int)0xFFFFFFFF, 00084 } PinName; 00085 00086 typedef enum { 00087 PullUp = 2, 00088 PullDown = 1, 00089 PullNone = 0, 00090 Repeater = 3, 00091 OpenDrain = 4 00092 } PinMode; 00093 00094 #define STDIO_UART_TX USBTX 00095 #define STDIO_UART_RX USBRX 00096 00097 typedef struct { 00098 unsigned char n; 00099 unsigned char offset; 00100 } SWM_Map; 00101 00102 #ifdef __cplusplus 00103 } 00104 #endif 00105 00106 #endif
Generated on Tue Jul 12 2022 13:47:01 by
1.7.2
