summaryrefslogtreecommitdiff
path: root/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-13 13:51:08 -0700
committerKeith Packard <keithp@keithp.com>2009-04-13 13:51:08 -0700
commitc5c1e3fb1c253d387be02c127253ac2a55d577b4 (patch)
tree9e3f6a5128956bf4121a2d5334ed7073122bd530 /ao.h
parentf3f25a1cec7d2a034aa544569cfd23bea1a996c5 (diff)
Add USB support.
This offers a single CDC ACM device over USB. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao.h')
-rw-r--r--ao.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/ao.h b/ao.h
index d3192864..7c68645c 100644
--- a/ao.h
+++ b/ao.h
@@ -25,7 +25,7 @@
#define DATA_TO_XDATA(a) ((void __xdata *) ((uint8_t) (a) | 0xff00))
-#define AO_STACK_START 0x27
+#define AO_STACK_START 0x32
#define AO_STACK_END 0xfe
#define AO_STACK_SIZE (AO_STACK_END - AO_STACK_START + 1)
@@ -121,4 +121,21 @@ ao_led_set(uint8_t colors);
void
ao_led_for(uint8_t colors, uint16_t ticks);
+/* ao_usb.c */
+
+void
+ao_usb_isr(void) interrupt 6;
+
+void
+ao_usb_flush(void);
+
+void
+ao_usb_putchar(uint8_t c);
+
+uint8_t
+ao_usb_getchar(void);
+
+void
+ao_usb_init(void);
+
#endif /* _AO_H_ */