支持Os编译

This commit is contained in:
zhangzheng
2023-12-02 20:18:32 +08:00
parent ebde91c418
commit 8c4692ac39
8 changed files with 26 additions and 21 deletions

View File

@@ -38,10 +38,8 @@ signed short userShellWrite(char *data, unsigned short len)
*/
signed short userShellRead(char *data, unsigned short len)
{
int ret = 0;
while (ret <= 0)
while (cons_read((uint8_t *)data, len) <= 0)
{
ret = cons_read((uint8_t *)data, len);
u_sleep_ms(5);
}
}