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.
PinNames.h
00001 /* mbed Microcontroller Library 00002 ******************************************************************************* 00003 * Copyright (c) 2014, STMicroelectronics 00004 * All rights reserved. 00005 * 00006 * Redistribution and use in source and binary forms, with or without 00007 * modification, are permitted provided that the following conditions are met: 00008 * 00009 * 1. Redistributions of source code must retain the above copyright notice, 00010 * this list of conditions and the following disclaimer. 00011 * 2. Redistributions in binary form must reproduce the above copyright notice, 00012 * this list of conditions and the following disclaimer in the documentation 00013 * and/or other materials provided with the distribution. 00014 * 3. Neither the name of STMicroelectronics nor the names of its contributors 00015 * may be used to endorse or promote products derived from this software 00016 * without specific prior written permission. 00017 * 00018 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00019 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00020 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 00021 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE 00022 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00023 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 00024 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 00025 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 00026 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 00027 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00028 ******************************************************************************* 00029 00030 */ 00031 #ifndef MBED_PINNAMES_H 00032 #define MBED_PINNAMES_H 00033 00034 #include "cmsis.h" 00035 #include "PinNamesTypes.h" 00036 00037 #ifdef __cplusplus 00038 extern "C" { 00039 #endif 00040 00041 typedef enum { 00042 // Not connected 00043 NC = (int)0xFFFFFFFF, 00044 00045 // Ports 00046 PA_0 = 0x00, 00047 PA_1 = 0x01, 00048 PA_2 = 0x02, 00049 PA_3 = 0x03, 00050 PA_4 = 0x04, 00051 PA_5 = 0x05, 00052 PA_6 = 0x06, 00053 PA_7 = 0x07, 00054 PA_8 = 0x08, 00055 PA_9 = 0x09, 00056 PA_10 = 0x0A, 00057 PA_11 = 0x0B, 00058 PA_12 = 0x0C, 00059 PA_13 = NC, 00060 PA_14 = NC, 00061 PA_15 = 0x0F, 00062 00063 PB_0 = 0x10, 00064 PB_1 = 0x11, 00065 PB_2 = NC, 00066 PB_3 = 0x13, 00067 PB_4 = 0x14, 00068 PB_5 = 0x15, 00069 PB_6 = 0x16, 00070 PB_7 = 0x17, 00071 PB_8 = 0x18, 00072 PB_9 = 0x19, 00073 PB_10 = 0x1A, 00074 PB_11 = 0x1B, 00075 PB_12 = 0x1C, 00076 PB_13 = 0x1D, 00077 PB_14 = 0x1E, 00078 PB_15 = 0x1F, 00079 00080 PC_0 = NC, 00081 PC_1 = NC, 00082 PC_2 = NC, 00083 PC_3 = NC, 00084 PC_4 = NC, 00085 PC_5 = NC, 00086 PC_6 = NC, 00087 PC_7 = NC, 00088 PC_8 = NC, 00089 PC_9 = NC, 00090 PC_10 = NC, 00091 PC_11 = NC, 00092 PC_12 = NC, 00093 PC_13 = 0x2D, 00094 PC_14 = 0x2E, 00095 PC_15 = 0x2F, 00096 00097 PD_2 = NC, 00098 00099 // ADC internal channels 00100 ADC_TEMP = 0xF0, 00101 ADC_VREF = 0xF1, 00102 00103 // Arduino connector namings 00104 A0 = PA_0, 00105 A1 = PA_1, 00106 A2 = PA_4, 00107 A3 = PB_0, 00108 A4 = NC, 00109 A5 = NC, 00110 D0 = PA_3, 00111 D1 = PA_2, 00112 D2 = PA_10, 00113 D3 = PB_3, 00114 D4 = PB_5, 00115 D5 = PB_4, 00116 D6 = PB_10, 00117 D7 = PA_8, 00118 D8 = PA_9, 00119 D9 = NC, 00120 D10 = PB_6, 00121 D11 = PA_7, 00122 D12 = PA_6, 00123 D13 = PA_5, 00124 D14 = PB_9, 00125 D15 = PB_8, 00126 00127 // Generic signals namings 00128 Red_Led = NC, 00129 Green_Led = PC_13, 00130 Blue_Led = NC, 00131 LED1 = PC_13, 00132 LED2 = NC, 00133 LED3 = NC, 00134 LED4 = NC, 00135 USER_BUTTON = NC, 00136 SERIAL_TX = PA_2, 00137 SERIAL_RX = PA_3, 00138 USBTX = PA_2, 00139 USBRX = PB_3, 00140 CANRX = PB_8, 00141 CANTX = PB_9, 00142 I2C_SCL = PB_8, 00143 I2C_SDA = PB_9, 00144 SPI_MOSI = PA_7, 00145 SPI_MISO = PA_6, 00146 SPI_SCK = PA_5, 00147 SPI_CS = PB_6, 00148 PWM_OUT = PB_3 00149 } PinName; 00150 00151 #ifdef __cplusplus 00152 } 00153 #endif 00154 00155 #endif
Generated on Wed Jul 20 2022 04:40:14 by
