/***************************************************************************//** * @brief * Stop USB device operation. * * @details * Device operation is stopped by disconnecting the pullup resistor from the * appropriate USB data line. Often referred to as a "soft" disconnect. ******************************************************************************/ void USBD_Disconnect( void ) { CORE_DECLARE_IRQ_STATE; CORE_ENTER_CRITICAL(); USBDHAL_Disconnect(); CORE_EXIT_CRITICAL(); }
/***************************************************************************//** * @brief * Stop USB device operation. * * @details * Device operation is stopped by disconnecting the pullup resistor from the * appropriate USB data line. Often referred to as a "soft" disconnect. ******************************************************************************/ void USBD_Disconnect( void ) { INT_Disable(); USBDHAL_Disconnect(); INT_Enable(); }