AP_HAL: added new VRBRAIN boards and new subtypes

This commit is contained in:
Emile Castelnuovo 2014-12-30 11:29:36 +01:00 committed by Andrew Tridgell
parent de8a0ebc08
commit a0673b56f9

View File

@ -45,6 +45,15 @@
#define HAL_BOARD_SUBTYPE_AVR_APM1 3000 #define HAL_BOARD_SUBTYPE_AVR_APM1 3000
#define HAL_BOARD_SUBTYPE_AVR_APM2 3001 #define HAL_BOARD_SUBTYPE_AVR_APM2 3001
/**
HAL VRBRAIN sub-types, starting at 4000
*/
#define HAL_BOARD_SUBTYPE_VRBRAIN_V45 4000
#define HAL_BOARD_SUBTYPE_VRBRAIN_V51 4001
#define HAL_BOARD_SUBTYPE_VRBRAIN_V52 4002
#define HAL_BOARD_SUBTYPE_VRUBRAIN_V51 4003
#define HAL_BOARD_SUBTYPE_VRUBRAIN_V52 4004
// InertialSensor driver types // InertialSensor driver types
#define HAL_INS_OILPAN 1 #define HAL_INS_OILPAN 1
#define HAL_INS_MPU6000 2 #define HAL_INS_MPU6000 2
@ -243,9 +252,15 @@
#elif defined(CONFIG_ARCH_BOARD_VRBRAIN_V51) #elif defined(CONFIG_ARCH_BOARD_VRBRAIN_V51)
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_VRBRAIN_V51 #define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_VRBRAIN_V51
#define HAL_STORAGE_SIZE 16384 #define HAL_STORAGE_SIZE 16384
#elif defined(CONFIG_ARCH_BOARD_VRBRAIN_V52)
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_VRBRAIN_V52
#define HAL_STORAGE_SIZE 16384
#elif defined(CONFIG_ARCH_BOARD_VRUBRAIN_V51) #elif defined(CONFIG_ARCH_BOARD_VRUBRAIN_V51)
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_VRUBRAIN_V51 #define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_VRUBRAIN_V51
#define HAL_STORAGE_SIZE 8192 #define HAL_STORAGE_SIZE 8192
#elif defined(CONFIG_ARCH_BOARD_VRUBRAIN_V52)
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_VRUBRAIN_V52
#define HAL_STORAGE_SIZE 8192
#else #else
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_NONE #define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_NONE
#define HAL_STORAGE_SIZE 8192 #define HAL_STORAGE_SIZE 8192