diff options
| author | hathach <[email protected]> | 2022-02-23 18:42:32 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2022-02-25 18:35:21 +0700 |
| commit | 4a5a53b3b88fcd2f5ec7f1f94eb07c27cb1e9bec (patch) | |
| tree | 3f005e9cb4adcf39b8c67860890987f96b650212 /src/class | |
| parent | b797d1aa50310a46d430ff0efd66d7e88028de3b (diff) | |
improve rphort management for usbd
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/cdc/cdc_rndis_host.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/class/cdc/cdc_rndis_host.c b/src/class/cdc/cdc_rndis_host.c index cc4ffd1cf..d41cf91ac 100644 --- a/src/class/cdc/cdc_rndis_host.c +++ b/src/class/cdc/cdc_rndis_host.c @@ -35,6 +35,16 @@ #include "cdc_host.h" #include "cdc_rndis_host.h" +#if 0 // TODO remove subtask related macros later +// Sub Task +#define OSAL_SUBTASK_BEGIN +#define OSAL_SUBTASK_END return TUSB_ERROR_NONE; + +#define STASK_RETURN(_error) return _error; +#define STASK_INVOKE(_subtask, _status) (_status) = _subtask +#define STASK_ASSERT(_cond) TU_VERIFY(_cond, TUSB_ERROR_OSAL_TASK_FAILED) +#endif + //--------------------------------------------------------------------+ // MACRO CONSTANT TYPEDEF //--------------------------------------------------------------------+ |
