some bugs fixed, but found new (e.g. ADC always give 4095)

This commit is contained in:
Edward Emelianov
2023-02-21 23:01:43 +03:00
parent ab5f7bc87b
commit 1a8345d4f0
14 changed files with 161 additions and 70 deletions

View File

@@ -114,6 +114,10 @@ int fn_udata(_U_ uint32_t hash, _U_ char *args) WAL; // "udata" (2736127636)
int fn_usartstatus(_U_ uint32_t hash, _U_ char *args) WAL; // "usartstatus" (4007098968)
int fn_vdrive(_U_ uint32_t hash, _U_ char *args) WAL; // "vdrive" (2172773525)
int fn_vfive(_U_ uint32_t hash, _U_ char *args) WAL; // "vfive" (3017477285)
static uint32_t hashf(const char *str){
uint32_t hash = 5381;
uint32_t c;
@@ -291,6 +295,12 @@ int parsecmd(const char *str){
case CMD_USARTSTATUS:
return fn_usartstatus(h, args);
break;
case CMD_VDRIVE:
return fn_vdrive(h, args);
break;
case CMD_VFIVE:
return fn_vfive(h, args);
break;
default: break;
}
return RET_CMDNOTFOUND;