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.
w5200debug.h
00001 // w5200debug.h 2013/3/24 00002 #pragma once 00003 00004 #ifdef DEBUG 00005 #define DBG(...) do{fprintf(stderr,"[%s@%d] ",__PRETTY_FUNCTION__,__LINE__);fprintf(stderr,__VA_ARGS__);} while(0); 00006 #define DBG_BYTES(A,B,C) do{fprintf(stderr,"[%s@%d] ",__PRETTY_FUNCTION__,__LINE__);print_bytes(stderr,A,B,C);}while(0); 00007 #define DBG_STR(A,B) do{fprintf(stderr,"[%s@%d]\n",__PRETTY_FUNCTION__,__LINE__);print_str(stderr,A,B);}while(0); 00008 #define DBG_HEX(A,B) do{fprintf(stderr,"[%s@%d]\n",__PRETTY_FUNCTION__,__LINE__);print_hex(stderr,A,B);}while(0); 00009 #else 00010 #define DBG_BYTES(A,B,C) while(0); 00011 #define DBG_STR(A,B) while(0); 00012 #define DBG_HEX(A,B) while(0); 00013 #define DBG(...) while(0); 00014 #endif 00015 00016 #define DEBUG2 00017 #ifdef DEBUG2 00018 #define DBG2(...) do{fprintf(stderr,"[%s@%d] ",__PRETTY_FUNCTION__,__LINE__);fprintf(stderr,__VA_ARGS__);} while(0); 00019 #else 00020 #define DBG2(...) while(0); 00021 #endif 00022 00023 void print_bytes(FILE* stream, char* s, uint8_t* buf, int len); 00024 void print_str(FILE* stream, uint8_t* p, int len); 00025 void print_hex(FILE* stream, uint8_t* p, int len);
Generated on Tue Jul 12 2022 13:04:15 by
1.7.2