예제 #1
0
파일: em_usbd.c 프로젝트: Archcady/mbed-os
/***************************************************************************//**
 * @brief
 *   Start USB device operation.
 *
 * @details
 *   Device operation is started by connecting a pullup resistor on the
 *   appropriate USB data line.
 ******************************************************************************/
void USBD_Connect( void )
{
  CORE_DECLARE_IRQ_STATE;
  CORE_ENTER_CRITICAL();
  USBDHAL_Connect();
  CORE_EXIT_CRITICAL();
}
예제 #2
0
/***************************************************************************//**
 * @brief
 *   Start USB device operation.
 *
 * @details
 *   Device operation is started by connecting a pullup resistor on the
 *   appropriate USB data line.
 ******************************************************************************/
void USBD_Connect( void )
{
  INT_Disable();
  USBDHAL_Connect();
  INT_Enable();
}