mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-28 10:43:58 -04:00
AP_HAL_ChibiOS: use new AP_PERIPH_HOBBYWING_ESC define
This commit is contained in:
parent
2b6bbedce6
commit
0197220bc5
@ -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
|
||||
|
@ -1,4 +1,4 @@
|
||||
include ../f103-periph/hwdef.inc
|
||||
|
||||
|
||||
define HAL_PERIPH_ENABLE_HWESC
|
||||
define AP_PERIPH_HOBBYWING_ESC_ENABLED 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
include ../f303-periph/hwdef.inc
|
||||
|
||||
|
||||
define HAL_PERIPH_ENABLE_HWESC
|
||||
define AP_PERIPH_HOBBYWING_ESC_ENABLED 1
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user