mirror of https://github.com/ArduPilot/ardupilot
AP_HAL: avoid including hal.h in generic code
This commit is contained in:
parent
25cc8203d8
commit
b248fdfcbb
|
@ -262,7 +262,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef HAL_WITH_MCU_MONITORING
|
||||
#define HAL_WITH_MCU_MONITORING defined(STM32H7) && STM32_HAS_ADC3
|
||||
#define HAL_WITH_MCU_MONITORING 0
|
||||
#endif
|
||||
|
||||
#ifndef HAL_HNF_MAX_FILTERS
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
#pragma once
|
||||
|
||||
#include <hwdef.h>
|
||||
#include <hal.h>
|
||||
|
||||
#define HAL_BOARD_NAME "ChibiOS"
|
||||
|
||||
|
@ -113,7 +112,7 @@
|
|||
#endif
|
||||
|
||||
#ifndef HAL_DSHOT_ALARM
|
||||
#if !defined(HAL_BUILD_AP_PERIPH) && !defined(HAL_BOOTLOADER_BUILD) && HAL_USE_PWM == TRUE
|
||||
#if !defined(HAL_BUILD_AP_PERIPH) && !defined(HAL_BOOTLOADER_BUILD) && HAL_PWM_COUNT > 0
|
||||
#define HAL_DSHOT_ALARM 1
|
||||
#else
|
||||
#define HAL_DSHOT_ALARM 0
|
||||
|
|
Loading…
Reference in New Issue