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

@@ -86,6 +86,13 @@ enum{
,CCMD_MOTORSTATE // motor state
,CCMD_ENCPOS // position of encoder (independing on settings)
,CCMD_SETPOS // set motor position
,CCMD_MOTMUL
,CCMD_DIAGN
,CCMD_ERASEFLASH
,CCMD_UDATA
,CCMD_USARTSTATUS
,CCMD_VDRIVE
,CCMD_VFIVE
// should be the last:
,CCMD_AMOUNT // amount of common commands
};
@@ -129,3 +136,5 @@ errcodes cu_stop(uint8_t par, int32_t *val);
errcodes cu_tmcbus(uint8_t par, int32_t *val);
errcodes cu_udata(uint8_t par, int32_t *val);
errcodes cu_usartstatus(uint8_t par, int32_t *val);
errcodes cu_vdrive(uint8_t par, int32_t *val);
errcodes cu_vfive(uint8_t par, int32_t *val);