print.h 688 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __LIB_KERNEL_PRINT_H
  2. #define __LIB_KERNEL_PRINT_H
  3. #include "stdint.h"
  4. /**
  5. * @brief 打印字符
  6. * @note 打印 ascii characters
  7. * @param char_ascii: ascii string
  8. * @retval None
  9. */
  10. void put_char(uint8_t char_ascii);
  11. /**
  12. * @brief 打印字符串
  13. * @note 调用 put_char 打印字符串
  14. * @param *message: 字符串地址
  15. * @retval None
  16. */
  17. void put_str(char *message);
  18. /**
  19. * @brief 打印整数
  20. * @note 以十六进制形式打印整数
  21. * @param num: 数字
  22. * @retval None
  23. */
  24. void put_int(uint32_t num);
  25. /**
  26. * @brief 设置光标位置
  27. * @note
  28. * @param pos: 0~1999
  29. * @retval None
  30. */
  31. void set_cursor(unsigned pos);
  32. #endif // __LIB_KERNEL_PRINT_H