mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-15 17:02:53 +08:00
Merge pull request #13 from mysterywolf/master
replace printf for rt-thread
This commit is contained in:
commit
b13d91510e
@ -11,6 +11,4 @@
|
||||
#define PACKAGES_PIKASCRIPT_LATEST_PIKASCRIPT_LIB_RTBOOTER_PIKA_CONFIG_H_
|
||||
#include <rtthread.h>
|
||||
|
||||
#define __platform_printf(...) rt_kprintf(__VA_ARGS__)
|
||||
|
||||
#endif /* PACKAGES_PIKASCRIPT_LATEST_PIKASCRIPT_LIB_RTBOOTER_PIKA_CONFIG_H_ */
|
||||
|
@ -40,6 +40,10 @@
|
||||
#define PIKA_WEAK __attribute__((weak))
|
||||
#endif
|
||||
|
||||
#ifdef __RTTHREAD__
|
||||
#define __platform_printf(...) rt_kprintf(__VA_ARGS__)
|
||||
#endif
|
||||
|
||||
/* The following functions are can be
|
||||
overrided to config pikaScript. */
|
||||
|
||||
@ -53,8 +57,10 @@ uint8_t __platform_Asm_is_to_flash(char* pyMultiLine);
|
||||
int32_t __platform_save_pikaAsm_EOF(void);
|
||||
char* __platform_load_pikaAsm(void);
|
||||
|
||||
/* printf */
|
||||
/* printf family */
|
||||
#ifndef __platform_printf
|
||||
void __platform_printf(char* fmt, ...);
|
||||
#endif
|
||||
int __platform_sprintf(char* buff, char* fmt, ...);
|
||||
int __platform_vsprintf(char* buff, char* fmt, va_list args);
|
||||
int __platform_vsnprintf(char* buff,
|
||||
|
Loading…
x
Reference in New Issue
Block a user