add flash.c and all stubs for common functions

This commit is contained in:
Edward Emelianov
2023-02-13 21:55:18 +03:00
parent 2ecd2d188e
commit 617daf62c7
13 changed files with 816 additions and 7 deletions

View File

@@ -37,6 +37,8 @@ extern const uint32_t BTNpins[BTNSNO];
// state 1 - pressed, 0 - released (pin active is zero)
#define BTN_state(x) ((BTNports[x]->IDR & BTNpins[x]) ? 0 : 1)
// motors amount
#define MOTORSNO (8)
extern volatile uint32_t Tms;