diff options
| author | hathach <[email protected]> | 2023-12-15 17:42:25 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2023-12-15 17:42:25 +0700 |
| commit | 17a0ce655bab4413928404ce7dc4f968738bfcf6 (patch) | |
| tree | 26efd78e70fd01b0c819104b1c86d85b6f685f9b /src | |
| parent | f3d713ac7336913a68326eae5a7e146ec2cd22c3 (diff) | |
| parent | 9474db8b0fc3e96d654ed49529b82bbd329f2f56 (diff) | |
Merge branch 'master' into h5
Diffstat (limited to 'src')
| -rw-r--r-- | src/device/usbd_pvt.h | 5 | ||||
| -rw-r--r-- | src/host/usbh_pvt.h | 5 | ||||
| -rw-r--r-- | src/tusb_option.h | 10 |
3 files changed, 10 insertions, 10 deletions
diff --git a/src/device/usbd_pvt.h b/src/device/usbd_pvt.h index 153be7cee..9039bc9d6 100644 --- a/src/device/usbd_pvt.h +++ b/src/device/usbd_pvt.h @@ -33,11 +33,6 @@ 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__) //--------------------------------------------------------------------+ diff --git a/src/host/usbh_pvt.h b/src/host/usbh_pvt.h index 3363ab9eb..4a97a1c18 100644 --- a/src/host/usbh_pvt.h +++ b/src/host/usbh_pvt.h @@ -35,11 +35,6 @@ extern "C" { #endif -// Level where CFG_TUSB_DEBUG must be at least for USBH is logged -#ifndef CFG_TUH_LOG_LEVEL - #define CFG_TUH_LOG_LEVEL 2 -#endif - #define TU_LOG_USBH(...) TU_LOG(CFG_TUH_LOG_LEVEL, __VA_ARGS__) enum { diff --git a/src/tusb_option.h b/src/tusb_option.h index 699691b53..a76281c0c 100644 --- a/src/tusb_option.h +++ b/src/tusb_option.h @@ -300,6 +300,16 @@ #define CFG_TUSB_DEBUG 0 #endif +// Level where CFG_TUSB_DEBUG must be at least for USBH is logged +#ifndef CFG_TUH_LOG_LEVEL + #define CFG_TUH_LOG_LEVEL 2 +#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 + // Memory section for placing buffer used for usb transferring. If MEM_SECTION is different for // host and device use: CFG_TUD_MEM_SECTION, CFG_TUH_MEM_SECTION instead #ifndef CFG_TUSB_MEM_SECTION |
