Fork to support REVB hardware.

Dependents:   C027_BootTest_revb C027_EthernetSniffTest C027_M3_SerialEcho C027_HelloWorld_revb ... more

Fork of C027 by u-blox

Revision:
0:76bb2733db5d
Child:
1:4a3bc6c3f1d0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/C027_PinNames.h	Mon Sep 30 15:58:45 2013 +0000
@@ -0,0 +1,122 @@
+/*  Platform header file, for the u-blox C27-C20/U20/G35 
+*   mbed Internet of Things Starter Kit
+*   http://mbed.org/platforms/u-blox-C27/
+*   
+*   Defines for pin connections of the LPC1768
+*/
+
+#pragma once
+
+// u-blox MAX-7Q GPS/GLONASS receiver
+// http://www.u-blox.de/gps-modules.html
+// -----------------------------------------------------------
+// I2C (shared with LISA/SARA)
+#define GPSSDA      (P0_27)
+#define GPSSCL      (P0_28)
+// UART 
+#define GPSTXD      (P0_10)
+#define GPSRXD      (P0_11)
+#define GPSBAUD     9600    // Default GPS Baud Rate
+// Control
+#define GPSRST      (P1_18) // Reset (input to GPS, active low)
+#define GPSPPS      (P1_19) // 1PPS Timepulse (output from GPS)
+#define GPSINT      (P1_22) // Interrupt (input to GPS)
+#define GPSEN       (P1_29) // Supply Control (high = enabled)
+
+// u-blox LISA/SARA cellular modem
+// http://www.u-blox.de/wireless-modules.html
+// -----------------------------------------------------------
+// UART (LPC1768 = DTE, LISA/SARA = DCE)
+#define MDMTXD      (P0_15) // Transmit Data
+#define MDMRXD      (P0_16) // Receive Data
+#define MDMCTS      (P0_17) // Clear to Send
+#define MDMDCD      (P0_18) // Data Carrier Detect
+#define MDMDSR      (P0_19) // Data Set Ready
+#define MDMDTR      (P0_20) // Data Terminal Ready (set high or use handshake)
+#define MDMRI       (P0_21) // Ring Indicator
+#define MDMRTS      (P0_22) // Request to Send (set high or use handshake)
+#define MDMBAUD     115200  // Default Modem Baud Rate
+// USB (not available on C27-G35)
+#define MDMUSBDP    (P0_29) // USB D+
+#define MDMUSBDN    (P0_30) // USB D-
+#define MDMUSBCON   (P2_9)  // USB Connect
+// Control 
+#define MDMEN       (P2_5)  // Supply Control (high = enabled)
+#define MDMPWRON    (P2_6)  // 
+#define MDMGPIO1    (P2_7)  // GPIO1, Network status
+#define MDMRST      (P2_8)  // Reset (active low, set as open drain!)
+
+// PIN header connector
+// for standard-based form factor with expansion board
+// -----------------------------------------------------------
+// PMW  = Pulswidth Modulator
+// EINT = External Interrupt
+// AOUT = Analog Output
+
+// Analog Ports (A0-A5)
+#define A0          (P0_23) //      I2S_CLK
+#define A1          (P0_24) //      I2S_WS
+#define A2          (P0_25) //      I2S_SDA
+#define A3          (P0_26) // AOUT
+#define A4          (P1_30) //
+#define A5          (P1_31) //
+// Digital Port (D0-D7)
+#define D0          (P4_29) //      TXD
+#define D1          (P4_28) //      RXD
+#define D2          (P2_13) // EINT
+#define D3          (P2_0)  // PWM
+#define D4          (P2_12) // EINT
+#define D5          (P2_1)  // PWM
+#define D6          (P2_2)  // PWM
+#define D7          (P2_11) // EINT
+// Digital Port (D8-D13)
+#define D8          (P2_4)  // PWM  
+#define D9          (P2_3)  // PWM
+#define D10         (P1_21) // PWM  SSEL
+#define D11         (P1_24) // PWM  MOSI
+#define D12         (P1_23) // PWM  MISO
+#define D13         (P1_20) // PWM  SCK
+//      GND
+//      AREF
+#define SDA         (P0_0) 
+#define SCL         (P0_1)
+
+// CAN (TJA1040)
+// -----------------------------------------------------------
+#define CANRD       (P0_4)
+#define CANTD       (P0_5)
+#define CANS        (P0_6)  // standby (low=normal, high=standby/rxonly)
+
+// Ethernet (DP83848)
+// -----------------------------------------------------------
+#define ETHTXD0     (P1_0)
+#define ETHTXD1     (P1_1)
+#define ETHTXEN     (P1_4)
+#define ETHCRS      (P1_8)
+#define ETHRXD0     (P1_9)
+#define ETHRXD1     (P1_10)
+#define ETHRXEN     (P1_14)
+#define ETHREFCLK   (P1_15)
+#define ETHMDC      (P1_16)
+#define ETHMDIO     (P1_17)
+#define ETHOSCEN    (P1_27)
+#define ETHRST      (P1_28)
+#define ETHLINK     (P1_25) // LED_LINK 
+#define ETHSPEED    (P1_26) // LED_SPEED
+
+// mbed / debug IF (LPC11)
+// -----------------------------------------------------------
+// Serial Port
+#define USBTXD      (P0_2)          
+#define USBRXD      (P0_3)          
+// ISP port
+#define ISP         (P2_10)
+
+// Reserved / NC pins 
+// -----------------------------------------------------------
+#define RSVD1       (P0_7)
+#define RSVD2       (P0_8)
+#define RSVD3       (P0_9)
+#define RSVD4       (P3_25)
+#define RSVD5       (P3_26)
+