AP_HAL: added generic ChibiOS board type

This commit is contained in:
Andrew Tridgell 2018-03-02 11:45:39 +11:00
parent 455c0e25e1
commit 64bda71da5
2 changed files with 5 additions and 0 deletions

View File

@ -71,6 +71,7 @@
#define HAL_BOARD_SUBTYPE_CHIBIOS_MINIPIX 5006
#define HAL_BOARD_SUBTYPE_CHIBIOS_CRAZYFLIE2 5007
#define HAL_BOARD_SUBTYPE_CHIBIOS_OMNIBUSF7V2 5008
#define HAL_BOARD_SUBTYPE_CHIBIOS_GENERIC 5009
/* InertialSensor driver types */
#define HAL_INS_NONE 0

View File

@ -71,3 +71,7 @@
#define HAL_COMPASS_LIS3MDL_NAME "lis3mdl"
#ifndef CONFIG_HAL_BOARD_SUBTYPE
// allow for generic boards
#define CONFIG_HAL_BOARD_SUBTYPE HAL_BOARD_SUBTYPE_CHIBIOS_GENERIC
#endif