CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
Ardupilot

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

GitHub Repository: Ardupilot/ardupilot
Path: blob/master/libraries/AP_CheckFirmware/AP_CheckFirmwareDefine.h
Views: 1798
1
#ifndef FORCE_VERSION_H_INCLUDE
2
#error AP_CheckFirmwareDefines.h should never be included directly. You probably want to include AP_CheckFirmware/AP_CheckFirmware.h
3
#endif
4
#include "AP_CheckFirmware.h"
5
6
#if AP_CHECK_FIRMWARE_ENABLED
7
/*
8
declare constant app_descriptor in flash
9
*/
10
extern const app_descriptor_t app_descriptor;
11
12
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
13
const app_descriptor_t app_descriptor __attribute__((section(".app_descriptor"))) = {
14
#else
15
const app_descriptor_t app_descriptor = {
16
#endif
17
#if AP_SIGNED_FIRMWARE
18
.sig = AP_APP_DESCRIPTOR_SIGNATURE_SIGNED,
19
#else
20
.sig = AP_APP_DESCRIPTOR_SIGNATURE_UNSIGNED,
21
#endif
22
.image_crc1 = 0,
23
.image_crc2 = 0,
24
.image_size = 0,
25
.git_hash = 0,
26
#if AP_SIGNED_FIRMWARE
27
.signature_length = 0,
28
.signature = {},
29
#endif
30
.version_major = APP_FW_MAJOR,
31
.version_minor = APP_FW_MINOR,
32
.board_id = APJ_BOARD_ID,
33
.reserved = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }
34
};
35
#endif // AP_CHECK_FIRMWARE_ENABLED
36
37