#pragma once /* we can optionally use flash for storage instead of FRAM. That allows ArduPilot to run on a wider range of boards and reduces board cost */ #ifndef USE_FLASH_STORAGE #define USE_FLASH_STORAGE 0 #endif #include #include "AP_HAL_PX4_Namespace.h" #include #include #include #define PX4_STORAGE_SIZE HAL_STORAGE_SIZE #if USE_FLASH_STORAGE // when using flash storage we use a small line size to make storage // compact and minimise the number of erase cycles needed #define PX4_STORAGE_LINE_SHIFT 3 #else #define PX4_STORAGE_LINE_SHIFT 9 #endif #define PX4_STORAGE_LINE_SIZE (1<