Browse Source

AP_HAL: avoid including hal.h in generic code

gps-1.3.1
Andrew Tridgell 3 years ago
parent
commit
b248fdfcbb
  1. 2
      libraries/AP_HAL/AP_HAL_Boards.h
  2. 3
      libraries/AP_HAL/board/chibios.h

2
libraries/AP_HAL/AP_HAL_Boards.h

@ -262,7 +262,7 @@ @@ -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

3
libraries/AP_HAL/board/chibios.h

@ -1,7 +1,6 @@ @@ -1,7 +1,6 @@
#pragma once
#include <hwdef.h>
#include <hal.h>
#define HAL_BOARD_NAME "ChibiOS"
@ -113,7 +112,7 @@ @@ -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…
Cancel
Save