WNCInterface

Dependencies:   WncControllerK64F

Fork of WNCInterface by Avnet

Revision:
8:4b38bfb1704d
Parent:
7:fded23f50479
Child:
9:9f0578ff157a
--- a/WNCInterface.h	Thu Oct 06 21:17:18 2016 +0000
+++ b/WNCInterface.h	Fri Oct 07 00:36:47 2016 +0000
@@ -79,8 +79,8 @@
 #define FATAL_WNC_ERROR(v)  {extern char *_fatal_err_loc;_fatal_err_loc=FATAL_STR;PFE;DORET(v);}
 #endif
 
-#define M_LOCK  WNCInterface::WNCLock->lock()
-#define M_ULOCK WNCInterface::WNCLock->unlock()
+#define M_LOCK  {extern Mutex _WNCLock; _WNCLock.lock();}
+#define M_ULOCK {extern Mutex _WNCLock; _WNCLock.unlock();}
 
 // Because the WncController has intermixed socket & interface functionallity
 // will need to make the Socket class a friend of the Interface class. This 
@@ -152,7 +152,6 @@
 private:
   static WncController_fk::WncIpStats myNetStats;     //maintaint the network statistics
   static WncControllerK64F_fk::WncControllerK64F *_pwnc;  //pointer to the WncController instance
-  static Mutex *WNCLock;
   static string mac;
 
 };