2019-02-12 21:11:06 +00:00
|
|
|
#ifndef _VERSION_H_
|
|
|
|
#define _VERSION_H_
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef SOLO_VERSION_MAJ
|
|
|
|
|
|
|
|
#define SOLO_VERSION_MAJ 0
|
|
|
|
#define SOLO_VERSION_MIN 0
|
|
|
|
#define SOLO_VERSION_PATCH 0
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#define __STR_HELPER(x) #x
|
|
|
|
#define __STR(x) __STR_HELPER(x)
|
|
|
|
|
2019-02-13 03:02:11 +00:00
|
|
|
#ifndef SOLO_VERSION
|
|
|
|
#define SOLO_VERSION __STR(SOLO_VERSION_MAJ) "." __STR(SOLO_VERSION_MIN) "." __STR(SOLO_VERSION_PATCH)
|
2019-02-12 21:37:09 +00:00
|
|
|
#endif
|
2019-02-12 21:11:06 +00:00
|
|
|
|
2019-08-05 14:58:35 +00:00
|
|
|
#include <stdint.h>
|
|
|
|
#include <stdbool.h>
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
union{
|
|
|
|
uint32_t raw;
|
|
|
|
struct {
|
|
|
|
uint8_t major;
|
|
|
|
uint8_t minor;
|
|
|
|
uint8_t patch;
|
|
|
|
uint8_t reserved;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
} version_t;
|
|
|
|
|
|
|
|
bool is_newer(const version_t* const newer, const version_t* const older);
|
2020-10-29 16:28:56 +00:00
|
|
|
extern const version_t firmware_version ;
|
2019-08-24 06:51:17 +00:00
|
|
|
|
2019-02-12 21:11:06 +00:00
|
|
|
|
|
|
|
#endif
|