/*******************************************************************************
* Function Name : CH55xUSBDevWakeup()
* Description : CH55x设备模式唤醒主机,发送K信号
* Input : None
* Output : None
* Return : None
*******************************************************************************/
void CH55xUSBDevWakeup( )
{
#ifdef Fullspeed
UDEV_CTRL |= bUD_LOW_SPEED;
mDelaymS(2);
UDEV_CTRL &= ~bUD_LOW_SPEED;
#else
UDEV_CTRL &= ~bUD_LOW_SPEED;
mDelaymS(2);
UDEV_CTRL |= bUD_LOW_SPEED;
#endif
}
热门产品 :
CH32X035: 32位USB+USB PD单片机