diff options
| author | hathach <[email protected]> | 2019-11-28 11:46:36 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2019-11-28 11:46:36 +0700 |
| commit | 6bc245cb36cd18543916516a91def1f1e3a04e66 (patch) | |
| tree | 3ab7311768fa5ed86e98b1e2a6d7a0312adf656c /src/common | |
| parent | 40b454cf28e5a86dac8d261f1276ace108446ffe (diff) | |
add dcd_edpt0_status_complete() which is useful for several mcu port
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/tusb_common.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h index d162e4e8e..a2c40e669 100644 --- a/src/common/tusb_common.h +++ b/src/common/tusb_common.h @@ -216,17 +216,19 @@ static inline bool tu_bit_test (uint32_t value, uint8_t pos) { return (value void tu_print_mem(void const *buf, uint8_t size, uint16_t count);
#ifndef tu_printf
- #define tu_printf printf
+ #define tu_printf printf
#endif
// Log with debug level 1
-#define TU_LOG1 tu_printf
-#define TU_LOG1_MEM tu_print_mem
+#define TU_LOG1 tu_printf
+#define TU_LOG1_MEM tu_print_mem
+#define TU_LOG1_LOCATION() tu_printf("%s: %d:\n", __PRETTY_FUNCTION__, __LINE__)
// Log with debug level 2
#if CFG_TUSB_DEBUG > 1
- #define TU_LOG2 TU_LOG1
- #define TU_LOG2_MEM TU_LOG1_MEM
+ #define TU_LOG2 TU_LOG1
+ #define TU_LOG2_MEM TU_LOG1_MEM
+ #define TU_LOG2_LOCATION() TU_LOG1_LOCATION()
#endif
#endif // CFG_TUSB_DEBUG
|
