libc.h 515 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2006-2018, 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 <stddef.h>
  13. int libc_system_init(void);
  14. int libc_stdio_set_console(const char* device_name, int mode);
  15. int libc_stdio_get_console(void);
  16. int libc_stdio_read (void *buffer, size_t size);
  17. int libc_stdio_write(const void *buffer, size_t size);
  18. #endif