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.
http/server/HttpDebug.cpp
- Committer:
- dflet
- Date:
- 2015-09-06
- Revision:
- 0:400d8e75a8d0
File content as of revision 0:400d8e75a8d0:
//*****************************************************************************
// 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
/// @}