Skip to content

Commit

Permalink
adc: add internal channels
Browse files Browse the repository at this point in the history
  • Loading branch information
bkleiner committed Jun 28, 2024
1 parent a24ebbb commit 8c285f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/driver/stm32/adc.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,11 @@ static void adc_init_dev(adc_devices_t index) {
LL_ADC_Init(dev->adc, &adc_init);

if (adc_pins[ADC_CHAN_VREF].dev == index) {
LL_ADC_SetCommonPathInternalCh(dev->common, LL_ADC_PATH_INTERNAL_VREFINT);
LL_ADC_SetCommonPathInternalChAdd(dev->common, LL_ADC_PATH_INTERNAL_VREFINT);
}

if (adc_pins[ADC_CHAN_TEMP].dev == index) {
LL_ADC_SetCommonPathInternalCh(dev->common, LL_ADC_PATH_INTERNAL_TEMPSENSOR);
LL_ADC_SetCommonPathInternalChAdd(dev->common, LL_ADC_PATH_INTERNAL_TEMPSENSOR);
}

#if defined(STM32H7) || defined(STM32G4)
Expand Down

0 comments on commit 8c285f7

Please sign in to comment.