Browse Source

AP_Periph: use AP_CheckFirmware

# Conflicts:
#	Tools/AP_Periph/wscript
release-4.2.3
Andrew Tridgell 3 years ago committed by Randy Mackay
parent
commit
5df682d407
  1. 16
      Tools/AP_Periph/AP_Periph.cpp
  2. 1
      Tools/AP_Periph/AP_Periph.h
  3. 1
      Tools/AP_Periph/can.cpp
  4. 1
      Tools/AP_Periph/wscript

16
Tools/AP_Periph/AP_Periph.cpp

@ -57,15 +57,6 @@ void loop(void) @@ -57,15 +57,6 @@ void loop(void)
static uint32_t start_ms;
/*
declare constant app_descriptor in flash
*/
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
const struct app_descriptor app_descriptor __attribute__((section(".app_descriptor")));
#else
const struct app_descriptor app_descriptor;
#endif
AP_Periph_FW::AP_Periph_FW()
#if HAL_LOGGING_ENABLED
: logger(g.log_bitmask)
@ -131,12 +122,7 @@ void AP_Periph_FW::init() @@ -131,12 +122,7 @@ void AP_Periph_FW::init()
logger.Init(log_structure, ARRAY_SIZE(log_structure));
#endif
printf("Booting %08x:%08x %u/%u len=%u 0x%08x\n",
app_descriptor.image_crc1,
app_descriptor.image_crc2,
app_descriptor.version_major, app_descriptor.version_minor,
app_descriptor.image_size,
app_descriptor.git_hash);
check_firmware_print();
if (hal.util->was_watchdog_reset()) {
printf("Reboot after watchdog reset\n");

1
Tools/AP_Periph/AP_Periph.h

@ -14,6 +14,7 @@ @@ -14,6 +14,7 @@
#include <AP_MSP/AP_MSP.h>
#include <AP_MSP/msp.h>
#include "../AP_Bootloader/app_comms.h"
#include <AP_CheckFirmware/AP_CheckFirmware.h>
#include "hwing_esc.h"
#include <AP_CANManager/AP_CANManager.h>
#include <AP_Scripting/AP_Scripting.h>

1
Tools/AP_Periph/can.cpp

@ -31,7 +31,6 @@ @@ -31,7 +31,6 @@
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
#include <hal.h>
#include "../AP_Bootloader/app_comms.h"
#include <AP_HAL_ChibiOS/CANIface.h>
#include <AP_HAL_ChibiOS/hwdef/common/stm32_util.h>
#include <AP_HAL_ChibiOS/hwdef/common/watchdog.h>

1
Tools/AP_Periph/wscript

@ -62,6 +62,7 @@ def build(bld): @@ -62,6 +62,7 @@ def build(bld):
'AC_PID',
'AP_BLHeli',
'AP_ESC_Telem',
'AP_CheckFirmware',
]
bld.ap_stlib(
name= 'AP_Periph_libs',

Loading…
Cancel
Save