nsp specific components for the NSP version of the impact endpoint

Dependents:   mbed_nsp_endpoint_ublox_cellular mbed_nsp_endpoint_ublox_ethernet mbed_nsp_endpoint_nxp

Revision:
14:07b77fbb1985
Parent:
11:c4d02616e10f
Child:
15:a0eae7ab1e59
diff -r 6998d9c2410e -r 07b77fbb1985 MBEDEndpoint.cpp
--- a/MBEDEndpoint.cpp	Wed Apr 02 02:31:51 2014 +0000
+++ b/MBEDEndpoint.cpp	Wed Apr 02 04:44:03 2014 +0000
@@ -33,7 +33,7 @@
  extern void closedown(int code);
   
  // default constructor
- MBEDEndpoint::MBEDEndpoint(ErrorHandler *error_handler,void *ethernet) : BaseClass(error_handler,NULL) {
+ MBEDEndpoint::MBEDEndpoint(ErrorHandler *error_handler,void *transports,void *pinouts) : BaseClass(error_handler,NULL) {
      bool success = true;
      this->m_preferences = NULL;
      this->m_instance_id = 0;
@@ -55,10 +55,10 @@
 #ifdef CELLULAR_NETWORK
      this->m_cellular_modem = NULL;
      this->m_gps = NULL;
-     if (success) success = this->initializeCellularModem();
+     if (success) success = this->initializeCellularModem(transports,pinouts);
      if (success) success = this->initializeGPSReceiver();
 #else
-     if (success) success = this->initializeEthernet((EthernetInterface *)ethernet);
+     if (success) success = this->initializeEthernet((EthernetInterface *)transports);
 #endif
      if (success) this->logger()->turnLEDYellow();
      if (success) success = this->initializeTransports();
@@ -206,11 +206,11 @@
  }
  
  #ifdef CELLULAR_NETWORK
- bool MBEDEndpoint::initializeCellularModem() {
+ bool MBEDEndpoint::initializeCellularModem(void *transport,void *pinouts) {
      bool success = false;
      
      // initialize
-     if (this->m_cellular_modem == NULL) this->m_cellular_modem = new MBEDUbloxCellRadio(this->logger(),this);
+     if (this->m_cellular_modem == NULL) this->m_cellular_modem = new MBEDUbloxCellRadio(this->logger(),this,(UBLOX_MODEM *)transport,(C027 *)pinouts);
      if (this->m_cellular_modem != NULL) success = this->m_cellular_modem->connect();
      
      // return our status