mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-28 10:46:33 +08:00
uavcannode_gps_demo:Add UAVCAN bootloader AppDescriptor
This commit is contained in:
committed by
Lorenz Meier
parent
dd3c3098f2
commit
500fe5c98c
@@ -78,5 +78,6 @@ px4_add_module(
|
||||
DEPENDS
|
||||
git_libcanard
|
||||
git_public_regulated_data_types
|
||||
drivers_bootloaders
|
||||
version
|
||||
)
|
||||
|
||||
@@ -65,6 +65,9 @@
|
||||
|
||||
#include "libcancl/pnp.h"
|
||||
#include "libcancl/registerinterface.h"
|
||||
|
||||
#include "boot_app_shared.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
@@ -76,6 +79,23 @@
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
/*
|
||||
* This is the AppImageDescriptor used
|
||||
* by the make_can_boot_descriptor.py tool to set
|
||||
* the application image's descriptor so that the
|
||||
* uavcan bootloader has the ability to validate the
|
||||
* image crc, size etc of this application
|
||||
*/
|
||||
boot_app_shared_section app_descriptor_t AppDescriptor = {
|
||||
.signature = APP_DESCRIPTOR_SIGNATURE,
|
||||
.image_crc = 0,
|
||||
.image_size = 0,
|
||||
.git_hash = 0,
|
||||
.major_version = APP_VERSION_MAJOR,
|
||||
.minor_version = APP_VERSION_MINOR,
|
||||
.board_id = HW_VERSION_MAJOR << 8 | HW_VERSION_MINOR,
|
||||
.reserved = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff }
|
||||
};
|
||||
|
||||
O1HeapInstance *my_allocator;
|
||||
static uint8_t uavcan_heap[O1_HEAP_SIZE]
|
||||
|
||||
Reference in New Issue
Block a user