mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
HAL_ChibiOS: don't build flash.c if not needed
This commit is contained in:
parent
cdbbceb6b6
commit
d1e4185817
@ -57,6 +57,8 @@
|
|||||||
this driver has been tested with STM32F427 and STM32F412
|
this driver has been tested with STM32F427 and STM32F412
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef HAL_USE_EMPTY_STORAGE
|
||||||
|
|
||||||
#ifndef BOARD_FLASH_SIZE
|
#ifndef BOARD_FLASH_SIZE
|
||||||
#error "You must define BOARD_FLASH_SIZE in kbyte"
|
#error "You must define BOARD_FLASH_SIZE in kbyte"
|
||||||
#endif
|
#endif
|
||||||
@ -322,3 +324,5 @@ failed:
|
|||||||
#endif
|
#endif
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // HAL_USE_EMPTY_STORAGE
|
||||||
|
Loading…
Reference in New Issue
Block a user