diff options
| author | hathach <[email protected]> | 2018-03-22 14:15:16 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-22 14:15:16 +0700 |
| commit | ce2fc0470cbdbd64faa7b4460d3745d78722d49f (patch) | |
| tree | 326ea97e071159c3a0bdb04adca454507172f908 /tinyusb/osal/osal.h | |
| parent | 17a227ca90ff05f0929cff339cee30d69878c149 (diff) | |
improve usbd control transfer
Diffstat (limited to 'tinyusb/osal/osal.h')
| -rw-r--r-- | tinyusb/osal/osal.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tinyusb/osal/osal.h b/tinyusb/osal/osal.h index 4faca3d5c..e4827bf37 100644 --- a/tinyusb/osal/osal.h +++ b/tinyusb/osal/osal.h @@ -72,10 +72,10 @@ //------------- Sub Task -------------//
#define OSAL_SUBTASK_BEGIN
- #define OSAL_SUBTASK_END return TUSB_ERROR_NONE;
+ #define OSAL_SUBTASK_END return TUSB_ERROR_NONE;
- #define SUBTASK_RETURN(error) return error;
- #define SUBTASK_INVOKE(subtask, status) status = subtask
+ #define SUBTASK_RETURN(_error) return _error;
+ #define SUBTASK_INVOKE(_subtask, _status) (_status) = _subtask
//------------- Sub Task Assert -------------//
#define SUBTASK_ASSERT_STATUS(sts) VERIFY_STATUS(sts)
|
