| 1 | /* $Id: console.h,v 1.1 2010/06/26 12:28:09 simimeie Exp $ |
| 2 | * Functions for a serial console. |
| 3 | */ |
| 4 | |
| 5 | #ifndef _CONSOLE_H_ |
| 6 | #define _CONSOLE_H_ |
| 7 | |
| 8 | #include <avr/pgmspace.h> |
| 9 | |
| 10 | /* Init needs to be called with IRQs still disabled! */ |
| 11 | void console_init(void); |
| 12 | |
| 13 | /* These can be called with interrupts enabled (and will reenable them!) */ |
| 14 | void console_printtext(const uint8_t * what); |
| 15 | void console_printpgm_P(PGM_P what); |
| 16 | void console_printhex8(uint8_t what); |
| 17 | void console_printdec(uint8_t what); |
| 18 | |
| 19 | #endif /* _CONSOLE_H_ */ |