예제 #1
0
파일: em_usbd.c 프로젝트: Archcady/mbed-os
/***************************************************************************//**
 * @brief
 *   Abort all pending transfers.
 *
 * @details
 *   Aborts transfers for all endpoints currently in use. Pending
 *   transfers on the default endpoint (EP0) are not aborted.
 ******************************************************************************/
void USBD_AbortAllTransfers( void )
{
  CORE_DECLARE_IRQ_STATE;
  CORE_ENTER_CRITICAL();
  USBDHAL_AbortAllTransfers( USB_STATUS_EP_ABORTED );
  CORE_EXIT_CRITICAL();
}
예제 #2
0
/***************************************************************************//**
 * @brief
 *   Abort all pending transfers.
 *
 * @details
 *   Aborts transfers for all endpoints currently in use. Pending
 *   transfers on the default endpoint (EP0) are not aborted.
 ******************************************************************************/
void USBD_AbortAllTransfers( void )
{
  INT_Disable();
  USBDHAL_AbortAllTransfers( USB_STATUS_EP_ABORTED );
  INT_Enable();
}