diff options
Diffstat (limited to 'firmware/export')
-rw-r--r-- | firmware/export/usb.h | 3 | ||||
-rw-r--r-- | firmware/export/usb_core.h | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/firmware/export/usb.h b/firmware/export/usb.h index 8954e9cc59..13ef3983b2 100644 --- a/firmware/export/usb.h +++ b/firmware/export/usb.h | |||
@@ -44,6 +44,8 @@ enum | |||
44 | #endif | 44 | #endif |
45 | #ifdef HAVE_USBSTACK | 45 | #ifdef HAVE_USBSTACK |
46 | USB_TRANSFER_COMPLETION, /* Event */ | 46 | USB_TRANSFER_COMPLETION, /* Event */ |
47 | USB_NOTIFY_SET_ADDR, /* Event */ | ||
48 | USB_NOTIFY_SET_CONFIG, /* Event */ | ||
47 | #endif | 49 | #endif |
48 | #ifdef USB_FIREWIRE_HANDLING | 50 | #ifdef USB_FIREWIRE_HANDLING |
49 | USB_REQUEST_REBOOT, /* Event */ | 51 | USB_REQUEST_REBOOT, /* Event */ |
@@ -130,6 +132,7 @@ void usb_charger_update(void); | |||
130 | #ifdef HAVE_USBSTACK | 132 | #ifdef HAVE_USBSTACK |
131 | void usb_signal_transfer_completion( | 133 | void usb_signal_transfer_completion( |
132 | struct usb_transfer_completion_event_data *event_data); | 134 | struct usb_transfer_completion_event_data *event_data); |
135 | void usb_signal_notify(long id, intptr_t data); | ||
133 | bool usb_driver_enabled(int driver); | 136 | bool usb_driver_enabled(int driver); |
134 | bool usb_exclusive_storage(void); /* storage is available for usb */ | 137 | bool usb_exclusive_storage(void); /* storage is available for usb */ |
135 | #endif | 138 | #endif |
diff --git a/firmware/export/usb_core.h b/firmware/export/usb_core.h index 6405aa492d..9e3d0d7916 100644 --- a/firmware/export/usb_core.h +++ b/firmware/export/usb_core.h | |||
@@ -51,6 +51,10 @@ void usb_core_enable_driver(int driver,bool enabled); | |||
51 | bool usb_core_driver_enabled(int driver); | 51 | bool usb_core_driver_enabled(int driver); |
52 | void usb_core_handle_transfer_completion( | 52 | void usb_core_handle_transfer_completion( |
53 | struct usb_transfer_completion_event_data* event); | 53 | struct usb_transfer_completion_event_data* event); |
54 | void usb_core_handle_notify(long id, intptr_t data); | ||
55 | /* For controllers which handle SET ADDR and/or SET CONFIG in hardware */ | ||
56 | void usb_core_notify_set_address(uint8_t addr); | ||
57 | void usb_core_notify_set_config(uint8_t config); | ||
54 | 58 | ||
55 | int usb_core_request_endpoint(int type, int dir,struct usb_class_driver* drv); | 59 | int usb_core_request_endpoint(int type, int dir,struct usb_class_driver* drv); |
56 | void usb_core_release_endpoint(int dir); | 60 | void usb_core_release_endpoint(int dir); |