summaryrefslogtreecommitdiffstats
path: root/src/prototypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/prototypes.h')
-rw-r--r--src/prototypes.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/prototypes.h b/src/prototypes.h
new file mode 100644
index 0000000..79c56ec
--- /dev/null
+++ b/src/prototypes.h
@@ -0,0 +1,21 @@
+/* dfu.c */
+extern const struct usb_dfu_descriptor dfu_function;
+extern const struct usb_interface_descriptor dfu_iface;
+extern int dfu_control_request(usbd_device *usbd_dev, struct usb_setup_data *req, uint8_t **buf, uint16_t *len, void (**complete)(usbd_device *usbd_dev, struct usb_setup_data *req));
+/* hid.c */
+extern const struct usb_endpoint_descriptor hid_endpoint;
+extern const struct usb_interface_descriptor hid_iface;
+extern uint8_t usbd_control_buffer[128];
+extern int hid_control_request(usbd_device *usbd_dev, struct usb_setup_data *req, uint8_t **buf, uint16_t *len, void (**complete)(usbd_device *usbd_dev, struct usb_setup_data *req));
+extern void hid_test(void);
+/* main.c */
+extern void sys_tick_handler(void);
+extern int main(void);
+/* usb.c */
+extern const struct usb_device_descriptor dev;
+extern const struct usb_interface ifaces[];
+extern const struct usb_config_descriptor config;
+extern usbd_device *usbd_dev;
+extern void usb_set_config(usbd_device *usbd_dev, uint16_t wValue);
+extern void usb_init(void);
+extern void usb_run(void);