seems like U[S]ARTS OK, not tested yet

This commit is contained in:
Edward Emelianov
2026-02-15 00:24:26 +03:00
parent 26e74a6b89
commit cd8151c684
10 changed files with 331 additions and 99 deletions

View File

@@ -29,6 +29,10 @@
#define CFG_pin (1<<9)
#define CFG_ON() (CFG_port->IDR & CFG_pin)
// RS-485 Rx is low level, Tx - high
#define RX485(port, pin) do{port->BRR = pin;}while(0)
#define TX485(port, pin) do{port->BSRR = pin;}while(0)
extern volatile uint32_t Tms;
extern uint8_t Config_mode;