luat_log_rtt.c 235 B

12345678910111213
  1. #include "luat_base.h"
  2. #include "luat_conf_bsp.h"
  3. #include "rtthread.h"
  4. #include <rtdevice.h>
  5. extern rt_device_t luat_log_uart_device;
  6. void luat_log_write(char *s, size_t l) {
  7. rt_device_write(luat_log_uart_device, 0, s, l);
  8. }