You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
267 B

11 months ago
  1. #include "zlog.h"
  2. bool g_xs_enable_log = true;
  3. void zlog(const char* fmt, ...)
  4. {
  5. va_list args;
  6. va_start(args, fmt);
  7. vprintf(fmt, args);
  8. va_end(args);
  9. }
  10. int __io_putchar(int ch)
  11. {
  12. HAL_UART_Transmit(&huart1, (uint8_t*)&ch, 1, 0xffff);
  13. return ch;
  14. }