Skip to content

Commit 28f4b95

Browse files
authored
Add extern "C" to isr_usbctrl in dev_lowlevel (#465)
add extern "C" to isr_usbctrl in dev_lowlevel
1 parent 53556e5 commit 28f4b95

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

usb/device/dev_lowlevel/dev_lowlevel.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,9 @@ static void usb_handle_buff_status() {
488488
* @brief USB interrupt handler
489489
*
490490
*/
491+
#ifdef __cplusplus
492+
extern "C" {
493+
#endif
491494
/// \tag::isr_setup_packet[]
492495
void isr_usbctrl(void) {
493496
// USB interrupt handler
@@ -520,6 +523,9 @@ void isr_usbctrl(void) {
520523
panic("Unhandled IRQ 0x%x\n", (uint) (status ^ handled));
521524
}
522525
}
526+
#ifdef __cplusplus
527+
}
528+
#endif
523529

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

0 commit comments

Comments
 (0)