projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add USB support.
[fw/altos]
/
ao.h
diff --git
a/ao.h
b/ao.h
index d31928647dbfac5e769107db990ad88871e292b6..7c68645ce88a6741cfc3d64a6e14e05540469001 100644
(file)
--- a/
ao.h
+++ b/
ao.h
@@
-25,7
+25,7
@@
#define DATA_TO_XDATA(a) ((void __xdata *) ((uint8_t) (a) | 0xff00))
#define DATA_TO_XDATA(a) ((void __xdata *) ((uint8_t) (a) | 0xff00))
-#define AO_STACK_START 0x
27
+#define AO_STACK_START 0x
32
#define AO_STACK_END 0xfe
#define AO_STACK_SIZE (AO_STACK_END - AO_STACK_START + 1)
#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);
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_ */
#endif /* _AO_H_ */