X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/5e8ac5e02a09140e97d56a9d5313504dfa31282d..976db69ffa80c4d499e53f6f22c26d784fdac0a1:/include/common.h diff --git a/include/common.h b/include/common.h index 12d87c4..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__ */ @@ -78,9 +81,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)