2015-11-27 19:16:55 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2018-03-20 22:39:27 +00:00
|
|
|
typedef struct{
|
2017-09-06 02:20:06 +00:00
|
|
|
// set at link-time by add-version-info.py
|
|
|
|
uint32_t image_crc;
|
|
|
|
uint32_t image_size;
|
2015-11-27 19:16:55 +00:00
|
|
|
|
2017-09-06 02:20:06 +00:00
|
|
|
char git_version[32];
|
|
|
|
char git_branch[32];
|
|
|
|
char build_user[16];
|
|
|
|
char build_host[32];
|
|
|
|
char build_date[16];
|
|
|
|
char build_time[16];
|
2015-11-27 19:16:55 +00:00
|
|
|
|
2017-09-06 02:20:06 +00:00
|
|
|
// set at compile-time
|
|
|
|
//TODO: change to uint32_t
|
|
|
|
char product_name[32];
|
|
|
|
int major;
|
|
|
|
int minor;
|
|
|
|
int patch;
|
2018-03-20 22:39:27 +00:00
|
|
|
} version_info_t;
|
2015-11-27 19:16:55 +00:00
|
|
|
|
2018-03-20 22:39:27 +00:00
|
|
|
extern volatile const version_info_t version_info;
|