Set firmware version in the flash

This commit is contained in:
Szczepan Zalega
2019-08-06 16:46:20 +02:00
parent beb5a5892c
commit 118e129152

13
fido2/version.c Normal file
View File

@@ -0,0 +1,13 @@
#include "version.h"
static const version_t firmware_version __attribute__ ((section (".flag"))) __attribute__ ((__used__)) = {
.major = SOLO_VERSION_MAJ,
.minor = SOLO_VERSION_MIN,
.patch = SOLO_VERSION_PATCH,
.reserved = 0
};
// from tinycbor, for a quick static_assert
#include <compilersupport_p.h>
cbor_static_assert(sizeof(version_t) == 4);