circuitpython/ports
Yuuki NAGAO d9764ad140 stm32/adc: Fix reading internal ADC channels on G4 MCUs.
For STM32G4 series, the internal sensors are connected to:
- ADC1_IN16: Temperature sensor
- ADC1_IN17: Battery voltage monitoring
- ADC1_IN18: Internal voltage reference
but ADC_CHANNEL_TEMPSENSOR_ADC1, ADC_CHANNEL_VBAT,
ADC_CHANNEL_VREFINT are not defined as 16, 17, 18.

This commit converts channel 16, 17, 18 to ADC_CHANNEL_x in
adc_get_internal_channel().

Signed-off-by: Yuuki NAGAO <wf.yn386@gmail.com>
2023-07-13 12:39:12 +10:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 all: Use MP_REGISTER_EXTENSIBLE_MODULE for overrideable built-ins. 2023-06-08 17:54:21 +10:00
embed all: Rename *umodule*.c to remove the "u" prefix. 2023-06-08 17:54:17 +10:00
esp32 esp32/network_wlan: Wait for STA/AP START/STOP event in wlan.active. 2023-07-13 11:49:14 +10:00
esp8266 extmod/asyncio: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
mimxrt ports: In machine_i2s.c, rename uasyncio to asyncio. 2023-06-19 18:36:54 +10:00
minimal all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
nrf extmod/asyncio: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
pic16bit ports: Implement simple write polling for stdout. 2023-03-23 13:51:17 +11:00
powerpc all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
qemu-arm py/mkrules.mk: Automatically configure frozen options when manifest set. 2023-06-08 23:12:56 +10:00
renesas-ra renesas-ra/boards/VK_RA6M5: Add new board definition. 2023-06-27 12:35:39 +10:00
rp2 ports: In machine_i2s.c, rename uasyncio to asyncio. 2023-06-19 18:36:54 +10:00
samd samd/mpconfigport: Provide the platform module. 2023-06-27 14:58:44 +10:00
stm32 stm32/adc: Fix reading internal ADC channels on G4 MCUs. 2023-07-13 12:39:12 +10:00
teensy ports: Standardise docs link in help text. 2023-06-02 11:48:46 +10:00
unix extmod/asyncio: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
webassembly webassembly: Make mp_js_process_char asynchronous. 2023-06-27 15:27:29 +10:00
windows extmod/asyncio: Rename uasyncio to asyncio. 2023-06-19 17:33:03 +10:00
zephyr py/mkrules.mk: Automatically configure frozen options when manifest set. 2023-06-08 23:12:56 +10:00