mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
Oh, fucking shit! It's seems like it's works!!!
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "flash.h"
|
||||
#include "hardware.h"
|
||||
#include "pdnuart.h"
|
||||
#include "proto.h"
|
||||
#include "steppers.h"
|
||||
#include "strfunc.h"
|
||||
@@ -82,6 +83,13 @@ void update_stepper(uint8_t i){
|
||||
accdecsteps[i] = (the_conf.maxspd[i] * the_conf.maxspd[i]) / the_conf.accel[i] / 2;
|
||||
ustepsshift[i] = MSB(the_conf.microsteps[i]);
|
||||
ESW_reaction[i] = the_conf.ESW_reaction[i];
|
||||
switch(the_conf.motflags[i].drvtype){
|
||||
case DRVTYPE_UART:
|
||||
pdnuart_init(i);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// run this function after each steppers parameters changing
|
||||
|
||||
Reference in New Issue
Block a user