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.
33 lines
501 B
33 lines
501 B
#pragma once
|
|
|
|
#include <stdbool.h>
|
|
|
|
#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);
|