David Fletcher / Mbed 2 deprecated cc3100_Test_websock_Camera_CM4F

Dependencies:   mbed

Revision:
0:50cedd586816
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/http/server/HttpDebug.h	Wed Jun 24 09:54:16 2015 +0000
@@ -0,0 +1,62 @@
+//*****************************************************************************
+// Copyright (C) 2014 Texas Instruments Incorporated
+//
+// All rights reserved. Property of Texas Instruments Incorporated.
+// Restricted rights to use, duplicate or disclose this code are
+// granted through contract.
+// The program may not be used without the written permission of
+// Texas Instruments Incorporated or against the terms and conditions
+// stipulated in the agreement under which this program has been supplied,
+// and under no circumstances can it be used with non-TI connectivity device.
+//
+//*****************************************************************************
+
+#ifndef _HTTP_DEBUG_H_
+#define _HTTP_DEBUG_H_
+
+#include "stdint.h"
+#include "HttpConfig.h"
+#include "cli_uart.h"
+
+/**
+ * @defgroup HttpDebug Debugging routines
+ * This module implements debug routines which enable debug traces to be sent to a logger
+ * Note this module is only compiled if HTTP_CORE_ENABLE_DEBUG is defined in HttpConfig.h
+ *
+ * @{
+ */
+
+/**
+ * Send formatted debug trace to logger
+ * @param pFormat The printf-style format to send
+ * @param ... The rest of the parameters
+ */
+#ifndef NOTERM
+#define HttpDebug           Report//Uart_Write//Report
+#else
+#define HttpDebug(x, ...)
+#endif
+
+#ifdef  __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Send string debug trace to logger
+ * @param pString The string to send
+ */
+void HttpDebugStr(uint8_t* pString);
+
+/**
+ * Assert that a certain condition is true
+ * @param condition A value that must be nonzero
+ */
+void HttpAssert(int condition);
+
+#ifdef  __cplusplus
+}
+#endif /* __cplusplus */
+#endif // _HTTP_STRING_H_
+
+/// @}
+