LCD Driver, some teensy code, SDCard code, MBR/FAT32
This commit is contained in:
13
Debug.h
13
Debug.h
@@ -88,7 +88,20 @@ extern "C" {
|
||||
#define IF_DEBUG(a) a
|
||||
#define debugShow(buf, len) hexdump(buf,len)
|
||||
|
||||
#elif TEENSY
|
||||
|
||||
#define debugMod(module, str) {char buf[64]; sprintf(buf, "i[%-10s] ", module); Serial.print(buf); Serial.println(str);}
|
||||
#define debugMod1(module, str, v1) {char buf[64]; sprintf(buf, "i[%-10s] ", module); Serial.print(buf); sprintf(buf, str, v1); Serial.println(buf);}
|
||||
#define debugMod2(module, str, v1, v2) {char buf[64]; sprintf(buf, "i[%-10s] ", module); Serial.print(buf); sprintf(buf, str, v1, v2); Serial.println(buf);}
|
||||
#define debugMod3(module, str, v1, v2, v3) {char buf[64]; sprintf(buf, "i[%-10s] ", module); Serial.print(buf); sprintf(buf, str, v1, v2, v3); Serial.println(buf);}
|
||||
#define debugMod4(module, str, v1, v2, v3, v4) {char buf[64]; sprintf(buf, "i[%-10s] ", module); Serial.print(buf); sprintf(buf, str, v1, v2, v3, v4); Serial.println(buf);}
|
||||
#define debugMod5(module, str, v1, v2, v3, v4, v5) {char buf[64]; sprintf(buf, "i[%-10s] ", module); Serial.print(buf); sprintf(buf, str, v1, v2, v3, v4, v5); Serial.println(buf);}
|
||||
|
||||
#define errorMod(module, str) debugMod(module, str); while(true) {}
|
||||
|
||||
#else
|
||||
|
||||
|
||||
|
||||
#error "unsupported platform"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user