Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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