diff options
| author | Ha Thach <[email protected]> | 2023-07-20 18:30:09 +0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-07-20 18:30:09 +0700 |
| commit | 17576a6949ced2fa7febca0d90da2f8afc8b6913 (patch) | |
| tree | a10a2a3f2efafe45b25dfd847515266f70110748 /src/device/usbd_pvt.h | |
| parent | 6c7c9f2ef5a80d5a6879e9c3558162188c6cf889 (diff) | |
| parent | 16ad918d96b2bd01189906d64d0871f0ea952833 (diff) | |
Merge pull request #2156 from hathach/usbh-xfer-user-callback
Usbh xfer user callback
Diffstat (limited to 'src/device/usbd_pvt.h')
| -rw-r--r-- | src/device/usbd_pvt.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/device/usbd_pvt.h b/src/device/usbd_pvt.h index 8393d3469..940b2858b 100644 --- a/src/device/usbd_pvt.h +++ b/src/device/usbd_pvt.h @@ -33,13 +33,20 @@ extern "C" { #endif +// Level where CFG_TUSB_DEBUG must be at least for USBD is logged +#ifndef CFG_TUD_LOG_LEVEL +#define CFG_TUD_LOG_LEVEL 2 +#endif + +#define TU_LOG_USBD(...) TU_LOG(CFG_TUD_LOG_LEVEL, __VA_ARGS__) + //--------------------------------------------------------------------+ // Class Driver API //--------------------------------------------------------------------+ typedef struct { - #if CFG_TUSB_DEBUG >= 2 + #if CFG_TUSB_DEBUG >= CFG_TUD_LOG_LEVEL char const* name; #endif |
