arch/arm/src/stm32/stm32_adc.c: The attached patch fixes a compilation error when verbose analog debugging is enabled for the stm32 adc: not all stm32s have an SQR4 register.
This commit is contained in:
parent
d518cbb170
commit
0ceac9a969
@ -3292,16 +3292,20 @@ static void adc_dumpregs(FAR struct stm32_dev_s *priv)
|
||||
adc_getreg(priv, STM32_ADC_CR2_OFFSET));
|
||||
#endif
|
||||
|
||||
ainfo("SQR1: 0x%08x SQR2: 0x%08x SQR3: 0x%08x SQR4: 0x%08x\n",
|
||||
ainfo("SQR1: 0x%08x SQR2: 0x%08x SQR3: 0x%08x\n",
|
||||
adc_getreg(priv, STM32_ADC_SQR1_OFFSET),
|
||||
adc_getreg(priv, STM32_ADC_SQR2_OFFSET),
|
||||
adc_getreg(priv, STM32_ADC_SQR3_OFFSET),
|
||||
adc_getreg(priv, STM32_ADC_SQR4_OFFSET));
|
||||
adc_getreg(priv, STM32_ADC_SQR3_OFFSET));
|
||||
|
||||
ainfo("SMPR1: 0x%08x SMPR2: 0x%08x\n",
|
||||
adc_getreg(priv, STM32_ADC_SMPR1_OFFSET),
|
||||
adc_getreg(priv, STM32_ADC_SMPR2_OFFSET));
|
||||
|
||||
#if defined(STM32_ADC_SQR4_OFFSET)
|
||||
ainfo("SQR4: 0x%08x\n",
|
||||
adc_getreg(priv, STM32_ADC_SQR5_OFFSET));
|
||||
#endif
|
||||
|
||||
#if defined(STM32_ADC_SQR5_OFFSET)
|
||||
ainfo("SQR5: 0x%08x\n",
|
||||
adc_getreg(priv, STM32_ADC_SQR4_OFFSET));
|
||||
|
Loading…
Reference in New Issue
Block a user