nvic::enable_irq(irq_number);
}
+#[no_mangle]
+#[allow(non_snake_case)]
+pub unsafe extern fn USB_DeviceIsrDisable()
+{
+ let irq_number = 24; // USB0
+
+ nvic::disable_irq(irq_number);
+}
+
#[no_mangle]
#[allow(non_snake_case)]
pub unsafe extern fn USB_DeviceClockInit()
/* Provided by users. */
extern void USB_DeviceClockInit(void);
extern void USB_DeviceIsrEnable(void);
+extern void USB_DeviceIsrDisable(void);
/*******************************************************************************
* Definitions
******************************************************************************/
USB_DeviceDeinit (s_cdcVcom.deviceHandle);
s_cdcVcom.deviceHandle = NULL;
+ USB_DeviceIsrDisable();
+
/* XXX: We are not stopping the USBOTG clock yet. */
}