Project

General

Profile

Revision 1518

Added by Brad Neuman over 14 years ago

updated library to add DRAGONFLY_DEBUG stuff
Can now call make debug which will recompile the library with debug flags!

View differences:

dragonfly_defs.h
90 90
#define RELEASE_LOCK(LOCK) do { LOCK=0; } while (0)
91 91

  
92 92

  
93
#endif
93
#ifdef DRAGONFLY_DEBUG
94
#define DRAGONFLY_DEBUG_PRINT(s) usb_puts(s)
95
#define DRAGONFLY_DEBUG_PRINTLN(s) usb_puts(__FILE__ ":" __LINE__ ">>" s "\r\n")
96
#define DRAGONFLY_DEBUG_PRINT_INT(i) usb_puti(i)
97
#else
98
#define DRAGONFLY_DEBUG_PRINT(s)
99
#define DRAGONFLY_DEBUG_PRINTLN(s)
100
#define DRAGONFLY_DEBUG_PRINT_INT(i)
101
#endif
102

  
103
#endif

Also available in: Unified diff