diff options
Diffstat (limited to 'common/print.c')
| -rw-r--r-- | common/print.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/common/print.c b/common/print.c index c13a29f31..ca94e1e5d 100644 --- a/common/print.c +++ b/common/print.c | |||
| @@ -22,13 +22,14 @@ | |||
| 22 | * THE SOFTWARE. | 22 | * THE SOFTWARE. |
| 23 | */ | 23 | */ |
| 24 | 24 | ||
| 25 | #include <avr/io.h> | 25 | #include <stdint.h> |
| 26 | #include <avr/pgmspace.h> | ||
| 27 | #include "print.h" | 26 | #include "print.h" |
| 28 | 27 | ||
| 29 | 28 | ||
| 30 | #ifndef NO_PRINT | 29 | #ifndef NO_PRINT |
| 31 | 30 | ||
| 31 | #if defined(__AVR__) | ||
| 32 | |||
| 32 | #define sendchar(c) xputc(c) | 33 | #define sendchar(c) xputc(c) |
| 33 | 34 | ||
| 34 | 35 | ||
| @@ -37,4 +38,11 @@ void print_set_sendchar(int8_t (*sendchar_func)(uint8_t)) | |||
| 37 | xdev_out(sendchar_func); | 38 | xdev_out(sendchar_func); |
| 38 | } | 39 | } |
| 39 | 40 | ||
| 41 | #elif defined(__arm__) | ||
| 42 | |||
| 43 | // TODO | ||
| 44 | //void print_set_sendchar(int8_t (*sendchar_func)(uint8_t)) { } | ||
| 45 | |||
| 46 | #endif | ||
| 47 | |||
| 40 | #endif | 48 | #endif |
