Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/libraries/AP_Filesystem/AP_Filesystem_config.h
Views: 1798
#pragma once12#include <AP_HAL/AP_HAL_Boards.h>34// backends:56#ifndef AP_FILESYSTEM_ESP32_ENABLED7#define AP_FILESYSTEM_ESP32_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_ESP32)8#endif910#ifndef AP_FILESYSTEM_FATFS_ENABLED11#define AP_FILESYSTEM_FATFS_ENABLED HAL_OS_FATFS_IO12#endif1314#ifndef AP_FILESYSTEM_PARAM_ENABLED15#define AP_FILESYSTEM_PARAM_ENABLED 116#endif1718#ifndef AP_FILESYSTEM_POSIX_ENABLED19#define AP_FILESYSTEM_POSIX_ENABLED (CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX || CONFIG_HAL_BOARD == HAL_BOARD_QURT)20#endif2122#ifndef AP_FILESYSTEM_ROMFS_ENABLED23#define AP_FILESYSTEM_ROMFS_ENABLED defined(HAL_HAVE_AP_ROMFS_EMBEDDED_H)24#endif2526#ifndef AP_FILESYSTEM_SYS_ENABLED27#define AP_FILESYSTEM_SYS_ENABLED 128#endif2930#ifndef AP_FILESYSTEM_POSIX_MAP_FILENAME_ALLOC31// this requires AP_FILESYSTEM_POSIX_MAP_FILENAME_BASEDIR32#define AP_FILESYSTEM_POSIX_MAP_FILENAME_ALLOC 033#endif3435// AP_FILESYSTEM_FILE_WRITING_ENABLED is true if you could expect to36// be able to open and write a non-virtual file. Notably this37// excludes virtual files like SYSFS, and the magic param/mission38// upload targets, and also excludes ROMFS (where you can read but not39// write!)40#ifndef AP_FILESYSTEM_FILE_WRITING_ENABLED41#define AP_FILESYSTEM_FILE_WRITING_ENABLED (AP_FILESYSTEM_ESP32_ENABLED || AP_FILESYSTEM_FATFS_ENABLED || AP_FILESYSTEM_POSIX_ENABLED)42#endif4344// AP_FILESYSTEM_FILE_READING_ENABLED is true if you could expect to45// be able to open and read a non-virtual file. Notably this excludes46// virtual files like SYSFS, and the magic param/mission upload targets.47#ifndef AP_FILESYSTEM_FILE_READING_ENABLED48#define AP_FILESYSTEM_FILE_READING_ENABLED (AP_FILESYSTEM_FILE_WRITING_ENABLED || AP_FILESYSTEM_ROMFS_ENABLED || AP_FILESYSTEM_SYS_ENABLED || AP_FILESYSTEM_PARAM_ENABLED)49#endif5051#ifndef AP_FILESYSTEM_SYS_FLASH_ENABLED52#define AP_FILESYSTEM_SYS_FLASH_ENABLED CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS53#endif5455#ifndef AP_FILESYSTEM_HAVE_DIRENT_DTYPE56#define AP_FILESYSTEM_HAVE_DIRENT_DTYPE 157#endif5859#ifndef AP_FILESYSTEM_MISSION_ENABLED60#include <AP_Mission/AP_Mission_config.h>61#define AP_FILESYSTEM_MISSION_ENABLED AP_MISSION_ENABLED62#endif636465