This commit is contained in:
Edward Emelianov
2026-03-13 00:15:18 +03:00
parent b44fd9e91f
commit 14f544374a
9 changed files with 323 additions and 91 deletions

View File

@@ -25,6 +25,7 @@
#include <stdint.h>
#include "gpio.h"
#include "usart.h"
#include "usb_descr.h"
// register with flash size (in blocks)
@@ -47,8 +48,8 @@ typedef struct __attribute__((packed, aligned(4))){
uint8_t iIlengths[InterfacesAmount]; // length in BYTES (symbols amount x2)!
// gpio settings
pinconfig_t pinconfig[2][16]; // GPIOA, GPIOB
usartconfig_t usartconfig;
spiconfig_t spiconfig;
usartconf_t usartconfig;
//spiconfig_t spiconfig;
} user_conf;
extern user_conf the_conf; // global user config (read from FLASH to RAM)