HAL_ChibiOS: disable flash methods where there is no Flash API support

This commit is contained in:
Siddharth Purohit 2018-08-29 18:46:17 +05:30 committed by Andrew Tridgell
parent 847aca3c30
commit 1a20fb4ea9
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

@ -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
};