diff options
| author | Meco Man <[email protected]> | 2023-11-21 09:39:42 -0500 |
|---|---|---|
| committer | Meco Man <[email protected]> | 2023-11-21 23:22:55 -0500 |
| commit | 873fd76b2f180ec42b2d0e50b24cde07a1453975 (patch) | |
| tree | da2c288de7ed33ea13aff9845a1bea6265a23400 /include/rtthread.h | |
| parent | d73fd165b0ee16800bef66c1190549639170a4a0 (diff) | |
[libc] add RT_USING_INTERNAL_LIBC_ONLY macro
This option is for RT-Thread Nano version.
If select this option, it will not compile components/libc
folder and only use tool chain internal libc. Normally, the
tool chain internal is only cover ISO standard (e.g. armcc),
but some tool chains' internal libc will cover more than
ISO standard (e.g. newlib).
Diffstat (limited to 'include/rtthread.h')
| -rw-r--r-- | include/rtthread.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/rtthread.h b/include/rtthread.h index 0e9502d469..6b329a8aa4 100644 --- a/include/rtthread.h +++ b/include/rtthread.h @@ -659,13 +659,12 @@ void rt_components_board_init(void); #else int rt_kprintf(const char *fmt, ...); void rt_kputs(const char *str); +#endif /* RT_USING_CONSOLE */ rt_err_t rt_backtrace(void); rt_err_t rt_backtrace_thread(rt_thread_t thread); rt_err_t rt_backtrace_frame(struct rt_hw_backtrace_frame *frame); -#endif /* RT_USING_CONSOLE */ - int rt_vsprintf(char *dest, const char *format, va_list arg_ptr); int rt_vsnprintf(char *buf, rt_size_t size, const char *fmt, va_list args); int rt_sprintf(char *buf, const char *format, ...); |
