AP_BoardConfig: allow override of PWM count in hwdef.dat

This commit is contained in:
Andrew Tridgell 2018-04-07 11:31:15 +10:00
parent a7711ab9f7
commit 13cf72ac32

View File

@ -69,8 +69,12 @@
#elif CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS #elif CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS
# define BOARD_SAFETY_ENABLE_DEFAULT 1 # define BOARD_SAFETY_ENABLE_DEFAULT 1
#ifndef BOARD_PWM_COUNT_DEFAULT
# define BOARD_PWM_COUNT_DEFAULT 6 # define BOARD_PWM_COUNT_DEFAULT 6
#endif
#ifndef BOARD_SER1_RTSCTS_DEFAULT
# define BOARD_SER1_RTSCTS_DEFAULT 2 # define BOARD_SER1_RTSCTS_DEFAULT 2
#endif
# define BOARD_TYPE_DEFAULT PX4_BOARD_AUTO # define BOARD_TYPE_DEFAULT PX4_BOARD_AUTO
#endif #endif