test public

Fork of Modbus by Cam Marshall

Revision:
1:a3ee8cb24540
Parent:
0:0453a0a7e500
--- a/port.h	Thu Apr 15 12:10:34 2010 +0000
+++ b/port.h	Mon Jul 02 14:36:46 2018 +0000
@@ -51,4 +51,23 @@
 #define FALSE           0
 #endif
 
+#define MB_TCP_DEBUG            1
+
+#ifdef MB_TCP_DEBUG
+typedef enum
+{
+    MB_LOG_DEBUG,
+    MB_LOG_INFO,
+    MB_LOG_WARN,
+    MB_LOG_ERROR
+} eMBPortLogLevel;
 #endif
+
+/* ----------------------- Function prototypes ------------------------------*/
+#ifdef MB_TCP_DEBUG
+void            vMBPortLog( eMBPortLogLevel eLevel, const CHAR * szModule,
+                            const CHAR * szFmt, ... );
+void            prvvMBTCPLogFrame( UCHAR * pucMsg, UCHAR * pucFrame, USHORT usFrameLen );
+#endif
+
+#endif