Tyler Davis / WncControllerK64F

Dependencies:   WncControllerModified

Fork of WncControllerK64F by Avnet

Files at this revision

API Documentation at this revision

Comitter:
JMF
Date:
Wed Apr 19 15:18:48 2017 +0000
Parent:
31:d9558aefb9e0
Child:
33:0ec8be33d86d
Child:
34:1f6c6df70ba3
Commit message:
Debug output was using the UART which caused collisions with stdio who may be using the same UART. Implemented a WNCDebug class that allows the user to define where to send the debug info--UART, STDOUT, STDERR.

Changed in this revision

WncControllerK64F.cpp Show annotated file Show diff for this revision Revisions of this file
WncControllerK64F.h Show annotated file Show diff for this revision Revisions of this file
--- a/WncControllerK64F.cpp	Mon Apr 17 23:58:40 2017 +0000
+++ b/WncControllerK64F.cpp	Wed Apr 19 15:18:48 2017 +0000
@@ -30,7 +30,7 @@
 
 using namespace WncControllerK64F_fk;
 
-WncControllerK64F::WncControllerK64F(struct WncGpioPinListK64F * pPins, BufferedSerial * wnc_uart, BufferedSerial * debug_uart)
+WncControllerK64F::WncControllerK64F(struct WncGpioPinListK64F * pPins, BufferedSerial * wnc_uart, WNCDebug * debug_uart)
 {
     m_logTimer.start(); // Start the log timer now!    
     m_pDbgUart = debug_uart;
--- a/WncControllerK64F.h	Mon Apr 17 23:58:40 2017 +0000
+++ b/WncControllerK64F.h	Wed Apr 19 15:18:48 2017 +0000
@@ -32,7 +32,7 @@
 #include <string>
 #include <stdint.h>
 #include "mbed.h"
-#include "BufferedSerial.h"
+#include "WNCDebug.h"
 #include "WncController.h"
 
 namespace WncControllerK64F_fk {
@@ -77,7 +77,7 @@
      * @param wnc_uart - a pointer to the serial uart that is used to communicate with the WNC modem.
      * @param debug_uart - a pointer to a serial uart for the debug output to go out of, if NULL debug will not be output.
      */
-    WncControllerK64F(struct WncGpioPinListK64F * pPins, BufferedSerial * wnc_uart, BufferedSerial * debug_uart = NULL);
+    WncControllerK64F(struct WncGpioPinListK64F * pPins, BufferedSerial * wnc_uart, WNCDebug * debug_uart = NULL);
     
     /**
      *
@@ -116,7 +116,7 @@
     virtual void stopTimerB(void);
     virtual int  getTimerTicksB_mS(void);
 
-    BufferedSerial * m_pDbgUart;
+    WNCDebug * m_pDbgUart;
     BufferedSerial * m_pWncUart;
     WncGpioPinListK64F m_gpioPinList;
     Timer m_logTimer;