#pragma once #define USE_FLASH_STORAGE 1 #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<