initial fork/publish for Geneva platform

Dependencies:   ublox-cellular-driver-gen ublox-cellular-base C12832 ublox-at-cellular-interface-ext easy-connect ublox-cellular-base-n2xx ublox-at-cellular-interface-n2xx MQTT ublox-ppp-cellular-interface

Committer:
rlanders73
Date:
Fri Dec 14 18:22:02 2018 +0000
Revision:
32:3a077f470397
initial publish for Geneva

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rlanders73 32:3a077f470397 1 /* mbed Microcontroller Library
rlanders73 32:3a077f470397 2 *******************************************************************************
rlanders73 32:3a077f470397 3 * Copyright (c) 2018, Point Labs, LLC.
rlanders73 32:3a077f470397 4 * All rights reserved.
rlanders73 32:3a077f470397 5 *
rlanders73 32:3a077f470397 6 * Redistribution and use in source and binary forms, with or without
rlanders73 32:3a077f470397 7 * modification, are permitted provided that the following conditions are met:
rlanders73 32:3a077f470397 8 *
rlanders73 32:3a077f470397 9 * 1. Redistributions of source code must retain the above copyright notice,
rlanders73 32:3a077f470397 10 * this list of conditions and the following disclaimer.
rlanders73 32:3a077f470397 11 * 2. Redistributions in binary form must reproduce the above copyright notice,
rlanders73 32:3a077f470397 12 * this list of conditions and the following disclaimer in the documentation
rlanders73 32:3a077f470397 13 * and/or other materials provided with the distribution.
rlanders73 32:3a077f470397 14 * 3. Neither the name of STMicroelectronics nor the names of its contributors
rlanders73 32:3a077f470397 15 * may be used to endorse or promote products derived from this software
rlanders73 32:3a077f470397 16 * without specific prior written permission.
rlanders73 32:3a077f470397 17 *
rlanders73 32:3a077f470397 18 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
rlanders73 32:3a077f470397 19 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
rlanders73 32:3a077f470397 20 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
rlanders73 32:3a077f470397 21 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
rlanders73 32:3a077f470397 22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
rlanders73 32:3a077f470397 23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
rlanders73 32:3a077f470397 24 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
rlanders73 32:3a077f470397 25 * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
rlanders73 32:3a077f470397 26 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
rlanders73 32:3a077f470397 27 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
rlanders73 32:3a077f470397 28 *******************************************************************************
rlanders73 32:3a077f470397 29 */
rlanders73 32:3a077f470397 30
rlanders73 32:3a077f470397 31 #ifndef GENEVA_PINS_H
rlanders73 32:3a077f470397 32 #define GENEVA_PINS_H
rlanders73 32:3a077f470397 33
rlanders73 32:3a077f470397 34 #ifdef __cplusplus
rlanders73 32:3a077f470397 35 extern "C" {
rlanders73 32:3a077f470397 36 #endif
rlanders73 32:3a077f470397 37
rlanders73 32:3a077f470397 38 #define TX PA_9
rlanders73 32:3a077f470397 39 #define RX PA_10
rlanders73 32:3a077f470397 40
rlanders73 32:3a077f470397 41 #define A7 PA_0
rlanders73 32:3a077f470397 42 #define A6 PA_4
rlanders73 32:3a077f470397 43 #define A5 PA_7
rlanders73 32:3a077f470397 44 #define A4 PA_6
rlanders73 32:3a077f470397 45 #define A3 PA_5
rlanders73 32:3a077f470397 46 #define A2 PC_2
rlanders73 32:3a077f470397 47 #define A1 PC_3
rlanders73 32:3a077f470397 48 #define A0 PA_3
rlanders73 32:3a077f470397 49
rlanders73 32:3a077f470397 50 #define B5 PC_1
rlanders73 32:3a077f470397 51 #define B4 PC_0
rlanders73 32:3a077f470397 52 #define B3 PB_1
rlanders73 32:3a077f470397 53 #define B2 PB_0
rlanders73 32:3a077f470397 54 #define B1 PC_6
rlanders73 32:3a077f470397 55 #define B0 PC_8
rlanders73 32:3a077f470397 56
rlanders73 32:3a077f470397 57 #define D7 PA_13
rlanders73 32:3a077f470397 58 #define D6 PA_14
rlanders73 32:3a077f470397 59 #define D5 PA_15
rlanders73 32:3a077f470397 60 #define D4 PB_3
rlanders73 32:3a077f470397 61 #define D3 PB_4
rlanders73 32:3a077f470397 62 #define D2 PB_5
rlanders73 32:3a077f470397 63 #define D1 PB_6
rlanders73 32:3a077f470397 64 #define D0 PB_7
rlanders73 32:3a077f470397 65
rlanders73 32:3a077f470397 66 #define C5 PB_8
rlanders73 32:3a077f470397 67 #define C4 PB_9
rlanders73 32:3a077f470397 68 #define C3 PC_10
rlanders73 32:3a077f470397 69 #define C2 PC_11
rlanders73 32:3a077f470397 70 #define C1 PC_12
rlanders73 32:3a077f470397 71 #define C0 PD_2
rlanders73 32:3a077f470397 72
rlanders73 32:3a077f470397 73
rlanders73 32:3a077f470397 74 // UARTS
rlanders73 32:3a077f470397 75 #define S1_TX PA_9
rlanders73 32:3a077f470397 76 #define S1_RX PA_10
rlanders73 32:3a077f470397 77 #define S1_CTS PB_4
rlanders73 32:3a077f470397 78 #define S1_RTS PB_3
rlanders73 32:3a077f470397 79
rlanders73 32:3a077f470397 80 #define S4_TX PC_10_ALT0
rlanders73 32:3a077f470397 81 #define S4_RX PC_11_ALT0
rlanders73 32:3a077f470397 82 #define S4_CTS PB_7
rlanders73 32:3a077f470397 83 #define S4_RTS PA_15
rlanders73 32:3a077f470397 84
rlanders73 32:3a077f470397 85 #define S5_TX PC_12
rlanders73 32:3a077f470397 86 #define S5_RX PD_2
rlanders73 32:3a077f470397 87
rlanders73 32:3a077f470397 88 #define LP_TX PC_1
rlanders73 32:3a077f470397 89 #define LP_RX PC_0
rlanders73 32:3a077f470397 90
rlanders73 32:3a077f470397 91 // LEDs
rlanders73 32:3a077f470397 92 #define LED_RED PB_15
rlanders73 32:3a077f470397 93 #define LED_GREEN PC_7
rlanders73 32:3a077f470397 94 #define LED_BLUE PC_9
rlanders73 32:3a077f470397 95
rlanders73 32:3a077f470397 96 // SPI
rlanders73 32:3a077f470397 97 #define SPI_MOSI PA_7
rlanders73 32:3a077f470397 98 #define SPI_MISO PA_6
rlanders73 32:3a077f470397 99 #define SPI_SCK PA_5
rlanders73 32:3a077f470397 100 #define SPI_CS PA_2
rlanders73 32:3a077f470397 101
rlanders73 32:3a077f470397 102 // User Button
rlanders73 32:3a077f470397 103 #define USER_BUTTON PA_1
rlanders73 32:3a077f470397 104
rlanders73 32:3a077f470397 105 // Cellular interface
rlanders73 32:3a077f470397 106 #define MDM_PIN_POLARITY (1)
rlanders73 32:3a077f470397 107 #define MODEM_ON_BOARD (1)
rlanders73 32:3a077f470397 108 #define MBED_CONF_UBLOX_CELL_BAUD_RATE (115200)
rlanders73 32:3a077f470397 109 // Modem pins
rlanders73 32:3a077f470397 110 #define MDMTXD PC_4 // Transmit Data
rlanders73 32:3a077f470397 111 #define MDMRXD PC_5 // Receive Data
rlanders73 32:3a077f470397 112 #define MDMCTS PB_13 // Clear to Send
rlanders73 32:3a077f470397 113 #define MDMDSR NC // Data Set Ready
rlanders73 32:3a077f470397 114 #define MDMDTR PB_15 // Data Terminal Ready
rlanders73 32:3a077f470397 115 #define MDMRI NC // Ring Indicator
rlanders73 32:3a077f470397 116 #define MDMRTS PB_14 // Request to Send
rlanders73 32:3a077f470397 117 #define MDMPWRON PB_2
rlanders73 32:3a077f470397 118 #define MDMRST PA_8
rlanders73 32:3a077f470397 119 #define MDMVCC PB_12
rlanders73 32:3a077f470397 120
rlanders73 32:3a077f470397 121 #define BL_MAGIC_NUMBER (0xA87B1234)
rlanders73 32:3a077f470397 122 #define BL_MAGIC_LOCATION ((unsigned long *) 0x20001000)
rlanders73 32:3a077f470397 123
rlanders73 32:3a077f470397 124 #ifdef __cplusplus
rlanders73 32:3a077f470397 125 }
rlanders73 32:3a077f470397 126 #endif
rlanders73 32:3a077f470397 127
rlanders73 32:3a077f470397 128 #endif
rlanders73 32:3a077f470397 129