mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
Cosmetic changes from review of last PR
This commit is contained in:
@@ -1667,6 +1667,7 @@ static void adc_dmaconvcallback(DMA_HANDLE handle, uint8_t isr, FAR void *arg)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Restart DMA for the next conversion series */
|
/* Restart DMA for the next conversion series */
|
||||||
|
|
||||||
adc_modifyreg(priv, STM32_ADC_DMAREG_OFFSET, ADC_DMAREG_DMA, 0);
|
adc_modifyreg(priv, STM32_ADC_DMAREG_OFFSET, ADC_DMAREG_DMA, 0);
|
||||||
|
|||||||
@@ -1479,6 +1479,7 @@ static uint32_t adc_sqrbits(FAR struct stm32_dev_s *priv, int first, int last,
|
|||||||
static bool adc_internal(FAR struct stm32_dev_s * priv)
|
static bool adc_internal(FAR struct stm32_dev_s * priv)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (priv->intf == 1)
|
if (priv->intf == 1)
|
||||||
{
|
{
|
||||||
for (i = 0; i < priv->nchannels; i++)
|
for (i = 0; i < priv->nchannels; i++)
|
||||||
@@ -1490,6 +1491,7 @@ static bool adc_internal(FAR struct stm32_dev_s * priv)
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user