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.
alp_dbg.h
00001 /// @copyright 00002 /// ========================================================================={{{ 00003 /// Copyright (c) 2012-2013 WizziLab / 00004 /// All rights reserved / 00005 /// =========================================================================}}} 00006 /// @endcopyright 00007 00008 #ifndef __ALP_DBG_H__ 00009 #define __ALP_DBG_H__ 00010 00011 #include "WizziDebug.h" 00012 00013 #define ALP_ASSERT(c,...) ASSERT(c,__VA_ARGS__) 00014 00015 // ALP Trace Levels 00016 #define L_ALP (1 << 0) 00017 #define L_ALP_HST (1 << 1) 00018 #define L_ALP_COM (1 << 2) 00019 #define L_ALP_D7A (1 << 3) 00020 #define L_ALP_LWAN (1 << 4) 00021 #define L_ALP_URC (1 << 5) 00022 #define L_ALP_BLE (1 << 6) 00023 #define L_ALP_DBG (1 << 14) 00024 #define L_ALP_ERR (1 << 15) 00025 00026 // API level traces, should not be too verbose and can remain on release/prod build 00027 // Still removable if needed 00028 #ifndef __ALP_NO_PRINT__ 00029 #define ALP_DPRINT(l, ...) do {kal_dbg_cprintf(TLEV(TMOD_ALP, l), ##__VA_ARGS__);} while(0) 00030 #else 00031 #define ALP_DPRINT(l, ...) 00032 #endif 00033 00034 // Debug Oriented traces cherry-picked when debugging 00035 // should never go into prod builds 00036 #ifdef _BUILD_TYPE_DEBUG_ 00037 #if 0 00038 #define ALP_DBG_DPRINT(l,...) do{kal_dbg_cprintf(TLEV(TMOD_ALP,l),__VA_ARGS__);}while(0) 00039 #endif 00040 #endif // _BUILD_TYPE_DEBUG_ 00041 00042 #ifndef ALP_DBG_DPRINT 00043 #define ALP_DBG_DPRINT(l,...) do {}while(0) 00044 #endif 00045 00046 00047 #endif // __ALP_DBG_H__
Generated on Tue Jul 12 2022 13:52:23 by
1.7.2