diff options
| author | hathach <[email protected]> | 2018-03-14 22:01:16 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2018-03-14 22:01:16 +0700 |
| commit | 4a521711b96d3ea4a9946a128c065de72e832af6 (patch) | |
| tree | 3a6fc96e192b9452fded43b1f6a24f0fa95128b0 /tinyusb/common | |
| parent | 7707fe194fbd81d8970933b1ae8d7f0a2951c41b (diff) | |
add usbd_control_xfer_substak
seperate control xfer Data and Status phase
Diffstat (limited to 'tinyusb/common')
| -rw-r--r-- | tinyusb/common/verify.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tinyusb/common/verify.h b/tinyusb/common/verify.h index f43e0f0a4..69c2a8053 100644 --- a/tinyusb/common/verify.h +++ b/tinyusb/common/verify.h @@ -106,13 +106,13 @@ #define VERIFY_STS_HDLR_2ARGS(sts, _handler) \ do { \ uint32_t _status = (uint32_t)(sts); \ - if ( 0 != _status ) { _VERIFY_MESS(_status) _handler; return _status; }\ + if ( 0 != _status ) { tusb_hal_dbg_breakpoint(); _VERIFY_MESS(_status) _handler; return _status; }\ } while(0) #define VERIFY_STS_HDLR_3ARGS(sts, _handler, _error) \ do { \ uint32_t _status = (uint32_t)(sts); \ - if ( 0 != _status ) { _VERIFY_MESS(_status) _handler; return _error; }\ + if ( 0 != _status ) { tusb_hal_dbg_breakpoint(); _VERIFY_MESS(_status) _handler; return _error; }\ } while(0) #define VERIFY_STATUS_HDLR(...) GET_4TH_ARG(__VA_ARGS__, VERIFY_STS_HDLR_3ARGS, VERIFY_STS_HDLR_2ARGS)(__VA_ARGS__) |
