From 4a521711b96d3ea4a9946a128c065de72e832af6 Mon Sep 17 00:00:00 2001 From: hathach Date: Wed, 14 Mar 2018 22:01:16 +0700 Subject: add usbd_control_xfer_substak seperate control xfer Data and Status phase --- tinyusb/common/verify.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tinyusb/common') 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__) -- cgit v1.3.1