summaryrefslogtreecommitdiffstats
path: root/app/prototypes.h
diff options
context:
space:
mode:
Diffstat (limited to 'app/prototypes.h')
-rw-r--r--app/prototypes.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/prototypes.h b/app/prototypes.h
index ed15fd1..4349f48 100644
--- a/app/prototypes.h
+++ b/app/prototypes.h
@@ -8,7 +8,8 @@ extern int dfu_control_request(usbd_device *usbd_dev, struct usb_setup_data *req
extern const struct usb_endpoint_descriptor keyboard_endpoint;
extern const struct usb_interface_descriptor keyboard_iface;
extern void keyboard_get_descriptor(uint8_t **buf, uint16_t *len);
-extern void keyboard_test(void);
+extern void keyboard_dispatch(int sc, int updown);
+extern int keyboard_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));
/* usb.c */
extern const struct usb_device_descriptor dev;
extern const struct usb_interface ifaces[];
@@ -21,6 +22,7 @@ extern void usb_run(void);
extern const struct usb_endpoint_descriptor consumer_endpoint;
extern const struct usb_interface_descriptor consumer_iface;
extern void consumer_get_descriptor(uint8_t **buf, uint16_t *len);
+extern void consumer_dispatch(int bit, int updown);
/* atkbd.c */
extern void exti0_isr(void);
extern void atkbd_set(int clk, int dat);
@@ -60,5 +62,5 @@ extern void sys_tick_handler(void);
extern void delay_ms(uint32_t d);
extern int timed_out(uint32_t then, unsigned int ms);
extern void ticker_init(void);
-/* scancode.c */
+/* keymap.c */
extern void scancode_dispatch(int key, int updown);