aboutsummaryrefslogtreecommitdiff
path: root/libraries/WiFi/utility/debug.h
diff options
context:
space:
mode:
authorCristian Maglie <c.maglie@bug.st>2013-08-23 15:59:24 +0200
committerCristian Maglie <c.maglie@bug.st>2013-08-23 15:59:24 +0200
commit540743129b2badb813b703208d121ff14553c147 (patch)
tree6fadb4ebce68e1f0cb298a282be135c23fd156ed /libraries/WiFi/utility/debug.h
parent073b3ac9d4ae93ac0bb3a91afc65ae9d8f1d5d59 (diff)
parent67c84855c2f3ce99b091a756bb2ca1a016260659 (diff)
Merge branch 'ide-1.5.x' into dev-ide-1.5.x-discovery
Conflicts: app/src/processing/app/Preferences.java app/src/processing/app/debug/Uploader.java
Diffstat (limited to 'libraries/WiFi/utility/debug.h')
-rw-r--r--libraries/WiFi/utility/debug.h77
1 files changed, 0 insertions, 77 deletions
diff --git a/libraries/WiFi/utility/debug.h b/libraries/WiFi/utility/debug.h
deleted file mode 100644
index 9f71055..0000000
--- a/libraries/WiFi/utility/debug.h
+++ /dev/null
@@ -1,77 +0,0 @@
-//*********************************************/
-//
-// File: debug.h
-//
-// Author: dlf (Metodo2 srl)
-//
-//********************************************/
-
-
-#ifndef Debug_H
-#define Debug_H
-
-#include <stdio.h>
-#include <string.h>
-
-#define PRINT_FILE_LINE() do { \
- Serial.print("[");Serial.print(__FILE__); \
- Serial.print("::");Serial.print(__LINE__);Serial.print("]");\
-}while (0);
-
-#ifdef _DEBUG_
-
-#define INFO(format, args...) do { \
- char buf[250]; \
- sprintf(buf, format, args); \
- Serial.println(buf); \
-} while(0);
-
-#define INFO1(x) do { PRINT_FILE_LINE() Serial.print("-I-");\
- Serial.println(x); \
-}while (0);
-
-
-#define INFO2(x,y) do { PRINT_FILE_LINE() Serial.print("-I-");\
- Serial.print(x,16);Serial.print(",");Serial.println(y,16); \
-}while (0);
-
-
-#else
-#define INFO1(x) do {} while(0);
-#define INFO2(x,y) do {} while(0);
-#define INFO(format, args...) do {} while(0);
-#endif
-
-#if 0
-#define WARN(args) do { PRINT_FILE_LINE() \
- Serial.print("-W-"); Serial.println(args); \
-}while (0);
-#else
-#define WARN(args) do {} while (0);
-#endif
-
-#if _DEBUG_SPI_
-#define DBG_PIN2 5
-#define DBG_PIN 4
-
-#define START() digitalWrite(DBG_PIN2, HIGH);
-#define END() digitalWrite(DBG_PIN2, LOW);
-#define SET_TRIGGER() digitalWrite(DBG_PIN, HIGH);
-#define RST_TRIGGER() digitalWrite(DBG_PIN, LOW);
-
-#define INIT_TRIGGER() pinMode(DBG_PIN, OUTPUT); \
- pinMode(DBG_PIN2, OUTPUT); \
- RST_TRIGGER()
-#define TOGGLE_TRIGGER() SET_TRIGGER() \
- delayMicroseconds(2); \
- RST_TRIGGER()
-#else
-#define START()
-#define END()
-#define SET_TRIGGER()
-#define RST_TRIGGER()
-#define INIT_TRIGGER()
-#define TOGGLE_TRIGGER()
-#endif
-
-#endif