Config cleanups (#2347)

* Remove duplication

* Ports: STM32F7: we want PAL_USE_CALLBACKS for F7 too
This commit is contained in:
Andrey G 2021-02-14 02:45:33 +03:00 committed by GitHub
parent 7562de4f10
commit f1785fee11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View File

@ -113,10 +113,6 @@
#define HAL_TRIGGER_USE_PAL FALSE #define HAL_TRIGGER_USE_PAL FALSE
#endif /* HAL_TRIGGER_USE_PAL */ #endif /* HAL_TRIGGER_USE_PAL */
#ifndef HAL_TRIGGER_USE_PAL
#define HAL_TRIGGER_USE_PAL FALSE
#endif /* HAL_TRIGGER_USE_PAL */
#ifndef HAL_TRIGGER_USE_ADC #ifndef HAL_TRIGGER_USE_ADC
#define HAL_TRIGGER_USE_ADC FALSE #define HAL_TRIGGER_USE_ADC FALSE
#endif /* HAL_TRIGGER_USE_ADC */ #endif /* HAL_TRIGGER_USE_ADC */

View File

@ -47,6 +47,15 @@
#define HAL_USE_PAL TRUE #define HAL_USE_PAL TRUE
#endif #endif
#if !defined(PAL_USE_WAIT) || defined(__DOXYGEN__)
#define PAL_USE_WAIT FALSE
#endif
// rusEfi uses callback for PAL input capture
#if !defined(PAL_USE_CALLBACKS) || defined(__DOXYGEN__)
#define PAL_USE_CALLBACKS TRUE
#endif
/** /**
* @brief Enables the ADC subsystem. * @brief Enables the ADC subsystem.
*/ */