Port of TI's CC3100 Websock camera demo. Using FreeRTOS, mbedTLS, also parts of Arducam for cams ov5642 and 0v2640. Can also use MT9D111. Work in progress. Be warned some parts maybe a bit flacky. This is for Seeed Arch max only, for an M3, see the demo for CM3 using the 0v5642 aducam mini.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers HttpDebug.cpp Source File

HttpDebug.cpp

00001 //*****************************************************************************
00002 // Copyright (C) 2014 Texas Instruments Incorporated
00003 //
00004 // All rights reserved. Property of Texas Instruments Incorporated.
00005 // Restricted rights to use, duplicate or disclose this code are
00006 // granted through contract.
00007 // The program may not be used without the written permission of
00008 // Texas Instruments Incorporated or against the terms and conditions
00009 // stipulated in the agreement under which this program has been supplied,
00010 // and under no circumstances can it be used with non-TI connectivity device.
00011 //
00012 //*****************************************************************************
00013 
00014 /**
00015  * @addtogroup HttpDebug
00016  *
00017  * @{
00018  */
00019 
00020 #include "mbed.h"
00021 #include "cli_uart.h"
00022 #include "HttpDebug.h"
00023 
00024 
00025 #ifdef HTTP_CORE_ENABLE_DEBUG
00026 
00027 void HttpDebugStr(uint8_t* pString)
00028 {
00029 #ifndef NOTERM
00030     Report("%s\n\r", pString);
00031 #endif
00032 }
00033 
00034 void HttpAssert(int condition)
00035 {
00036     if (condition)
00037         return;
00038 #ifndef NOTERM
00039     Report("ASSERTION!\n\r");
00040 #endif
00041 
00042     while (1)
00043     {
00044     }
00045 }
00046 
00047 #else
00048 
00049 void HttpDebugStr(const char* pString)
00050 {
00051 
00052 }
00053 void HttpAssert(int condition)
00054 {
00055 
00056 }
00057 #endif
00058 
00059 /// @}
00060