summaryrefslogtreecommitdiffstats
path: root/boot/prototypes.h
diff options
context:
space:
mode:
authorfishsoupisgood <github@madingley.org>2019-04-29 07:30:28 +0100
committerfishsoupisgood <github@madingley.org>2019-04-29 07:30:28 +0100
commit259ee0e7022ce15f4f2c8294a4fc3de7005d7fab (patch)
treed284293075d882911c2c6a3e982570a7c8aec7e4 /boot/prototypes.h
downloadadapter-259ee0e7022ce15f4f2c8294a4fc3de7005d7fab.tar.gz
adapter-259ee0e7022ce15f4f2c8294a4fc3de7005d7fab.tar.bz2
adapter-259ee0e7022ce15f4f2c8294a4fc3de7005d7fab.zip
working with one set of stripes
Diffstat (limited to 'boot/prototypes.h')
-rw-r--r--boot/prototypes.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/boot/prototypes.h b/boot/prototypes.h
new file mode 100644
index 0000000..45d399c
--- /dev/null
+++ b/boot/prototypes.h
@@ -0,0 +1,18 @@
+/* usbdfu.c */
+extern uint8_t usbd_control_buffer[1024];
+extern const struct usb_device_descriptor dev;
+extern const struct usb_dfu_descriptor dfu_function;
+extern const struct usb_interface_descriptor iface;
+extern const struct usb_interface ifaces[];
+extern const struct usb_config_descriptor config;
+extern int main(void);
+/* ring.c */
+extern void ring_init(ring_t *r, uint8_t *buf, size_t len);
+extern int ring_write_byte(ring_t *r, uint8_t c);
+extern int ring_read_byte(ring_t *r, uint8_t *c);
+extern int ring_write(ring_t *r, uint8_t *buf, size_t len);
+/* usart.c */
+extern void usart1_isr(void);
+extern int _write(int file, char *ptr, int len);
+extern void usart_queue(uint8_t d);
+extern void usart_init(void);