mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 03:44:30 +03:00
some bugs fixed, but found new (e.g. ADC always give 4095)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user