diff options
| author | hathach <[email protected]> | 2018-08-30 15:21:15 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-08-30 15:21:15 +0700 |
| commit | 4ef01d721ad6b49775f067d89faa5545d918f32f (patch) | |
| tree | 9146288783d363caec34eb064176a879674015a9 /src/device | |
| parent | 61e4a8c3d34994f47ae7380217af4dbefef4aab9 (diff) | |
clean up osal task and subtask
Diffstat (limited to 'src/device')
| -rw-r--r-- | src/device/usbd.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/device/usbd.c b/src/device/usbd.c index 8f1f6be90..2f760808b 100644 --- a/src/device/usbd.c +++ b/src/device/usbd.c @@ -107,7 +107,7 @@ static usbd_class_driver_t const usbd_class_drivers[] = .open = cdcd_open,
.control_req_st = cdcd_control_request_st,
.xfer_cb = cdcd_xfer_cb,
- .sof = cdcd_sof,
+ .sof = NULL,
.reset = cdcd_reset
},
#endif
@@ -250,6 +250,9 @@ tusb_error_t usbd_init (void) // To enable the TASK_ASSERT style (quick return on false condition) in a real RTOS, a task must act as a wrapper
// and is used mainly to call subtasks. Within a subtask return statement can be called freely, the task with
// forever loop cannot have any return at all.
+
+// Within tinyusb stack, all task's code must be placed in subtask to be able to support multiple RTOS
+// including none.
void usbd_task( void* param)
{
(void) param;
@@ -306,7 +309,7 @@ static tusb_error_t usbd_main_st(void) }
else
{
- STASK_ASSERT(false);
+ verify_breakpoint();
}
}
@@ -577,7 +580,7 @@ void dcd_bus_event(uint8_t rhport, usbd_bus_event_type_t bus_event) case USBD_BUS_EVENT_SOF:
{
- #if CFG_TUD_CDC_FLUSH_ON_SOF
+ #if 0
usbd_task_event_t task_event =
{
.rhport = rhport,
|
