mirror of https://github.com/ArduPilot/ardupilot
Tools: allow CPUInfo to build on HAL_Linux
This commit is contained in:
parent
b4d8e1133c
commit
e58b2fc51a
|
@ -27,8 +27,6 @@ void loop();
|
||||||
|
|
||||||
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
const AP_HAL::HAL& hal = AP_HAL::get_HAL();
|
||||||
|
|
||||||
#if CONFIG_HAL_BOARD != HAL_BOARD_LINUX
|
|
||||||
|
|
||||||
// On H750 we want to measure external flash to ram performance
|
// On H750 we want to measure external flash to ram performance
|
||||||
#if defined(EXT_FLASH_SIZE_MB) && EXT_FLASH_SIZE_MB>0 && defined(STM32H7)
|
#if defined(EXT_FLASH_SIZE_MB) && EXT_FLASH_SIZE_MB>0 && defined(STM32H7)
|
||||||
#include "ch.h"
|
#include "ch.h"
|
||||||
|
@ -257,9 +255,4 @@ void loop()
|
||||||
hal.scheduler->delay(3000);
|
hal.scheduler->delay(3000);
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
|
||||||
void loop() {}
|
|
||||||
void setup() {}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
AP_HAL_MAIN();
|
AP_HAL_MAIN();
|
||||||
|
|
Loading…
Reference in New Issue