add some code to 3steppersLB

This commit is contained in:
Edward Emelianov
2021-11-04 02:03:33 +03:00
parent 263d805bf6
commit 8741e2e428
10 changed files with 435 additions and 71 deletions

View File

@@ -24,6 +24,7 @@
#include <stm32f0.h>
#include <string.h> // memcpy
#include "flash.h"
#include "steppers.h"
#include "strfunct.h"
extern const uint32_t __varsstart, _BLOCKSIZE;
@@ -44,7 +45,10 @@ static uint32_t maxCnum = 1024 / sizeof(user_conf); // can't use blocksize here
,.maxspd = {1000, 1000, 1000} \
,.maxsteps = {50000, 50000, 50000} \
,.encrev = {800,800,800} \
,.encperstepmin = {3,3,3} \
,.encperstepmax = {5,5,5} \
,.motflags = {DEFMF,DEFMF,DEFMF} \
,.ESW_reaction = {ESW_ANYSTOP, ESW_ANYSTOP, ESW_ANYSTOP} \
}
static int erase_flash(const void*, const void*);
static int write2flash(const void*, const void*, uint32_t);