X-Git-Url: http://cloudbase.mooo.com/gitweb/z180-stamp.git/blobdiff_plain/d684c21619905153eff68c43927207248925f6c2..72f5882239bb88b8a68f305802e0dde37a975604:/avr/common.h 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 @@ -32,26 +32,30 @@ #define Stat GPIOR0 #else extern volatile uint_least8_t Stat; -#endif +#endif /* __AVR__ */ #define S_10MS_TO (1<<0) - - -#include +#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 */