mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 11:38:56 +08:00
canbootloder:Make support for ALT Bootloader an Option
This commit is contained in:
committed by
Daniel Agar
parent
174f2624df
commit
5ea56af5f0
@@ -34,6 +34,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#if defined(SUPPORT_ALT_CAN_BOOTLOADER)
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
@@ -46,8 +47,6 @@
|
||||
|
||||
#include <lib/systemlib/crc.h>
|
||||
|
||||
extern void *_sapp_bl_shared;
|
||||
|
||||
/****************************************************************************
|
||||
* Name: bootloader_alt_app_shared_read
|
||||
*
|
||||
@@ -142,3 +141,4 @@ __EXPORT void bootloader_alt_app_shared_invalidate(void)
|
||||
bootloader_alt_app_shared->signature = 0;
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <nuttx/compiler.h>
|
||||
|
||||
#if defined(SUPPORT_ALT_CAN_BOOTLOADER)
|
||||
__BEGIN_DECLS
|
||||
|
||||
/****************************************************************************
|
||||
@@ -73,6 +73,7 @@ typedef begin_packed_struct struct bootloader_alt_app_shared_t {
|
||||
} end_packed_struct bootloader_alt_app_shared_t;
|
||||
#pragma GCC diagnostic pop
|
||||
|
||||
extern bootloader_alt_app_shared_t _sapp_bl_shared;
|
||||
|
||||
/****************************************************************************
|
||||
* Name: bootloader_alt_app_shared_read
|
||||
@@ -144,3 +145,4 @@ void bootloader_alt_app_shared_write(bootloader_alt_app_shared_t *alt_shared);
|
||||
void bootloader_alt_app_shared_invalidate(void);
|
||||
|
||||
__END_DECLS
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user