AP_HAL: support MindPX-v2

This commit is contained in:
Andrew Tridgell 2018-01-12 08:26:40 +11:00
parent 36a141f9f1
commit 8699b6233a
2 changed files with 15 additions and 0 deletions

View File

@ -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

View File

@ -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