]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/common.h
cpu commands
[z180-stamp.git] / include / common.h
index 12d87c48865a280eac621ba3e7df7ddc006b6e6b..16f96bb0e944bfbffc403979d49e3f16a493a1b2 100644 (file)
@@ -47,6 +47,8 @@ struct bits {
 #define GCC_BUG_61443 1
 #endif /* PR61443 */
 
+#define DEVICE_NAME __AVR_DEVICE_NAME__
+
 #else
 // TODO: stm32
 #endif /* __AVR__ */
@@ -78,9 +80,10 @@ struct bits {
 extern volatile uint_least8_t Stat;
 #endif /* __AVR__ */
 
-#define S_10MS_TO              (1<<0)
-#define S_MSG_PENDING  (1<<1)
-#define S_CON_PENDING  (1<<2)
+#define S_10MS_TO                      (1<<0)
+#define S_MSG_PENDING          (1<<1)
+#define S_CON_PENDING          (1<<3)
+#define S_RESET_POLARITY       (1<<4)
 
 static inline
 int my_puts(const char *s)