Skip to content

Commit

Permalink
Doc: documents version files
Browse files Browse the repository at this point in the history
  • Loading branch information
spalmer25 committed Mar 7, 2024
1 parent 3cd6264 commit 7657d2f
Showing 1 changed file with 26 additions and 1 deletion.
27 changes: 26 additions & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,35 @@
#pragma once

#include <stdint.h>

#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};

0 comments on commit 7657d2f

Please sign in to comment.