mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
arch/arm/src/stm32/stm32_adc.c: Corect an error found in build testing. Recent commit to add STM32F1 calibration was not properly conditioned. Caused compilation errors on all STM32 F2 family members.
This commit is contained in:
@@ -45,6 +45,10 @@
|
||||
|
||||
#include "chip.h"
|
||||
|
||||
/****************************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************************************/
|
||||
|
||||
/* This is implementation for STM32 ADC IPv1 - F1, F2, F37x, F4, F7.
|
||||
* NOTE: L1 use modified IPv1 (look at chip/stm32_adc_v1l1.h).
|
||||
*/
|
||||
@@ -76,10 +80,6 @@
|
||||
# undef HAVE_ADC_VBAT
|
||||
#endif
|
||||
|
||||
/****************************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************************************/
|
||||
|
||||
/* For the basic ADC IPv1, the ADCx_BASE definitions are defined in chip/stm32xxx_memorymap.h files */
|
||||
|
||||
#ifndef HAVE_BASIC_ADC
|
||||
|
||||
@@ -2405,7 +2405,7 @@ static void adc_calibrate(FAR struct stm32_dev_s *priv)
|
||||
UNUSED(priv);
|
||||
#endif
|
||||
}
|
||||
#elif defined(HAVE_IP_ADC_V1)
|
||||
#elif defined(HAVE_IP_ADC_V1) && defined(HAVE_BASIC_ADC)
|
||||
static void adc_calibrate(FAR struct stm32_dev_s *priv)
|
||||
{
|
||||
/* Power on the ADC */
|
||||
|
||||
Reference in New Issue
Block a user