diff --git a/src/device/usbd.h b/src/device/usbd.h index 118e53ce46..a33b385ad0 100644 --- a/src/device/usbd.h +++ b/src/device/usbd.h @@ -110,15 +110,15 @@ bool tud_control_status(uint8_t rhport, tusb_control_request_t const * request); // Invoked when received GET DEVICE DESCRIPTOR request // Application return pointer to descriptor -uint8_t const * tud_descriptor_device_cb(void); +uint8_t const * tud_descriptor_device_cb(void) noexcept; // Invoked when received GET CONFIGURATION DESCRIPTOR request // Application return pointer to descriptor, whose contents must exist long enough for transfer to complete -uint8_t const * tud_descriptor_configuration_cb(uint8_t index); +uint8_t const * tud_descriptor_configuration_cb(uint8_t index) noexcept; // Invoked when received GET STRING DESCRIPTOR request // Application return pointer to descriptor, whose contents must exist long enough for transfer to complete -uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid); +uint16_t const* tud_descriptor_string_cb(uint8_t index, uint16_t langid) noexcept; // Invoked when received GET BOS DESCRIPTOR request // Application return pointer to descriptor