Use better KPrintf

This commit is contained in:
TXuian
2024-05-07 18:02:19 +08:00
parent 50ecc1e520
commit 18eff4334c
6 changed files with 986 additions and 120 deletions
@@ -29,6 +29,8 @@ Modification:
*************************************************/
#pragma once
#include "uart_common_ope.h"
#define OUTPUT_LEVLE_LOG 0
#define OUTPUT_LEVLE_DEBUG 1
#define OUTPUT_LEVLE_ERROR 2
@@ -36,8 +38,6 @@ Modification:
#define OUTPUT_LEVLE OUTPUT_LEVLE_DEBUG
// #define OUTPUT_LEVLE OUTPUT_LEVLE_LOG
extern void KPrintf(char* fmt, ...);
#if (OUTPUT_LEVLE >= OUTPUT_LEVLE_LOG)
#define LOG_PRINTF(f, args...) \
KPrintf(f, ##args)