start fixing of this shit

This commit is contained in:
2024-08-15 16:50:06 +03:00
parent eaf137b5b6
commit 018f0d4b33
15 changed files with 140 additions and 130 deletions

View File

@@ -169,7 +169,7 @@ int pdnuart_microsteps(uint8_t no, uint32_t val){
return writeregister(no, TMC2209Reg_CHOPCONF, regval.value);
}
// init driver number `no`
// init driver number `no`, return FALSE if failed
int pdnuart_init(uint8_t no){
TMC2209_gconf_reg_t gconf;
if(!readregister(no, TMC2209Reg_GCONF, &gconf.value)) return FALSE;