luat_log_rtt.c 328 B

1234567891011121314151617
  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_nprint(char *s, size_t l) {
  7. rt_device_write(luat_log_uart_device, 0, s, l);
  8. }
  9. void luat_log_write(char *s, size_t l) {
  10. rt_device_write(luat_log_uart_device, 0, s, l);
  11. }