raiden00pl commented on code in PR #16500: URL: https://github.com/apache/nuttx/pull/16500#discussion_r2140520292
########## arch/arm/src/stm32f0l0g0/Kconfig: ########## @@ -3309,6 +3313,45 @@ config STM32F0L0G0_ADC1_DMA_CFG ---help--- 0 - ADC1 DMA in One Shot Mode, 1 - ADC1 DMA in Circular Mode +config STM32F0L0G0_ADC_OVERSAMPLE + bool "Enable ADC hardware oversampling support" + depends on STM32F0L0G0_ADC1 && STM32F0L0G0_HAVE_ADC_OVERSAMPLE + default n + help + Enable the on-chip ADC oversampling/accumulation block (CFGR2.OVSE). + Only STM32G0 and STM32L0 series include this hardware block. + +if STM32F0L0G0_ADC_OVERSAMPLE + +config STM32F0L0G0_ADC_TOVS + bool "Enable triggered oversampling (CFGR2.TOVS)" + default n + help + If set, oversampling will only occur when a trigger event occurs. + If not set, oversampling occurs continuously (TOVS=0). + +config STM32F0L0G0_ADC_OVSR + int "Oversampling ratio (CFGR2.OVSR)" + default 0 + range 0 7 + help Review Comment: ```suggestion ---help--- ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org