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.
Dependencies: RadioHeadLite
Geneva.h
00001 /* mbed Microcontroller Library 00002 ******************************************************************************* 00003 * Copyright (c) 2018, Point Labs, LLC. 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 GENEVA_PINS_H 00032 #define GENEVA_PINS_H 00033 00034 #ifdef __cplusplus 00035 extern "C" { 00036 #endif 00037 00038 #define TX PA_9 00039 #define RX PA_10 00040 00041 #define A7 PA_0 00042 #define A6 PA_4 00043 #define A5 PA_7 00044 #define A4 PA_6 00045 #define A3 PA_5 00046 #define A2 PC_2 00047 #define A1 PC_3 00048 #define A0 PA_3 00049 00050 #define B5 PC_1 00051 #define B4 PC_0 00052 #define B3 PB_1 00053 #define B2 PB_0 00054 #define B1 PC_6 00055 #define B0 PC_8 00056 00057 #define D7 PA_13 00058 #define D6 PA_14 00059 #define D5 PA_15 00060 #define D4 PB_3 00061 #define D3 PB_4 00062 #define D2 PB_5 00063 #define D1 PB_6 00064 #define D0 PB_7 00065 00066 #define C5 PB_8 00067 #define C4 PB_9 00068 #define C3 PC_10 00069 #define C2 PC_11 00070 #define C1 PC_12 00071 #define C0 PD_2 00072 00073 00074 // UARTS 00075 #define S1_TX PA_9 00076 #define S1_RX PA_10 00077 #define S1_CTS PB_4 00078 #define S1_RTS PB_3 00079 00080 #define S4_TX PC_10_ALT0 00081 #define S4_RX PC_11_ALT0 00082 #define S4_CTS PB_7 00083 #define S4_RTS PA_15 00084 00085 #define S5_TX PC_12 00086 #define S5_RX PD_2 00087 00088 #define LP_TX PC_1 00089 #define LP_RX PC_0 00090 00091 // LEDs 00092 #define LED_RED PB_15 00093 #define LED_GREEN PC_7 00094 #define LED_BLUE PB_12 00095 00096 // SPI 00097 #define SPI_MOSI PA_7 00098 #define SPI_MISO PA_6 00099 #define SPI_SCK PA_5 00100 #define SPI_CS PA_2 00101 00102 // User Button 00103 #define USER_BUTTON PA_1 00104 00105 // Cellular interface 00106 //#define MDM_PIN_POLARITY (1) 00107 //#define MODEM_ON_BOARD (1) 00108 //#define MBED_CONF_UBLOX_CELL_BAUD_RATE (115200) 00109 00110 // Modem pins 00111 //#define MDMTXD PC_4 // Transmit Data 00112 //#define MDMRXD PC_5 // Receive Data 00113 //#define MDMCTS PB_13 // Clear to Send 00114 //#define MDMDSR NC // Data Set Ready 00115 //#define MDMDTR PB_15 // Data Terminal Ready 00116 //#define MDMRI NC // Ring Indicator 00117 //#define MDMRTS PB_14 // Request to Send 00118 //#define MDMPWRON PB_2 00119 //#define MDMRST PA_8 00120 //#define MDMVCC PB_12 00121 00122 // Charger 00123 #define nCHG_TMR_EN PB_10 00124 #define CHG_SEL PB_11 00125 00126 // Some nice functions 00127 #define rLED 4 00128 #define gLED 2 00129 #define bLED 1 00130 00131 #define BL_MAGIC_NUMBER (0xA87B1234) 00132 #define BL_MAGIC_LOCATION ((unsigned long *) 0x20001000) 00133 00134 #ifdef __cplusplus 00135 } 00136 #endif 00137 00138 #endif 00139
Generated on Fri Jul 15 2022 12:18:03 by
1.7.2