Browse Source

HAL_ChibiOS: don't build flash.c if not needed

master
Andrew Tridgell 7 years ago
parent
commit
d1e4185817
  1. 4
      libraries/AP_HAL_ChibiOS/hwdef/common/flash.c

4
libraries/AP_HAL_ChibiOS/hwdef/common/flash.c

@ -57,6 +57,8 @@ @@ -57,6 +57,8 @@
this driver has been tested with STM32F427 and STM32F412
*/
#ifndef HAL_USE_EMPTY_STORAGE
#ifndef BOARD_FLASH_SIZE
#error "You must define BOARD_FLASH_SIZE in kbyte"
#endif
@ -322,3 +324,5 @@ failed: @@ -322,3 +324,5 @@ failed:
#endif
return -1;
}
#endif // HAL_USE_EMPTY_STORAGE

Loading…
Cancel
Save