drivers/cc3100: Remove simplelink trace messages completely.
Those trace messages have never proven to be useful and they make the code 9K bigger.
This commit is contained in:
parent
33ddb566a7
commit
5687ce7e35
@ -59,15 +59,6 @@ extern "C" {
|
||||
#define SL_HANDLING_ERROR 1
|
||||
#define SL_HANDLING_NONE 0
|
||||
|
||||
#if defined(DEBUG) && !defined(BOOTLOADER)
|
||||
#define SL_SELF_COND_HANDLING SL_HANDLING_ASSERT
|
||||
#define SL_PROTOCOL_HANDLING SL_HANDLING_ASSERT
|
||||
#define SL_DRV_RET_CODE_HANDLING SL_HANDLING_ASSERT
|
||||
#define SL_NWP_IF_HANDLING SL_HANDLING_ASSERT
|
||||
#define SL_OSI_RET_OK_HANDLING SL_HANDLING_ASSERT
|
||||
#define SL_MALLOC_OK_HANDLING SL_HANDLING_ASSERT
|
||||
#define SL_USER_ARGS_HANDLING SL_HANDLING_ASSERT
|
||||
#else
|
||||
#define SL_SELF_COND_HANDLING SL_HANDLING_NONE
|
||||
#define SL_PROTOCOL_HANDLING SL_HANDLING_NONE
|
||||
#define SL_DRV_RET_CODE_HANDLING SL_HANDLING_NONE
|
||||
@ -75,7 +66,6 @@ extern "C" {
|
||||
#define SL_OSI_RET_OK_HANDLING SL_HANDLING_NONE
|
||||
#define SL_MALLOC_OK_HANDLING SL_HANDLING_NONE
|
||||
#define SL_USER_ARGS_HANDLING SL_HANDLING_NONE
|
||||
#endif
|
||||
|
||||
#if (SL_DRV_RET_CODE_HANDLING == SL_HANDLING_ASSERT)
|
||||
#define VERIFY_RET_OK(Func) {_SlReturnVal_t _RetVal = (Func); _SL_ASSERT((_SlReturnVal_t)SL_OS_RET_CODE_OK == _RetVal)}
|
||||
@ -142,23 +132,6 @@ extern "C" {
|
||||
#define ARG_CHECK_PTR(Ptr)
|
||||
#endif
|
||||
|
||||
#if defined(DEBUG) && !defined(BOOTLOADER)
|
||||
#include "std.h"
|
||||
#define SL_DBG_TRACE_ENABLE
|
||||
#endif
|
||||
#ifdef SL_DBG_TRACE_ENABLE
|
||||
#define SL_TRACE0(level,msg_id,str)
|
||||
#define SL_TRACE1(level,msg_id,str,p1)
|
||||
#define SL_TRACE2(level,msg_id,str,p1,p2)
|
||||
#define SL_TRACE3(level,msg_id,str,p1,p2,p3)
|
||||
#define SL_TRACE4(level,msg_id,str,p1,p2,p3,p4)
|
||||
#define SL_ERROR_TRACE(msg_id,str) printf(str)
|
||||
#define SL_ERROR_TRACE1(msg_id,str,p1) printf(str,(p1))
|
||||
#define SL_ERROR_TRACE2(msg_id,str,p1,p2) printf(str,(p1),(p2))
|
||||
#define SL_ERROR_TRACE3(msg_id,str,p1,p2,p3) printf(str,(p1),(p2),(p3))
|
||||
#define SL_ERROR_TRACE4(msg_id,str,p1,p2,p3,p4) printf(str,(p1),(p2),(p3),(p4))
|
||||
#define SL_TRACE_FLUSH()
|
||||
#else
|
||||
#define SL_TRACE0(level,msg_id,str)
|
||||
#define SL_TRACE1(level,msg_id,str,p1)
|
||||
#define SL_TRACE2(level,msg_id,str,p1,p2)
|
||||
@ -170,7 +143,6 @@ extern "C" {
|
||||
#define SL_ERROR_TRACE3(msg_id,str,p1,p2,p3)
|
||||
#define SL_ERROR_TRACE4(msg_id,str,p1,p2,p3,p4)
|
||||
#define SL_TRACE_FLUSH()
|
||||
#endif
|
||||
|
||||
/* #define SL_DBG_CNT_ENABLE */
|
||||
#ifdef SL_DBG_CNT_ENABLE
|
||||
|
Loading…
x
Reference in New Issue
Block a user