HOme Sheriff And Lamp
Dependencies: CameraC328 HCSR04 SDFileSystem WIZnetInterface mbed
Fork of HoSAL by
rev_config.h
00001 /* 00002 # coded by revival / uasonice (at) gmail.com 00003 # DATE: 2015/08/10 / Mon Aug 10 21:21:36 KST 2015 00004 # 00005 # DESCRIPTION: 00006 # global config for project 00007 # 00008 */ 00009 00010 #ifndef __REV_CONFIG_H__ 00011 #define __REV_CONFIG_H__ 00012 00013 ////////////////////////////////////////////////////////////////////////// 00014 // define FEATURE 00015 #define USE_SDCARD 00016 #define USE_HTTP_FILE_SERVER 00017 #define USE_CAMERA 00018 #define USE_MEASURE_DISTANCE 00019 00020 00021 ////////////////////////////////////////////////////////////////////////// 00022 // extern variable 00023 extern Serial uart; 00024 extern bool g_bInitDone; 00025 00026 ////////////////////////////////////////////////////////////////////////// 00027 ////////////////////////////////////////////////////////////////////////// 00028 /* coded by revival / 2006/03/09 */ 00029 /* Debug Message Macro Naming issue 00030 * F : File Name 00031 * f : Function Name 00032 * L : Line Number 00033 * N : Enter Code; (\n) Line feed 00034 */ 00035 #if defined(DEBUG_TYPE) 00036 #define _F_ __FILE__ 00037 #define _f_ __FUNCTION__ 00038 #define _L_ __LINE__ 00039 #define _N_ "\r\n" 00040 00041 //////////////////////////// 00042 // define the Message Header 00043 #define M_F "[%s] ", _F_ 00044 #define M_Ff "[%s:%s] ", _F_, _f_ 00045 #define M_FfL "[%s:%s:%d] ", _F_, _f_, _L_ 00046 #define M_FL "[%s:%d] ", _F_, _L_ 00047 #define M_f "[%s] ", _f_ 00048 #define M_fL "[%s:%d] ", _f_, _L_ 00049 #define M_L "[%d] ", _L_ 00050 00051 #if DEBUG_TYPE == 1 00052 # ifndef P_ 00053 # define P_ printf 00054 # endif 00055 # define DM_(fmt...) P_(fmt) 00056 # define DM_F(fmt...) P_(M_F), P_(fmt) 00057 # define DM_Ff(fmt...) P_(M_Ff), P_(fmt) 00058 # define DM_FfL(fmt...) P_(M_FfL), P_(fmt) 00059 # define DM_FfLN(fmt...) P_(M_FfL), P_(fmt), P_(_N_) 00060 # define DM_FfN(fmt...) P_(M_Ff), P_(fmt), P_(_N_) 00061 # define DM_FL(fmt...) P_(M_FL), P_(fmt) 00062 # define DM_FLN(fmt...) P_(M_FL), P_(fmt), P_(_N_) 00063 # define DM_FN(fmt...) P_(M_F), P_(fmt), P_(_N_) 00064 00065 # define DM_f(fmt...) P_(M_f_), P_(fmt) 00066 # define DM_fL(fmt...) P_(M_fL), P_(fmt) 00067 # define DM_fLN(fmt...) P_(M_fL), P_(fmt), P_(_N_) 00068 # define DM_fN(fmt...) P_(M_f), P_(fmt), P_(_N_) 00069 # define DM_L(fmt...) P_(M_L), P_(fmt) 00070 # define DM_LN(fmt...) P_(M_L), P_(fmt), P_(_N_) 00071 # define DM_N(fmt...) P_(fmt), P_(_N_) 00072 # else // DEBUG_TYPE 00073 # define DM_(fmt...) 00074 # define DM_F(fmt...) 00075 # define DM_Ff(fmt...) 00076 # define DM_FfL(fmt...) 00077 # define DM_FfLN(fmt...) 00078 # define DM_FfN(fmt...) 00079 # define DM_FL(fmt...) 00080 # define DM_FLN(fmt...) 00081 # define DM_FN(fmt...) 00082 00083 # define DM_f(fmt...) 00084 # define DM_fL(fmt...) 00085 # define DM_fLN(fmt...) 00086 # define DM_fN(fmt...) 00087 # define DM_L(fmt...) 00088 # define DM_LN(fmt...) 00089 # define DM_N(fmt...) 00090 #endif // DEBUG_TYPE 00091 00092 #endif 00093 00094 #endif // __REV_CONFIG_H__ 00095
Generated on Mon Jul 18 2022 23:38:57 by
1.7.2
