]>
cloudbase.mooo.com Git - z180-stamp.git/blob - include/common.h
6 #include <avr/pgmspace.h>
7 #include <util/delay.h>
9 #define udelay(n) _delay_us(n)
20 } __attribute__((__packed__
));
22 #define SBIT(port,pin) ((*(volatile struct bits*)&port).b##pin)
25 // Known to work: 4.8.4, 4.9.1
26 // Known to fail: 4.8.3, 4.9.0
27 #define GCC_BUG_61443 1
43 #define stringify(s) tostring(s)
44 #define tostring(s) #s
46 #define FSTR(X) ((const FLASH char[]) { X } )
47 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
53 extern volatile uint_least8_t Stat
;
56 #define S_10MS_TO (1<<0)
57 #define S_MSG_PENDING (1<<1)
58 #define S_CON_PENDING (1<<2)
61 void my_puts(const char *s
)
67 void my_puts_P(const char *s
)