libc.h 531 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017/10/15 bernard the first version
  9. */
  10. #ifndef __RTT_LIBC_H__
  11. #define __RTT_LIBC_H__
  12. #include <rtconfig.h>
  13. #ifdef __cplusplus
  14. extern "C" {
  15. #endif
  16. int libc_system_init(void);
  17. #ifdef RT_USING_POSIX
  18. int libc_stdio_get_console(void);
  19. int libc_stdio_set_console(const char* device_name, int mode);
  20. #endif /* RT_USING_POSIX */
  21. #ifdef __cplusplus
  22. }
  23. #endif
  24. #endif