summaryrefslogtreecommitdiff
path: root/examples/obsolete/device/src/cdc_device_app.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/obsolete/device/src/cdc_device_app.c')
-rw-r--r--examples/obsolete/device/src/cdc_device_app.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/obsolete/device/src/cdc_device_app.c b/examples/obsolete/device/src/cdc_device_app.c
index c6e903fcf..843ab5a7a 100644
--- a/examples/obsolete/device/src/cdc_device_app.c
+++ b/examples/obsolete/device/src/cdc_device_app.c
@@ -44,17 +44,16 @@
#include "app_os_prio.h"
//--------------------------------------------------------------------+
-// INCLUDE
-//--------------------------------------------------------------------+
-enum { SERIAL_BUFFER_SIZE = 64 };
-
-//--------------------------------------------------------------------+
// MACRO CONSTANT TYPEDEF
//--------------------------------------------------------------------+
+enum { SERIAL_BUFFER_SIZE = 64 };
//--------------------------------------------------------------------+
// INTERNAL OBJECT & FUNCTION DECLARATION
//--------------------------------------------------------------------+
+void cdc_serial_app_task(void* param);
+
+OSAL_TASK_DEF(cdc_task_def, "blinky", cdc_serial_app_task, CDC_SERIAL_APP_TASK_PRIO, 128);
//--------------------------------------------------------------------+
// tinyusb callbacks
@@ -78,6 +77,7 @@ void tud_cdc_rx_cb(uint8_t rhport)
//--------------------------------------------------------------------+
void cdc_serial_app_init(void)
{
+ osal_task_create(&cdc_task_def);
}
tusb_error_t cdc_serial_subtask(void);