Capabilities versionning, would also detect platform struct pack issues

This commit is contained in:
Philippe Teuwen 2019-05-10 19:00:18 +02:00
commit 3412e9d8c5
3 changed files with 8 additions and 1 deletions

View file

@ -138,6 +138,7 @@ typedef struct {
} t55xx_config;
typedef struct {
uint8_t version;
uint32_t baudrate;
bool via_fpc : 1;
// rdv4
@ -164,7 +165,7 @@ typedef struct {
bool hw_available_flash : 1;
bool hw_available_smartcard : 1;
} PACKED capabilities_t;
#define CAPABILITIES_VERSION 1
extern capabilities_t pm3_capabilities;
// For the bootloader