David Fletcher / Mbed 2 deprecated cc3100_Test_websock_Camera_CM3

Dependencies:   mbed

Revision:
0:400d8e75a8d0
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/http/server/HttpDebug.cpp	Sun Sep 06 15:19:36 2015 +0000
@@ -0,0 +1,60 @@
+//*****************************************************************************
+// 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.
+//
+//*****************************************************************************
+
+/**
+ * @addtogroup HttpDebug
+ *
+ * @{
+ */
+
+#include "mbed.h"
+#include "cli_uart.h"
+#include "HttpDebug.h"
+
+
+#ifdef HTTP_CORE_ENABLE_DEBUG
+
+void HttpDebugStr(uint8_t* pString)
+{
+#ifndef NOTERM
+    Report("%s\n\r", pString);
+#endif
+}
+
+void HttpAssert(int condition)
+{
+    if (condition)
+        return;
+#ifndef NOTERM
+    Report("ASSERTION!\n\r");
+#endif
+
+    while (1)
+    {
+    }
+}
+
+#else
+
+void HttpDebugStr(const char* pString)
+{
+
+}
+void HttpAssert(int condition)
+{
+
+}
+#endif
+
+/// @}
+