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-MapleMini by
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 * Modified for Maple mini board by Zoltan Hudak, 2016 00031 * 00032 */ 00033 #ifndef MBED_PINNAMES_H 00034 #define MBED_PINNAMES_H 00035 00036 #include "cmsis.h" 00037 #include "PinNamesTypes.h" 00038 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00043 typedef enum { 00044 // Not connected 00045 NC = (int)0xFFFFFFFF, 00046 00047 PA_0 = 0x00, 00048 PA_1 = 0x01, 00049 PA_2 = 0x02, 00050 PA_3 = 0x03, 00051 PA_4 = 0x04, 00052 PA_5 = 0x05, 00053 PA_6 = 0x06, 00054 PA_7 = 0x07, 00055 PA_8 = 0x08, 00056 PA_9 = 0x09, 00057 PA_10 = 0x0A, 00058 PA_11 = 0x0B, 00059 PA_12 = 0x0C, 00060 PA_13 = 0x0D, 00061 PA_14 = 0x0E, 00062 PA_15 = 0x0F, 00063 00064 PB_0 = 0x10, 00065 PB_1 = 0x11, 00066 PB_2 = 0x12, 00067 PB_3 = 0x13, 00068 PB_4 = 0x14, 00069 PB_5 = 0x15, 00070 PB_6 = 0x16, 00071 PB_7 = 0x17, 00072 PB_8 = 0x18, 00073 PB_9 = 0x19, 00074 PB_10 = 0x1A, 00075 PB_11 = 0x1B, 00076 PB_12 = 0x1C, 00077 PB_13 = 0x1D, 00078 PB_14 = 0x1E, 00079 PB_15 = 0x1F, 00080 00081 PC_0 = NC, 00082 PC_1 = NC, 00083 PC_2 = NC, 00084 PC_3 = NC, 00085 PC_4 = NC, 00086 PC_5 = NC, 00087 PC_6 = NC, 00088 PC_7 = NC, 00089 PC_8 = NC, 00090 PC_9 = NC, 00091 PC_10 = NC, 00092 PC_11 = NC, 00093 PC_12 = NC, 00094 PC_13 = 0x2D, 00095 PC_14 = 0x2E, 00096 PC_15 = 0x2F, 00097 00098 PD_2 = NC, 00099 00100 // ADC internal channels 00101 ADC_TEMP = 0xF0, 00102 ADC_VREF = 0xF1, 00103 00104 // Arduino connector namings 00105 A0 = PA_0, 00106 A1 = PA_1, 00107 A2 = PA_4, 00108 A3 = PB_0, 00109 A4 = NC, 00110 A5 = NC, 00111 D0 = PA_3, 00112 D1 = PA_2, 00113 D2 = PA_10, 00114 D3 = PB_3, 00115 D4 = PB_5, 00116 D5 = PB_4, 00117 D6 = PB_10, 00118 D7 = PA_8, 00119 D8 = PA_9, 00120 D9 = NC, 00121 D10 = PB_6, 00122 D11 = PA_7, 00123 D12 = PA_6, 00124 D13 = PA_5, 00125 D14 = PB_9, 00126 D15 = PB_8, 00127 00128 // Generic signals namings 00129 LED1 = PB_1, 00130 USER_BUTTON = PB_8, 00131 SERIAL_TX = PA_2, 00132 SERIAL_RX = PA_3, 00133 USBTX = PA_2, 00134 USBRX = PA_3, 00135 I2C_SCL = PB_6, 00136 I2C_SDA = PB_7, 00137 SPI_MOSI = PA_7, 00138 SPI_MISO = PA_6, 00139 SPI_SCK = PA_5, 00140 SPI_CS = PB_6, 00141 PWM_OUT = PB_3 00142 00143 } PinName; 00144 00145 #ifdef __cplusplus 00146 } 00147 #endif 00148 00149 #endif
Generated on Sun Jul 24 2022 03:33:10 by
1.7.2
