console.h 511 B

12345678910111213141516171819
  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. * 2021.12.07 linzhenxing first version
  9. */
  10. #ifndef __CONSOLE_
  11. #define __CONSOLE_
  12. #include <rtthread.h>
  13. #include "tty.h"
  14. struct tty_struct *console_tty_get(void);
  15. struct rt_device *console_get_iodev(void);
  16. struct rt_device *console_set_iodev(struct rt_device *iodev);
  17. rt_err_t console_register(const char *name, struct rt_device *iodev);
  18. #endif