]> cloudbase.mooo.com Git - z180-stamp.git/blobdiff - include/common.h
pin command, add user configurable i/o pins
[z180-stamp.git] / include / common.h
index a92f62c129c616390a9b898dabd41bd38fc7fdd9..90b02837bec55975261880ab8cd72e7a17231069 100644 (file)
 
 #ifdef __FLASH
 #define FLASH __flash
+#define MEMX __memx
 #else
 #define FLASH
+#define MEMX
 #endif 
 
 #define stringify(s)   tostring(s)
@@ -43,19 +45,15 @@ void my_puts(const char *s)
        fputs(s, stdout);
 }
 
-#ifdef __AVR__
 static inline 
 void my_puts_P(const char *s)
 {
+#ifdef __AVR__
        fputs_P(s, stdout);
-}
-
 #else
-static inline
-void my_puts_P(const char *s)
-{
        fputs(s, stdout);
-}
 #endif /* __AVR__ */
+}
+
 #endif /* COMMON_H */