mirror of
https://github.com/ArduPilot/ardupilot.git
synced 2026-11-09 16:41:21 +08:00
Tools: make CPUInfo test fairer, add data for external flash
fix CPUInfo on linux make cache disabling optional in CPUInfo
This commit is contained in:
1 parent
55db600c10
commit
f6c07df162
6 files changed
+89
-61
No files matched your search
@@ -32,7 +32,7 @@
|
||||
#include "bl_protocol.h"
|
||||
#include "can.h"
|
||||
#include <stdio.h>
|
||||
#if EXTERNAL_PROG_FLASH_MB
|
||||
#if EXT_FLASH_SIZE_MB
|
||||
#include <AP_FlashIface/AP_FlashIface_JEDEC.h>
|
||||
#endif
|
||||
|
||||
@@ -44,7 +44,7 @@ struct boardinfo board_info = {
|
||||
.board_type = APJ_BOARD_ID,
|
||||
.board_rev = 0,
|
||||
.fw_size = (BOARD_FLASH_SIZE - (FLASH_BOOTLOADER_LOAD_KB + FLASH_RESERVE_END_KB + APP_START_OFFSET_KB))*1024,
|
||||
.extf_size = (EXTERNAL_PROG_FLASH_MB * 1024 * 1024)
|
||||
.extf_size = (EXT_FLASH_SIZE_MB * 1024 * 1024)
|
||||
};
|
||||
|
||||
#ifndef HAL_BOOTLOADER_TIMEOUT
|
||||
@@ -55,7 +55,7 @@ struct boardinfo board_info = {
|
||||
#define HAL_STAY_IN_BOOTLOADER_VALUE 0
|
||||
#endif
|
||||
|
||||
#if EXTERNAL_PROG_FLASH_MB
|
||||
#if EXT_FLASH_SIZE_MB
|
||||
AP_FlashIface_JEDEC ext_flash;
|
||||
#endif
|
||||
|
||||
@@ -151,7 +151,7 @@ int main(void)
|
||||
flash_init();
|
||||
|
||||
|
||||
#if EXTERNAL_PROG_FLASH_MB
|
||||
#if EXT_FLASH_SIZE_MB
|
||||
while (!ext_flash.init()) {
|
||||
// keep trying until we get it working
|
||||
// there's no future without it
|
||||
|
||||
Reference in new issue
Block a user