diff options
author | Leo C | 2014-08-13 21:00:21 +0200 |
---|---|---|
committer | Leo C | 2014-08-13 21:00:21 +0200 |
commit | 72f5882239bb88b8a68f305802e0dde37a975604 (patch) | |
tree | a932ba22f7174de0fd773cf31d4d914dd548dfdd /avr/common.h | |
parent | d684c21619905153eff68c43927207248925f6c2 (diff) | |
download | z180-stamp-72f5882239bb88b8a68f305802e0dde37a975604.zip |
Add memory commands (cmp, cp, md, mm, mw, nm)
Add kind of scheduler for background tasks
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 */ |