mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
HAL_ChibiOS: disable flash methods where there is no Flash API support
This commit is contained in:
parent
847aca3c30
commit
1a20fb4ea9
@ -182,6 +182,8 @@ uint64_t Util::get_hw_rtc() const
|
||||
return stm32_get_utc_usec();
|
||||
}
|
||||
|
||||
#ifndef HAL_NO_FLASH_SUPPORT
|
||||
|
||||
bool Util::flash_bootloader()
|
||||
{
|
||||
uint32_t fw_size;
|
||||
@ -228,6 +230,7 @@ bool Util::flash_bootloader()
|
||||
free(fw);
|
||||
return false;
|
||||
}
|
||||
#endif //#ifndef HAL_NO_FLASH_SUPPORT
|
||||
|
||||
/*
|
||||
display system identifer - board type and serial number
|
||||
|
@ -83,6 +83,7 @@ private:
|
||||
get system clock in UTC microseconds
|
||||
*/
|
||||
uint64_t get_hw_rtc() const override;
|
||||
|
||||
#ifndef HAL_NO_FLASH_SUPPORT
|
||||
bool flash_bootloader() override;
|
||||
#endif
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user