不能调用 sbl_printf 的地方可以使用函数指针来调用
This commit is contained in:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user