mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 20:04:30 +03:00
fixed USB problem
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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.
@@ -20,6 +20,7 @@ drvtype
|
||||
dumperr
|
||||
dumpcmd
|
||||
dumpconf
|
||||
dumpmot
|
||||
dumpmotflags
|
||||
dumpstates
|
||||
emstop
|
||||
|
||||
Reference in New Issue
Block a user