• C
    stm32/{adc,machine_adc}: Change ADC clock and sampling time for F0 MCUs. · 0096041c
    Chris Mason 提交于
    STM32F0 has PCLK=48MHz and maximum ADC clock is 14MHz so use PCLK/4=12MHz
    to stay within spec of the ADC peripheral.  In pyb.ADC set common sampling
    time to approx 4uS for internal and external sources.  In machine.ADC
    reduce sample time to approx 1uS for external source, leave internal at
    maximum sampling time.
    0096041c
machine_adc.c 14.4 KB