AP_HAL: setup for building ucavcan on FMUv3 but not FMUv2

save a lot of flash space on FMUv2
This commit is contained in:
Andrew Tridgell 2016-12-10 18:01:49 +11:00
parent bc304a21a2
commit 29bc07f410
2 changed files with 6 additions and 0 deletions

View File

@ -169,3 +169,7 @@
#define HAL_COMPASS_HMC5843_I2C_ADDR 0x1E #define HAL_COMPASS_HMC5843_I2C_ADDR 0x1E
#endif #endif
#ifndef HAL_WITH_UAVCAN
#define HAL_WITH_UAVCAN 0
#endif

View File

@ -24,9 +24,11 @@
#define HAL_STORAGE_SIZE 16384 #define HAL_STORAGE_SIZE 16384
#define HAL_HAVE_IMU_HEATER 1 // for Pixhawk2 #define HAL_HAVE_IMU_HEATER 1 // for Pixhawk2
#define HAL_IMU_TEMP_DEFAULT -1 // disabled #define HAL_IMU_TEMP_DEFAULT -1 // disabled
#define HAL_WITH_UAVCAN 1
#elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4) #elif defined(CONFIG_ARCH_BOARD_PX4FMU_V4)
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V4 #define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_PX4_V4
#define HAL_STORAGE_SIZE 16384 #define HAL_STORAGE_SIZE 16384
#define HAL_WITH_UAVCAN 1
#else #else
#error "Unknown PX4 board type" #error "Unknown PX4 board type"
#endif #endif