Skip to content

Commit

Permalink
Add extern "C" to isr_usbctrl in dev_lowlevel (#465)
Browse files Browse the repository at this point in the history
add extern "C" to isr_usbctrl in dev_lowlevel
  • Loading branch information
supsm authored May 2, 2024
1 parent 53556e5 commit 28f4b95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions usb/device/dev_lowlevel/dev_lowlevel.c
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,9 @@ static void usb_handle_buff_status() {
* @brief USB interrupt handler
*
*/
#ifdef __cplusplus
extern "C" {
#endif
/// \tag::isr_setup_packet[]
void isr_usbctrl(void) {
// USB interrupt handler
Expand Down Expand Up @@ -520,6 +523,9 @@ void isr_usbctrl(void) {
panic("Unhandled IRQ 0x%x\n", (uint) (status ^ handled));
}
}
#ifdef __cplusplus
}
#endif

/**
* @brief EP0 in transfer complete. Either finish the SET_ADDRESS process, or receive a zero
Expand Down

0 comments on commit 28f4b95

Please sign in to comment.