diff options
Diffstat (limited to 'print.h')
| -rw-r--r-- | print.h | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -1,9 +1,13 @@ | |||
| 1 | #ifndef PRINT_H__ | 1 | #ifndef PRINT_H__ |
| 2 | #define PRINT_H__ 1 | 2 | #define PRINT_H__ 1 |
| 3 | 3 | ||
| 4 | #include <stdbool.h> | ||
| 4 | #include <avr/pgmspace.h> | 5 | #include <avr/pgmspace.h> |
| 5 | #include "usb_debug.h" | 6 | #include "usb_debug.h" |
| 6 | 7 | ||
| 8 | |||
| 9 | bool print_enable; | ||
| 10 | |||
| 7 | // this macro allows you to write print("some text") and | 11 | // this macro allows you to write print("some text") and |
| 8 | // the string is automatically placed into flash memory :) | 12 | // the string is automatically placed into flash memory :) |
| 9 | #define print(s) print_P(PSTR(s)) | 13 | #define print(s) print_P(PSTR(s)) |
