mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-31 05:52:55 +08:00
Merge pull request #395 from hathach/define-log-printf
add CFG_TUSB_DEBUG_PRINTF() for log retargeting
This commit is contained in:
commit
e6d946123c
@ -215,7 +215,10 @@ static inline bool tu_bit_test (uint32_t value, uint8_t pos) { return (value
|
|||||||
|
|
||||||
void tu_print_mem(void const *buf, uint16_t count, uint8_t indent);
|
void tu_print_mem(void const *buf, uint16_t count, uint8_t indent);
|
||||||
|
|
||||||
#ifndef tu_printf
|
#ifdef CFG_TUSB_DEBUG_PRINTF
|
||||||
|
extern int CFG_TUSB_DEBUG_PRINTF(const char *format, ...);
|
||||||
|
#define tu_printf CFG_TUSB_DEBUG_PRINTF
|
||||||
|
#else
|
||||||
#define tu_printf printf
|
#define tu_printf printf
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user