Skip to content

Commit

Permalink
Update analog.cpp
Browse files Browse the repository at this point in the history
modify for F1/F2/F4/F7/L1

Signed-off-by: Candas1 <[email protected]>
  • Loading branch information
Candas1 authored Feb 17, 2024
1 parent cacc328 commit 0a274de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/SrcWrapper/src/stm32/analog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1006,8 +1006,8 @@ uint16_t adc_read_value(PinName pin, uint32_t resolution)
return 0;
}
} else {
#if defined(STM32F1xx) || defined(STM32F2xx) || defined(STM32F3xx) || defined(STM32F4xx)
LL_ADC_REG_StartConversionSWstart(AdcHandle.Instance);
#if defined(STM32F1xx) || defined(STM32F2xx) || defined(STM32F4xx) || defined(STM32F7xx) || defined(STM32L1xx)
LL_ADC_REG_StartConversionSWStart(AdcHandle.Instance);
#else
LL_ADC_REG_StartConversion(AdcHandle.Instance);
#endif
Expand Down

0 comments on commit 0a274de

Please sign in to comment.