不能调用 sbl_printf 的地方可以使用函数指针来调用

This commit is contained in:
2024-11-01 19:16:40 +08:00
parent 16714f4caa
commit ff1d8f698a
4 changed files with 24 additions and 5 deletions

View File

@@ -142,4 +142,11 @@ Information is free from patent or copyright infringement.
/* FTM configuration end ******************************************************/
// 定义本地用于打印的函数指针
#define static_printf_def(addr) \
typedef int32_t (*static_printf)(const char *fmt, ...);\
static static_printf sbl_printf= (static_printf)addr;
#endif /* IOT_CONFIG_H */