添加与app对接协议

This commit is contained in:
OPTOC
2025-09-09 18:16:48 +08:00
parent fb05542e80
commit f081dc891c
8 changed files with 523 additions and 7 deletions

View File

@@ -302,9 +302,9 @@ uint8_t embedded_device_choice(device_t *port, uint8_t type)
return DEVICE_OK;
}
int embedded_device_read(device_t *port, void *buffer, uint32_t length)
int embedded_device_read(device_t *port, void *buffer, uint32_t length, uint32_t timeout)
{
return sb_data_port_read(port->embedded_device, buffer, length, 0);
return sb_data_port_read(port->embedded_device, buffer, length, timeout);
}
int embedded_device_write(device_t *port, void *buffer, uint32_t length)