summaryrefslogtreecommitdiff
path: root/examples/host
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-04-19 00:23:15 +0700
committerhathach <[email protected]>2019-04-19 00:23:15 +0700
commit3e4bb141ce082a1325c7b63002fb29513850a1f8 (patch)
tree37d8c133c9d601157ce71e8e5c235c7f2fc94ef0 /examples/host
parent23bcf1cc7a38df4376a27f538604283571773cfc (diff)
update device freeRTOS exmaple
Diffstat (limited to 'examples/host')
-rw-r--r--examples/host/cdc_msc_hid/src/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/host/cdc_msc_hid/src/main.c b/examples/host/cdc_msc_hid/src/main.c
index 4f31c6d3f..1c9a5ded2 100644
--- a/examples/host/cdc_msc_hid/src/main.c
+++ b/examples/host/cdc_msc_hid/src/main.c
@@ -37,8 +37,8 @@
void print_greeting(void);
void led_blinking_task(void);
-extern void virtual_com_task(void);
-extern void usb_hid_task(void);
+extern void cdc_task(void);
+extern void hid_task(void);
/*------------- MAIN -------------*/
int main(void)
@@ -56,11 +56,11 @@ int main(void)
led_blinking_task();
#if CFG_TUH_CDC
- virtual_com_task();
+ cdc_task();
#endif
#if CFG_TUD_HID
- usb_hid_task();
+ hid_task();
#endif
}
@@ -100,7 +100,7 @@ void tuh_cdc_xfer_isr(uint8_t dev_addr, xfer_result_t event, cdc_pipeid_t pipe_i
tuh_cdc_receive(dev_addr, serial_in_buffer, sizeof(serial_in_buffer), true); // waiting for next data
}
-void virtual_com_task(void)
+void cdc_task(void)
{
}
@@ -111,7 +111,7 @@ void virtual_com_task(void)
// USB HID
//--------------------------------------------------------------------+
#if CFG_TUH_HID_KEYBOARD
-void usb_hid_task(void)
+void hid_task(void)
{
}