continue developing GPIO config; not tested yet

This commit is contained in:
Edward Emelianov
2026-03-09 01:24:02 +03:00
parent d39682b143
commit 9713b10cd4
10 changed files with 470 additions and 38 deletions

View File

@@ -23,6 +23,8 @@
#pragma once
#include <stdint.h>
#include "gpio.h"
#include "usb_descr.h"
// register with flash size (in blocks)
@@ -43,6 +45,10 @@ typedef struct __attribute__((packed, aligned(4))){
uint16_t CANspeed; // default CAN speed (in kBaud!!!)
uint16_t iInterface[InterfacesAmount][MAX_IINTERFACE_SZ]; // we store Interface name here in UTF!
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;
} user_conf;
extern user_conf the_conf; // global user config (read from FLASH to RAM)