diff options
| author | Yuuki NAGAO <wf.yn386@gmail.com> | 2025-09-21 10:07:02 +0900 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2025-09-23 14:48:16 +1000 |
| commit | 7ba82219f3d40689479704edfcc97fcf5b914b2c (patch) | |
| tree | 586532153a2235c4343e4ed3e6a48a17b167a5be /py/parsenum.h | |
| parent | 65b2dc255b2415e7afd6960587a1857297f6913a (diff) | |
stm32/adc: Fix pyb.ADC issue for STM32G0.
Fixes are:
- The internal sensors of STM32G0 are connected channel 12, 13, 14.
- Update adc_refcor before reading vbat and tempsensor because reference
values are at VDDA=3.0V.
- The method of initialize of sampling time is different with other MCUs:
STM32G0 should initialize SamplingTimeCommon1/2 first. When reading
value from ADC, ADC_ChannelConfTypeDef.SamplingTime should be specified
SamplingTimeCommon1 or SamplingTimeCommon2. In this patch,
SamplingTimeCommon2 is used for internal sensors and SamplingTimeCommon1
is used for external ADC channels.
Signed-off-by: Yuuki NAGAO <wf.yn386@gmail.com>
Diffstat (limited to 'py/parsenum.h')
0 files changed, 0 insertions, 0 deletions
