Skip to content
Merged
Changes from 1 commit
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 @@ -489,6 +489,9 @@ static void usb_handle_buff_status() {
*
*/
/// \tag::isr_setup_packet[]
#ifdef __cplusplus
extern "C" {
#endif
void isr_usbctrl(void) {
// USB interrupt handler
uint32_t status = usb_hw->ints;
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