Board support library for C027 - updated with thread-safe wait()

Fork of C027 by u-blox

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers C027_PinNames.h Source File

C027_PinNames.h

00001 /*  Platform header file, for the u-blox C27-C20/U20/G35 
00002 *   mbed Internet of Things Starter Kit
00003 *   http://mbed.org/platforms/u-blox-C027/
00004 *   
00005 *   Defines for pin connections of the LPC1768
00006 */
00007 
00008 #pragma once
00009 
00010 // u-blox MAX-7Q GPS/GLONASS receiver
00011 // http://www.u-blox.com/gps-modules.html
00012 // -----------------------------------------------------------
00013 // I2C (shared with LISA/SARA)
00014 #define GPSSDA      (P0_27)
00015 #define GPSSCL      (P0_28)
00016 #define GPSADR      (66<<1) // GPS I2C Address
00017 // UART 
00018 #define GPSTXD      (P0_10)
00019 #define GPSRXD      (P0_11)
00020 #define GPSBAUD     9600    // Default GPS Baud Rate
00021 // Control
00022 #define GPSRST      (P1_18) // Reset (input to GPS, active low)
00023 #define GPSPPS      (P1_19) // 1PPS Timepulse (output from GPS)
00024 #define GPSINT      (P1_22) // Interrupt (input to GPS)
00025 #define GPSEN       (P1_29) // Supply Control (high = enabled)
00026 
00027 // u-blox LISA/SARA cellular modem
00028 // http://www.u-blox.com/wireless-modules.html
00029 // -----------------------------------------------------------
00030 // UART (LPC1768 = DTE, LISA/SARA = DCE)
00031 #define MDMTXD      (P0_15) // Transmit Data
00032 #define MDMRXD      (P0_16) // Receive Data
00033 #define MDMCTS      (P0_17) // Clear to Send
00034 #define MDMDCD      (P0_18) // Data Carrier Detect
00035 #define MDMDSR      (P0_19) // Data Set Ready
00036 #define MDMDTR      (P0_20) // Data Terminal Ready (set high or use handshake)
00037 #define MDMRI       (P0_21) // Ring Indicator
00038 #define MDMRTS      (P0_22) // Request to Send (set high or use handshake)
00039 #define MDMBAUD     115200  // Default Modem Baud Rate
00040 // USB (not available on C27-G35)
00041 #define MDMUSBDP    (P0_29) // USB D+
00042 #define MDMUSBDN    (P0_30) // USB D-
00043 #define MDMUSBCON   (P2_9)  // USB Connect
00044 #define MDMUSBDET   (P0_7)  // USB Detect (n/a on REV.A board)
00045 // Control 
00046 #define MDMEN       (P2_5)  // Supply Control (high = enabled)
00047 #define MDMPWRON    (P2_6)  // 
00048 #define MDMGPIO1    (P2_7)  // GPIO1, Network status
00049 #define MDMRST      (P2_8)  // Reset (active low, set as open drain!)
00050 #define MDMLVLOE    (P0_9)  // Serial/GPIO Level Shifter Output Enable (n/a on REV.A board)
00051 #define MDMILVLOE   (P0_8)  // I2C Level Shifter Output Enable (n/a on REV.A board)
00052 
00053 // PIN header connector
00054 // for standard-based form factor with expansion board
00055 // -----------------------------------------------------------
00056 // PMW  = Pulswidth Modulator
00057 // EINT = External Interrupt
00058 // AOUT = Analog Output
00059 
00060 // Analog Ports (A0-A5)
00061 #define A0          (P0_23) //      I2S_CLK
00062 #define A1          (P0_24) //      I2S_WS
00063 #define A2          (P0_25) //      I2S_SDA
00064 #define A3          (P0_26) // AOUT
00065 #define A4          (P1_30) //
00066 #define A5          (P1_31) //
00067 // Digital Port (D0-D7)
00068 #define D0          (P4_29) //      TXD
00069 #define D1          (P4_28) //      RXD
00070 #define D2          (P2_13) // EINT
00071 #define D3          (P2_0)  // PWM
00072 #define D4          (P2_12) // EINT
00073 #define D5          (P2_1)  // PWM
00074 #define D6          (P2_2)  // PWM
00075 #define D7          (P2_11) // EINT
00076 // Digital Port (D8-D13)
00077 #define D8          (P2_4)  // PWM  
00078 #define D9          (P2_3)  // PWM
00079 #define D10         (P1_21) // PWM  SSEL
00080 #define D11         (P1_24) // PWM  MOSI
00081 #define D12         (P1_23) // PWM  MISO
00082 #define D13         (P1_20) // PWM  SCK
00083 //      GND
00084 //      AREF
00085 #define SDA         (P0_0) 
00086 #define SCL         (P0_1)
00087 
00088 // LED
00089 // -----------------------------------------------------------
00090 #define LED         (P3_25)  // RED LED (n/a on REV.A board)
00091 
00092 // CAN (TJA1040)
00093 // -----------------------------------------------------------
00094 #define CANRD       (P0_4)
00095 #define CANTD       (P0_5)
00096 #define CANS        (P0_6)  // standby (low=normal, high=standby/rxonly)
00097 
00098 // Ethernet (DP83848)
00099 // -----------------------------------------------------------
00100 #define ETHTXD0     (P1_0)
00101 #define ETHTXD1     (P1_1)
00102 #define ETHTXEN     (P1_4)
00103 #define ETHCRS      (P1_8)
00104 #define ETHRXD0     (P1_9)
00105 #define ETHRXD1     (P1_10)
00106 #define ETHRXEN     (P1_14)
00107 #define ETHREFCLK   (P1_15)
00108 #define ETHMDC      (P1_16)
00109 #define ETHMDIO     (P1_17)
00110 #define ETHOSCEN    (P1_27)
00111 #define ETHRST      (P1_28)
00112 #define ETHLINK     (P1_25) // LED_LINK 
00113 #define ETHSPEED    (P1_26) // LED_SPEED
00114 
00115 // mbed / debug IF (LPC11)
00116 // -----------------------------------------------------------
00117 // Serial Port
00118 #define USBTXD      (P0_2)  // identical USBTX        
00119 #define USBRXD      (P0_3)  // identical USBRX
00120 // ISP port
00121 #define ISP         (P2_10)
00122 
00123 // Reserved / NC pins 
00124 // -----------------------------------------------------------
00125 #define RSVD2       (P3_26)