Skip to content

Commit

Permalink
Add noexcept specifiers to fix CoreN2G build
Browse files Browse the repository at this point in the history
  • Loading branch information
rechrtb committed Apr 23, 2024
1 parent f4f85ba commit c9832bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/device/usbd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9832bc

Please sign in to comment.