AP_HAL_ChibiOS: use new AP_PERIPH_HOBBYWING_ESC define

This commit is contained in:
Shiv Tyagi 2025-02-20 00:21:37 +05:30 committed by Peter Barker
parent 2b6bbedce6
commit 0197220bc5
4 changed files with 9 additions and 3 deletions

View File

@ -4,7 +4,7 @@ define HAL_USE_ADC FALSE
define STM32_ADC_USE_ADC1 FALSE
define HAL_DISABLE_ADC_DRIVER TRUE
define HAL_PERIPH_ENABLE_HWESC
define AP_PERIPH_HOBBYWING_ESC_ENABLED 1
define HAL_PERIPH_HWESC_SERIAL_PORT 2
# bootloader embedding / bootloader flashing not available

View File

@ -1,4 +1,4 @@
include ../f103-periph/hwdef.inc
define HAL_PERIPH_ENABLE_HWESC
define AP_PERIPH_HOBBYWING_ESC_ENABLED 1

View File

@ -1,4 +1,4 @@
include ../f303-periph/hwdef.inc
define HAL_PERIPH_ENABLE_HWESC
define AP_PERIPH_HOBBYWING_ESC_ENABLED 1

View File

@ -208,6 +208,9 @@
#ifdef HAL_PERIPH_ENABLE_AIRSPEED
#error "Change 'define HAL_PERIPH_ENABLE_AIRSPEED' to 'define AP_PERIPH_AIRSPEED_ENABLED 1'"
#endif
#ifdef HAL_PERIPH_ENABLE_HWESC
#error "Change 'define HAL_PERIPH_ENABLE_HWESC' to 'define AP_PERIPH_HOBBYWING_ESC_ENABLED 1'"
#endif
#ifdef HAL_PERIPH_ENABLE_NETWORKING
#error "Change 'define HAL_PERIPH_ENABLE_NETWORKING' to 'define AP_PERIPH_NETWORKING_ENABLED 1'"
#endif
@ -263,6 +266,9 @@
#ifndef AP_PERIPH_AIRSPEED_ENABLED
#define AP_PERIPH_AIRSPEED_ENABLED 0
#endif
#ifndef AP_PERIPH_HOBBYWING_ESC_ENABLED
#define AP_PERIPH_HOBBYWING_ESC_ENABLED 0
#endif
#ifndef AP_PERIPH_NETWORKING_ENABLED
#define AP_PERIPH_NETWORKING_ENABLED 0
#endif