12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- #ifndef __LOG_H__
- #define __LOG_H__
- #include "uart.h"
- void phy_printf(const char *format, ...);
- void phy_printf_init(void);
- #ifndef DEBUG_INFO
- #error "DEBUG_INFO undefined!"
- #endif
- typedef void(*std_putc)(char* data, uint16_t size);
- #define AT_LOG(...)
- #define LOG(...) phy_printf(__VA_ARGS__)
- #define LOG_INIT() phy_printf_init()
- #endif
|