]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/common.h
clean up includes
[z180-stamp.git] / include / common.h
index 9bd34181e78f0524d89ad31be828aca6ea55a567..e89b91f733b207b71c94198359630e40e72278c5 100644 (file)
@@ -10,6 +10,7 @@
 #include <stdio.h>
 #include <stdint.h>
 #include <stdbool.h>
+#include <ctype.h>
 #include <string.h>
 #include <stdlib.h>
 #include "errnum.h"
@@ -47,6 +48,8 @@ struct bits {
 #define GCC_BUG_61443 1
 #endif /* PR61443 */
 
+#define DEVICE_NAME __AVR_DEVICE_NAME__
+
 #else
 // TODO: stm32
 #endif /* __AVR__ */
@@ -80,8 +83,8 @@ extern volatile uint_least8_t Stat;
 
 #define S_10MS_TO                      (1<<0)
 #define S_MSG_PENDING          (1<<1)
-#define S_CON_PENDING          (1<<2)
-#define S_RESET_POLARITY       (1<<3)
+#define S_CON_PENDING          (1<<3)
+#define S_RESET_POLARITY       (1<<4)
 
 static inline
 int my_puts(const char *s)