summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeo C2014-10-23 13:07:27 +0200
committerLeo C2014-10-23 13:07:27 +0200
commit889202c46ced1be4fc0db3faf63564722eba2865 (patch)
tree59b44dba123e04f45fd02be22674269fc3f1e56d /include
parent89adce76dd02f2076ec6de1c6b434bc1f29512f4 (diff)
downloadz180-stamp-889202c46ced1be4fc0db3faf63564722eba2865.zip
include cleanup
Diffstat (limited to 'include')
-rw-r--r--include/command.h4
-rw-r--r--include/common.h1
-rw-r--r--include/debug.h3
3 files changed, 3 insertions, 5 deletions
diff --git a/include/command.h b/include/command.h
index 2fd20a0..d0933a0 100644
--- a/include/command.h
+++ b/include/command.h
@@ -26,8 +26,8 @@
* cmd_usage() all over the place.
*/
typedef enum {
- CMD_RET_SUCCESS, /* 0 = Success */
- CMD_RET_FAILURE, /* 1 = Failure */
+ CMD_RET_SUCCESS = 0, /* Success */
+ CMD_RET_FAILURE = 1, /* Failure */
CMD_RET_USAGE = -1, /* Failure, please report 'usage' error */
} command_ret_t;
diff --git a/include/common.h b/include/common.h
index ef5af12..74339df 100644
--- a/include/common.h
+++ b/include/common.h
@@ -3,6 +3,7 @@
#ifdef __AVR__
#include <avr/io.h>
+#include <avr/pgmspace.h>
//TODO:
// Known to work: 4.8.4, 4.9.1
diff --git a/include/debug.h b/include/debug.h
index 8fdc830..45a1d50 100644
--- a/include/debug.h
+++ b/include/debug.h
@@ -3,9 +3,6 @@
#define DEBUG_H_
#include "common.h"
-#ifdef __AVR__
-#include <avr/pgmspace.h>
-#endif
#ifdef DEBUG
#define _DEBUG 1