コード例 #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();
}