Working (but still dev-mode; need some more different configurators)

This commit is contained in:
2025-04-02 18:26:02 +03:00
parent c449cb7108
commit faeac98318
18 changed files with 476 additions and 95 deletions

View File

@@ -27,6 +27,12 @@
// maximal size (in letters) of iInterface for settings
#define MAX_IINTERFACE_SZ (16)
typedef struct{
uint8_t CPOL : 1;
uint8_t CPHA : 1;
uint8_t BR : 3;
} flags_t;
/*
* struct to save user configurations
*/
@@ -34,6 +40,8 @@ typedef struct __attribute__((packed, aligned(4))){
uint16_t userconf_sz; // "magick number"
uint16_t iInterface[bTotNumEndpoints][MAX_IINTERFACE_SZ]; // hryunikod!
uint8_t iIlengths[bTotNumEndpoints];
flags_t flags; // flags: CPOL, CPHA etc
uint8_t encbits; // encoder bits: 26 or 32
} user_conf;
extern user_conf the_conf;