diff options
| author | hathach <[email protected]> | 2020-04-20 00:27:35 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2020-04-20 00:27:35 +0700 |
| commit | e4570c35f757a6fcf7b4998ecd29663627051168 (patch) | |
| tree | 0f16f62faef0396da20fab7290f04076349cab56 /src | |
| parent | f9262007ac41c9fd78e81f27b3477d606a900437 (diff) | |
add uart for ea4357
Diffstat (limited to 'src')
| -rw-r--r-- | src/common/tusb_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
