add tusbh_cdc_send, t usbh_cdc_receive

add cdc_serial_app for virtual com demo
This commit is contained in:
hathach
2013-07-02 16:41:13 +07:00
parent 51f894b0bf
commit 6ce90e2bd8
10 changed files with 204 additions and 12 deletions

View File

@@ -88,6 +88,7 @@ void os_none_start_scheduler(void)
tusb_task_runner();
keyboard_app_task(NULL);
mouse_app_task(NULL);
cdc_serial_app_task(NULL);
led_blinking_task(NULL);
}
}
@@ -117,6 +118,10 @@ int main(void)
mouse_app_init();
#endif
#if TUSB_CFG_HOST_CDC
cdc_serial_app_init();
#endif
//------------- start OS scheduler (never return) -------------//
#if TUSB_CFG_OS == TUSB_OS_FREERTOS
vTaskStartScheduler();
@@ -142,8 +147,7 @@ int main(void)
//--------------------------------------------------------------------+
OSAL_TASK_FUNCTION( led_blinking_task ) (void* p_task_para)
{
// task init, only executed exactly one time, real RTOS does not need this but none OS does
{
{// task init, only executed exactly one time, real RTOS does not need this but none OS does
static bool is_init = false;
if (!is_init)
{