19 lines
766 B
C
19 lines
766 B
C
//
|
|
// Created by xemon on 07.12.22.
|
|
//
|
|
|
|
|
|
#include "FirmwareMetadataSection.h"
|
|
#include "VersionRandID.h"
|
|
|
|
#define FW_NAME_DEF FIRMWARE_VERSION " (" VERSION_RANDOM_BUILD_IDENTIFIER ")"
|
|
#define HW_NAME_DEF HARDWARE_REVISION
|
|
|
|
volatile const uint32_t META_FW_CRC __attribute__((section (".meta_fw_crc"))) = 0;
|
|
|
|
volatile const char META_FW_NAME[sizeof(FW_NAME_DEF) - 1] __attribute__((section (".meta_fw_name"))) = FW_NAME_DEF;
|
|
volatile const char META_HW_NAME[sizeof(HW_NAME_DEF) - 1] __attribute__((section (".meta_hw_name"))) = HW_NAME_DEF;
|
|
|
|
volatile const uint8_t META_FW_NAME_SIZE __attribute__((section (".meta_fw_name_size"))) = sizeof(META_FW_NAME);
|
|
volatile const uint8_t META_HW_NAME_SIZE __attribute__((section (".meta_hw_name_size"))) = sizeof(META_HW_NAME);
|