Path: blob/master/libraries/AP_CheckFirmware/AP_CheckFirmwareDefine.h
9571 views
#ifndef FORCE_VERSION_H_INCLUDE1#error AP_CheckFirmwareDefines.h should never be included directly. You probably want to include AP_CheckFirmware/AP_CheckFirmware.h2#endif3#include "AP_CheckFirmware.h"45#if AP_CHECK_FIRMWARE_ENABLED6/*7declare constant app_descriptor in flash8*/9extern const app_descriptor_t app_descriptor;1011#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS12const app_descriptor_t app_descriptor __attribute__((section(".app_descriptor"))) = {13#else14const app_descriptor_t app_descriptor = {15#endif16#if AP_SIGNED_FIRMWARE17.sig = AP_APP_DESCRIPTOR_SIGNATURE_SIGNED,18#else19.sig = AP_APP_DESCRIPTOR_SIGNATURE_UNSIGNED,20#endif21.image_crc1 = 0,22.image_crc2 = 0,23.image_size = 0,24.git_hash = 0,25#if AP_SIGNED_FIRMWARE26.signature_length = 0,27.signature = {},28#endif29.version_major = APP_FW_MAJOR,30.version_minor = APP_FW_MINOR,31.board_id = APJ_BOARD_ID,32.reserved = { 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }33};34#endif // AP_CHECK_FIRMWARE_ENABLED353637