ardupilot/libraries/AP_HAL_Linux/Storage.h

19 lines
401 B
C

#ifndef __AP_HAL_LINUX_STORAGE_H__
#define __AP_HAL_LINUX_STORAGE_H__
#if CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_ERLE || CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_PXF
#define LINUX_STORAGE_USE_FRAM 1
#else
#define LINUX_STORAGE_USE_FRAM 0
#endif
#if LINUX_STORAGE_USE_FRAM
#include "Storage_FRAM.h"
#else
#include "Storage_FS.h"
#endif
#endif // __AP_HAL_LINUX_STORAGE_H__