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
|
#endif
|
||||||
|
|
||||||
#ifndef HAL_WITH_MCU_MONITORING
|
#ifndef HAL_WITH_MCU_MONITORING
|
||||||
#define HAL_WITH_MCU_MONITORING defined(STM32H7) && STM32_HAS_ADC3
|
#define HAL_WITH_MCU_MONITORING 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAL_HNF_MAX_FILTERS
|
#ifndef HAL_HNF_MAX_FILTERS
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <hwdef.h>
|
#include <hwdef.h>
|
||||||
#include <hal.h>
|
|
||||||
|
|
||||||
#define HAL_BOARD_NAME "ChibiOS"
|
#define HAL_BOARD_NAME "ChibiOS"
|
||||||
|
|
||||||
|
@ -113,7 +112,7 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef HAL_DSHOT_ALARM
|
#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
|
#define HAL_DSHOT_ALARM 1
|
||||||
#else
|
#else
|
||||||
#define HAL_DSHOT_ALARM 0
|
#define HAL_DSHOT_ALARM 0
|
||||||
|
|
Loading…
Reference in New Issue