mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
OP-974 add bootloader revision info in FirmwareIAP
This commit is contained in:
parent
c7ada40c2e
commit
15200eafd8
@ -100,6 +100,7 @@ int32_t FirmwareIAPInitialize()
|
|||||||
PIOS_BL_HELPER_FLASH_Read_Description(data.Description, FIRMWAREIAPOBJ_DESCRIPTION_NUMELEM);
|
PIOS_BL_HELPER_FLASH_Read_Description(data.Description, FIRMWAREIAPOBJ_DESCRIPTION_NUMELEM);
|
||||||
PIOS_SYS_SerialNumberGetBinary(data.CPUSerial);
|
PIOS_SYS_SerialNumberGetBinary(data.CPUSerial);
|
||||||
data.BoardRevision = bdinfo->board_rev;
|
data.BoardRevision = bdinfo->board_rev;
|
||||||
|
data.BootloaderRevision = bdinfo->bl_rev;
|
||||||
data.ArmReset = 0;
|
data.ArmReset = 0;
|
||||||
data.crc = 0;
|
data.crc = 0;
|
||||||
FirmwareIAPObjSet(&data);
|
FirmwareIAPObjSet(&data);
|
||||||
@ -147,6 +148,7 @@ static void FirmwareIAPCallback(UAVObjEvent *ev)
|
|||||||
PIOS_BL_HELPER_FLASH_Read_Description(data.Description, FIRMWAREIAPOBJ_DESCRIPTION_NUMELEM);
|
PIOS_BL_HELPER_FLASH_Read_Description(data.Description, FIRMWAREIAPOBJ_DESCRIPTION_NUMELEM);
|
||||||
PIOS_SYS_SerialNumberGetBinary(data.CPUSerial);
|
PIOS_SYS_SerialNumberGetBinary(data.CPUSerial);
|
||||||
data.BoardRevision = bdinfo->board_rev;
|
data.BoardRevision = bdinfo->board_rev;
|
||||||
|
data.BootloaderRevision = bdinfo->bl_rev;
|
||||||
data.crc = PIOS_BL_HELPER_CRC_Memory_Calc();
|
data.crc = PIOS_BL_HELPER_CRC_Memory_Calc();
|
||||||
FirmwareIAPObjSet(&data);
|
FirmwareIAPObjSet(&data);
|
||||||
}
|
}
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
<field name="CPUSerial" units="" type="uint8" elements="12" />
|
<field name="CPUSerial" units="" type="uint8" elements="12" />
|
||||||
<field name="BoardRevision" units="" type="uint16" elements="1"/>
|
<field name="BoardRevision" units="" type="uint16" elements="1"/>
|
||||||
<field name="BoardType" units="" type="uint8" elements="1"/>
|
<field name="BoardType" units="" type="uint8" elements="1"/>
|
||||||
|
<field name="BootloaderRevision" units="" type="uint8" elements="1"/>
|
||||||
<field name="ArmReset" units="" type="uint8" elements="1"/>
|
<field name="ArmReset" units="" type="uint8" elements="1"/>
|
||||||
<field name="crc" units="" type="uint32" elements="1"/>
|
<field name="crc" units="" type="uint32" elements="1"/>
|
||||||
<access gcs="readwrite" flight="readwrite"/>
|
<access gcs="readwrite" flight="readwrite"/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user