From e4570c35f757a6fcf7b4998ecd29663627051168 Mon Sep 17 00:00:00 2001 From: hathach Date: Mon, 20 Apr 2020 00:27:35 +0700 Subject: add uart for ea4357 --- src/common/tusb_common.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/common/tusb_common.h b/src/common/tusb_common.h index ef232a593..2d80f8210 100644 --- a/src/common/tusb_common.h +++ b/src/common/tusb_common.h @@ -223,12 +223,16 @@ void tu_print_mem(void const *buf, uint16_t count, uint8_t indent); #define TU_LOG1 tu_printf #define TU_LOG1_MEM tu_print_mem #define TU_LOG1_LOCATION() tu_printf("%s: %d:\r\n", __PRETTY_FUNCTION__, __LINE__) +#define TU_LOG1_INT(x) tu_printf(#x " = %ld\n", (uint32_t) (x) ) +#define TU_LOG1_HEX(x) tu_printf(#x " = %lX\n", (uint32_t) (x) ) // 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_LOCATION() TU_LOG1_LOCATION() + #define TU_LOG2_INT TU_LOG1_INT + #define TU_LOG2_HEX TU_LOG1_HEX #endif -- cgit v1.3.1