]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - avr/common.h
Add memory commands (cmp, cp, md, mm, mw, nm)
[z180-stamp.git] / avr / common.h
index ace0fcb4a2fe13dc8945fc49fa170a9514a94bed..a92f62c129c616390a9b898dabd41bd38fc7fdd9 100644 (file)
@@ -11,7 +11,7 @@
 
 #else
 // TODO: stm32
-#endif
+#endif /* __AVR__ */
 
 #include <stdio.h>
 
 #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 */