DongEun Koak / WizFi250Interface

Dependents:   WebSocket_WizFi250_HelloWorld IFTTT_WizFi250 AxedaGo-WizFi250 FANARM_AP_udp_server ... more

Files at this revision

API Documentation at this revision

Comitter:
kaizen
Date:
Fri Jun 26 04:19:01 2015 +0000
Parent:
12:bb8e979df6df
Child:
14:1f5121c5efcd
Child:
16:8c69e246be54
Commit message:
Remove debug member variable for WizFi250.

Changed in this revision

WizFi250/WizFi250.cpp Show annotated file Show diff for this revision Revisions of this file
WizFi250/WizFi250.h Show annotated file Show diff for this revision Revisions of this file
WizFi250/WizFi250_hal.cpp Show annotated file Show diff for this revision Revisions of this file
WizFi250Interface.cpp Show annotated file Show diff for this revision Revisions of this file
WizFi250Interface.h Show annotated file Show diff for this revision Revisions of this file
--- a/WizFi250/WizFi250.cpp	Thu Jun 25 05:16:39 2015 +0000
+++ b/WizFi250/WizFi250.cpp	Fri Jun 26 04:19:01 2015 +0000
@@ -26,7 +26,7 @@
 WizFi250 * WizFi250::_inst;
 
 
-WizFi250::WizFi250(PinName tx,PinName rx,PinName cts, PinName rts,PinName reset, PinName alarm, int baud, mbed::Serial *debug):
+WizFi250::WizFi250(PinName tx,PinName rx,PinName cts, PinName rts,PinName reset, PinName alarm, int baud):
     _wizfi(tx,rx), _reset(reset)
 {
     _inst = this;
@@ -37,17 +37,6 @@
     _state.cid = -1;
     _state.buf = new CircBuffer<char>(CFG_DATA_SIZE);
 
-    if(debug == NULL)
-    {
-    	_debug = new Serial(USBTX,USBRX);
-    	_debug->baud(baud);
-    }
-    else
-    {
-    	_debug = debug;
-    	_debug->baud(baud);
-    }
-
     initUart(cts, rts, alarm, baud);
     wait_ms(500);
 
--- a/WizFi250/WizFi250.h	Thu Jun 25 05:16:39 2015 +0000
+++ b/WizFi250/WizFi250.h	Fri Jun 26 04:19:01 2015 +0000
@@ -115,7 +115,7 @@
     };
 
 
-    WizFi250 (PinName tx, PinName rx, PinName cts, PinName rts, PinName reset, PinName alarm = NC, int baud = 115200, mbed::Serial *debug = NULL);
+    WizFi250 (PinName tx, PinName rx, PinName cts, PinName rts, PinName reset, PinName alarm = NC, int baud = 115200);
 
     // --------- WizFi250_at.cpp ---------
     void clearFlags     ();
@@ -169,7 +169,6 @@
     DigitalIn *_cts;
     DigitalOut *_rts;
     int _flow;
-    mbed::Serial *_debug;
 
     DigitalInOut _reset;
 
--- a/WizFi250/WizFi250_hal.cpp	Thu Jun 25 05:16:39 2015 +0000
+++ b/WizFi250/WizFi250_hal.cpp	Fri Jun 26 04:19:01 2015 +0000
@@ -44,7 +44,6 @@
 
     c = getUart();
 
-//    _debug->putc(c);
     recvData(c);
     //S_UartPutc(c);
 }
--- a/WizFi250Interface.cpp	Thu Jun 25 05:16:39 2015 +0000
+++ b/WizFi250Interface.cpp	Fri Jun 26 04:19:01 2015 +0000
@@ -23,8 +23,8 @@
 
 #include "WizFi250Interface.h"
 
-WizFi250Interface::WizFi250Interface(PinName tx, PinName rx, PinName cts, PinName rts, PinName reset, PinName alarm, int baud, mbed::Serial *debug):
-    WizFi250(tx, rx, cts, rts, reset, alarm, baud, debug)
+WizFi250Interface::WizFi250Interface(PinName tx, PinName rx, PinName cts, PinName rts, PinName reset, PinName alarm, int baud):
+    WizFi250(tx, rx, cts, rts, reset, alarm, baud)
 {
 
 }
--- a/WizFi250Interface.h	Thu Jun 25 05:16:39 2015 +0000
+++ b/WizFi250Interface.h	Fri Jun 26 04:19:01 2015 +0000
@@ -28,7 +28,7 @@
 class WizFi250Interface : public WizFi250{
 public:
 
-    WizFi250Interface(PinName tx, PinName rx, PinName cts, PinName rts, PinName reset, PinName alarm = NC, int baud = 115200, mbed::Serial *debug = NULL);
+    WizFi250Interface(PinName tx, PinName rx, PinName cts, PinName rts, PinName reset, PinName alarm = NC, int baud = 115200);
 
     int init(const char *name = NULL);
     int init(const char* ip, const char* mask, const char* gateway, const char* name = NULL);