rt_console.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /******************************************************************************
  2. 版权所有:
  3. 文件名称: rt_fifo.h
  4. 文件版本: 01.01
  5. 创建作者: sunxi
  6. 创建日期: 2020-06-18
  7. 功能说明: 实时FIFO,采用免锁算法,只支持单进单出,不支持多进多处。
  8. 其它说明:
  9. 修改记录:
  10. */
  11. #ifndef _RT_CONSOLE_H
  12. #define _RT_CONSOLE_H
  13. /*------------------------------- 头文件 --------------------------------------
  14. */
  15. /*------------------------------- 宏定义 --------------------------------------
  16. */
  17. /*------------------------------ 类型结构 -------------------------------------
  18. */
  19. #if 0
  20. extern uint32_t g_stat_temp_us0;
  21. extern struct rt_stat g_stat_temp;
  22. #define temp_stat_begin() g_stat_temp_us0 = ustimer_get_origin();
  23. #define temp_stat_end() rt_stat_in(&g_stat_temp,ustimer_get_duration(g_stat_temp_us0));
  24. #endif
  25. /*------------------------------ 函数声明 -------------------------------------
  26. */
  27. int rt_console_init(void);
  28. int rt_console_exit(void);
  29. int rt_console_read(unsigned char *buffer, unsigned int len);
  30. int rt_console_write(int is_net,unsigned char *buffer, unsigned int len);
  31. unsigned int rt_console_write_len(void);
  32. #endif //_RT_CONSOLE_H
  33. /*------------------------------ 文件结束 -------------------------------------
  34. */