#pragma once #include #include "zdelay.h" #include "uart.h" #include "stm32f4xx_hal.h" extern bool g_xs_enable_log; extern UART_HandleTypeDef huart1; #define ZLOGI(TAG, fmt, ...) \ if (g_xs_enable_log) { \ zlog("%08lu INFO [%-8s] " fmt "\n", zget_ticket(), TAG, ##__VA_ARGS__); \ } #define prfbuf_LEN 128 void zlog(const char* fmt, ...); int __io_putchar(int ch);