You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
501 B

11 months ago
  1. #pragma once
  2. #include <stdbool.h>
  3. #include "zdelay.h"
  4. #include "uart.h"
  5. #include "stm32f4xx_hal.h"
  6. extern bool g_xs_enable_log;
  7. extern UART_HandleTypeDef huart1;
  8. #define ZLOGI(TAG, fmt, ...) \
  9. if (g_xs_enable_log) { \
  10. zlog("%08lu INFO [%-8s] " fmt "\n", zget_ticket(), TAG, ##__VA_ARGS__); \
  11. }
  12. #define prfbuf_LEN 128
  13. void zlog(const char* fmt, ...);
  14. int __io_putchar(int ch);