diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index cd204f5764..2e8980f0fd 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -63,6 +63,7 @@ #define HAL_BOARD_SUBTYPE_CHIBIOS_SKYVIPER_F412 5000 #define HAL_BOARD_SUBTYPE_CHIBIOS_FMUV3 5001 #define HAL_BOARD_SUBTYPE_CHIBIOS_FMUV4 5002 +#define HAL_BOARD_SUBTYPE_CHIBIOS_MINDPXV2 5003 /* InertialSensor driver types */ #define HAL_INS_MPU60XX_SPI 2 diff --git a/libraries/AP_HAL/board/chibios.h b/libraries/AP_HAL/board/chibios.h index 5da7f8638b..99b758e5e3 100644 --- a/libraries/AP_HAL/board/chibios.h +++ b/libraries/AP_HAL/board/chibios.h @@ -87,6 +87,20 @@ // enable FAT filesystem #define HAL_OS_FATFS_IO 1 +#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_CHIBIOS_MINDPXV2 +#define HAL_CHIBIOS_ARCH_MINDPXV2 1 + +#define HAL_BOARD_LOG_DIRECTORY "/APM/LOGS" + +#define STORAGE_FLASH_PAGE 22 +#define HAL_STORAGE_SIZE 16384 + +// enable RAMTROM parameter storage +#define HAL_WITH_RAMTRON 1 + +// enable FAT filesystem +#define HAL_OS_FATFS_IO 1 + #endif // CONFIG_HAL_BOARD_SUBTYPE #define HAL_STORAGE_SIZE_AVAILABLE HAL_STORAGE_SIZE