X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/7dda03f3ce376f35d080325551ccdca6c7414061..976db69ffa80c4d499e53f6f22c26d784fdac0a1:/include/common.h diff --git a/include/common.h b/include/common.h index 9bd3418..e89b91f 100644 --- a/include/common.h +++ b/include/common.h @@ -10,6 +10,7 @@ #include #include #include +#include #include #include #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)