Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: http/server/HttpDebug.cpp
- 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
+
+/// @}
+