Scott Hoppe / Mbed OS 6_SPI_Slave

Dependencies:   MTS_SPI libmDot-dev-mbed5-deprecated

Fork of Dot-AT-Firmware by MultiTech

Revision:
18:adc82f3ebaf4
Parent:
16:d5cf2af81a6d
--- a/main.cpp	Mon Jun 19 15:54:03 2017 -0500
+++ b/main.cpp	Thu Dec 28 21:10:21 2017 +0000
@@ -1,10 +1,19 @@
 #include "mbed.h"
 #include "mDot.h"
-#include "CommandTerminal.h"
+//#include "CommandTerminal.h"
 #include "ATSerial.h"
 #include "ATSerialFlowControl.h"
-#include "ChannelPlans.h"
+#include "MTS_SPI_Slave.h"
+//#include "ChannelPlans.h"
+#include "AT_SPI_Slave.h"
+ 
+ 
 
+ 
+ 
+ 
+ 
+/*
 #define SERIAL_BUFFER_SIZE 512
 
 Serial debug(USBTX, USBRX);
@@ -60,8 +69,8 @@
     debug.baud(dot->getDebugBaud());
     serial->baud(dot->getBaud());
 
-    CommandTerminal term(*serial);
-    CommandTerminal::_dot = dot;
+    //CommandTerminal term(*serial);
+    //CommandTerminal::_dot = dot;
 
     term.init();
 
@@ -69,4 +78,15 @@
 }
 
 #endif // UNIT_TEST
+*/
+int main(){
+    //mts::MTS_SPI_Slave* spi_slave;
+    //spi_slave = new mts::MTS_SPI_Slave(PA_7,PA_6,PA_5,PA_4,246,246);
+    
+    mts::AT_SPI_Slave* at_slave;
+    at_slave = new mts::AT_SPI_Slave(PA_7,PA_6,PA_5,PA_4,246,246);
 
+    
+    return 0;
+    
+    }