Explorar el Código

【完善】串口注释。

Signed-off-by: armink <armink.ztl@gmail.com>
armink hace 7 años
padre
commit
c6dcc02fb3
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      port/machine_uart.c

+ 4 - 0
port/machine_uart.c

@@ -218,12 +218,16 @@ STATIC MP_DEFINE_CONST_DICT(machine_uart_locals_dict, machine_uart_locals_dict_t
 STATIC mp_uint_t machine_uart_read(mp_obj_t self_in, void *buf_in, mp_uint_t size, int *errcode) {
     machine_uart_obj_t *self = self_in;
     byte *buf = buf_in;
+    //TODO dfs sync read
+    MP_RTT_NOT_IMPL_PRINT;
     return rt_device_read((struct rt_device *)(self->uart_device), -1, buf, size);
 }
 
 STATIC mp_uint_t machine_uart_write(mp_obj_t self_in, const void *buf_in, mp_uint_t size, int *errcode) {
     machine_uart_obj_t *self = self_in;
     const byte *buf = buf_in;
+    //TODO dfs sync write
+    MP_RTT_NOT_IMPL_PRINT;
     return rt_device_write((struct rt_device *)(self->uart_device), -1, buf, size);
 }