diff options
Diffstat (limited to 'avr/common.h')
-rw-r--r-- | avr/common.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/avr/common.h b/avr/common.h index ace0fcb..a92f62c 100644 --- a/avr/common.h +++ b/avr/common.h @@ -11,7 +11,7 @@ #else // TODO: stm32 -#endif +#endif /* __AVR__ */ #include <stdio.h> @@ -32,26 +32,30 @@ #define Stat GPIOR0 #else extern volatile uint_least8_t Stat; -#endif +#endif /* __AVR__ */ #define S_10MS_TO (1<<0) - - -#include <util/delay.h> +#define S_Z180_RUNNING (2<<0) static inline void my_puts(const char *s) { fputs(s, stdout); -// _delay_ms(10); } +#ifdef __AVR__ static inline void my_puts_P(const char *s) { fputs_P(s, stdout); -// _delay_ms(10); } +#else +static inline +void my_puts_P(const char *s) +{ + fputs(s, stdout); +} +#endif /* __AVR__ */ #endif /* COMMON_H */ |