diff --git a/src/version.h b/src/version.h index a459506a..f106a903 100644 --- a/src/version.h +++ b/src/version.h @@ -1,10 +1,35 @@ +#pragma once + +#include + #define CLASS 1 +#ifndef MAJOR_VERSION +#define MAJOR_VERSION 0 +#endif + +#ifndef MINOR_VERSION +#define MINOR_VERSION 0 +#endif + +#ifndef PATCH_VERSION +#define PATCH_VERSION 0 +#endif + +/** + * @brief This structure represents the version + * + */ typedef struct version { - uint8_t class; + uint8_t class; /// 0 for the wallet app + /// 1 for the baking app uint8_t major; uint8_t minor; uint8_t patch; } version_t; +/** + * @brief Constant app version + * + */ const version_t version = {CLASS, MAJOR_VERSION, MINOR_VERSION, PATCH_VERSION};