fixed USB problem

This commit is contained in:
Edward Emelianov
2024-08-26 20:47:04 +03:00
parent 3e86556206
commit 9166996bff
20 changed files with 326 additions and 240 deletions

View File

@@ -56,6 +56,8 @@ int fn_dumpconf(uint32_t _U_ hash, char _U_ *args) WAL; // "dumpconf" (327151318
int fn_dumperr(uint32_t _U_ hash, char _U_ *args) WAL; // "dumperr" (1223989764)
int fn_dumpmot(uint32_t _U_ hash, char _U_ *args) WAL; // "dumpmot" (1224122507)
int fn_dumpmotflags(uint32_t _U_ hash, char _U_ *args) WAL; // "dumpmotflags" (36159640)
int fn_dumpstates(uint32_t _U_ hash, char _U_ *args) WAL; // "dumpstates" (4235564367)
@@ -216,6 +218,9 @@ int parsecmd(const char *str){
case CMD_DUMPERR:
return fn_dumperr(h, args);
break;
case CMD_DUMPMOT:
return fn_dumpmot(h, args);
break;
case CMD_DUMPMOTFLAGS:
return fn_dumpmotflags(h, args);
break;

View File

@@ -38,6 +38,7 @@ extern char lastcmd[];
#define CMD_DUMPCMD (1223955823)
#define CMD_DUMPCONF (3271513185)
#define CMD_DUMPERR (1223989764)
#define CMD_DUMPMOT (1224122507)
#define CMD_DUMPMOTFLAGS (36159640)
#define CMD_DUMPSTATES (4235564367)
#define CMD_EMSTOP (2965919005)

View File

@@ -20,6 +20,7 @@
"dumperr - dump error codes\n"
"dumpcmd - dump command codes\n"
"dumpconf - dump current configuration\n"
"dumpmotN - dump Nth motor configuration\n"
"dumpmotflags - dump motor flags' bits\n"
"dumpstates - dump motors' state codes\n"
"emstop[N] - emergency stop motor N or all\n"

Binary file not shown.

View File

@@ -20,6 +20,7 @@ drvtype
dumperr
dumpcmd
dumpconf
dumpmot
dumpmotflags
dumpstates
emstop