From add7615ed91ba19dc3ced67f0f139c07c6ac55f1 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 14 Mar 2020 07:40:20 +1100 Subject: [PATCH] AP_HAL: removed unnecessary subtypes --- libraries/AP_HAL/AP_HAL_Boards.h | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/libraries/AP_HAL/AP_HAL_Boards.h b/libraries/AP_HAL/AP_HAL_Boards.h index 934853dbfb..b8c2286db6 100644 --- a/libraries/AP_HAL/AP_HAL_Boards.h +++ b/libraries/AP_HAL/AP_HAL_Boards.h @@ -40,23 +40,17 @@ #define HAL_BOARD_SUBTYPE_LINUX_POCKET 1022 #define HAL_BOARD_SUBTYPE_LINUX_NAVIGATOR 1023 -/* HAL CHIBIOS sub-types, starting at 5000 */ +/* HAL CHIBIOS sub-types, starting at 5000 + + NOTE!! Do not add more subtypes unless they are really needed. Most + boards do not need a subtype defined. It is only needed if we need + to use #ifdef'd code to change behaviour +*/ #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 -#define HAL_BOARD_SUBTYPE_CHIBIOS_SPARKY2 5004 -#define HAL_BOARD_SUBTYPE_CHIBIOS_REVOMINI 5005 -#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 -#define HAL_BOARD_SUBTYPE_CHIBIOS_F4BY 5010 -#define HAL_BOARD_SUBTYPE_CHIBIOS_OMNIBUSF4PRO 5011 -#define HAL_BOARD_SUBTYPE_CHIBIOS_AIRBOTF4 5012 #define HAL_BOARD_SUBTYPE_CHIBIOS_FMUV5 5013 -#define HAL_BOARD_SUBTYPE_CHIBIOS_MATEKF405WING 5014 -#define HAL_BOARD_SUBTYPE_CHIBIOS_FMUV4PRO 5015 #define HAL_BOARD_SUBTYPE_CHIBIOS_VRBRAIN_V51 5016 #define HAL_BOARD_SUBTYPE_CHIBIOS_VRBRAIN_V52 5017 #define HAL_BOARD_SUBTYPE_CHIBIOS_VRUBRAIN_V51 5018