AP_ESC_Telem: add and use an AP_ESC_Telem_config.h

This commit is contained in:
Peter Barker 2023-03-01 17:12:36 +11:00 committed by Peter Barker
parent 62119d5bbe
commit b931617650
2 changed files with 9 additions and 6 deletions

View File

@ -1,11 +1,6 @@
#pragma once
#include <AP_HAL/AP_HAL.h>
#include <SRV_Channel/SRV_Channel_config.h>
#ifndef HAL_WITH_ESC_TELEM
#define HAL_WITH_ESC_TELEM ((NUM_SERVO_CHANNELS > 0) && ((HAL_SUPPORT_RCOUT_SERIAL || HAL_MAX_CAN_PROTOCOL_DRIVERS) && !defined(HAL_BUILD_AP_PERIPH)))
#endif
#include "AP_ESC_Telem_config.h"
#if HAL_WITH_ESC_TELEM

View File

@ -0,0 +1,8 @@
#pragma once
#include <AP_HAL/AP_HAL_Boards.h>
#include <SRV_Channel/SRV_Channel_config.h>
#ifndef HAL_WITH_ESC_TELEM
#define HAL_WITH_ESC_TELEM ((NUM_SERVO_CHANNELS > 0) && ((HAL_SUPPORT_RCOUT_SERIAL || HAL_MAX_CAN_PROTOCOL_DRIVERS) && !defined(HAL_BUILD_AP_PERIPH)))
#endif