starting implementation of the moodlight - by copying the console code
[moodlight.git] / console.h
diff --git a/console.h b/console.h
new file mode 100644 (file)
index 0000000..634d874
--- /dev/null
+++ b/console.h
@@ -0,0 +1,19 @@
+/* $Id: console.h,v 1.1 2010/06/26 12:28:09 simimeie Exp $
+ * Functions for a serial console.
+ */
+
+#ifndef _CONSOLE_H_
+#define _CONSOLE_H_
+
+#include <avr/pgmspace.h>
+
+/* Init needs to be called with IRQs still disabled! */
+void console_init(void);
+
+/* These can be called with interrupts enabled (and will reenable them!) */
+void console_printtext(const uint8_t * what);
+void console_printpgm_P(PGM_P what);
+void console_printhex8(uint8_t what);
+void console_printdec(uint8_t what);
+
+#endif /* _CONSOLE_H_ */
This page took 0.049112 seconds and 4 git commands to generate.