本帖最后由 gurong60 于 2013-4-18 16:53 编辑
int main(void)
{
Set_System();
Set_USBClock();
USB_Interrupts_Config();
USB_Init();
while(1) {
switch (usart_2_usb_process)
{
case USART_RECEIVE:
break;
case START_USART2USB:
usart_2_usb_send();
break;
case WAIT_USART2USB_END:
usart_2_usb_waitend();
break;
default:
break;
}
}
|