canbootloder:Make support for ALT Bootloader an Option

This commit is contained in:
David Sidrane
2021-02-17 22:47:35 -05:00
committed by Daniel Agar
parent 174f2624df
commit 5ea56af5f0
6 changed files with 23 additions and 10 deletions
@@ -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