circuitpython/ports
Rene Straub 72ef2e6291 stm32/machine_adc: Fix and improve STM32H5 support.
Changes are:
- Run ADC on PCLK/16.
- Verify and optimize timings (ADC_STAB_DELAY_US, ADC_SAMPLETIME_DEFAULT).
- Add support for STM32H5 VBAT and COREVDD channels on ADC2.
- Replace ADC constants in machine_adc_locals_dict_table.
- Convert STM32 literal to channel numbers in adc_config_channel with
  corresponding STM32 LL library functions (__LL_ADC_IS_CHANNEL_INTERNAL(),
  __LL_ADC_CHANNEL_TO_DECIMAL_NB()).

Reasoning for the second last point: the STM32 driver literals are uint32_t
that don't work with MP_ROM_INT() which handles signed 31 bit integers
only.  Introduce enumerator machine_adc_internal_ch_t to define external
channels (0..19), internal channels (256..) and the special channel VREF
(0xffff).  Values are converted to STM32 literals with adc_ll_channel()
when required in adc_config_and_read_u16().

Signed-off-by: Rene Straub <rene@see5.ch>
2023-09-27 16:58:10 +10:00
..
bare-arm bare-arm/mpconfigport.h: Disable remaining optional features. 2021-11-01 14:23:06 +11:00
cc3200 py/modthread: Return thread id from start_new_thread(). 2023-09-03 18:49:18 +10:00
embed all: Rename *umodule*.c to remove the "u" prefix. 2023-06-08 17:54:17 +10:00
esp32 esp32: Fix Partition.writeblocks() partial write corruption. 2023-09-21 17:49:48 +02:00
esp8266 esp8266/boards/ESP8266_GENERIC: Add image filename. 2023-08-24 17:15:32 +10:00
mimxrt mimxrt/Makefile: Update to work with latest TinyUSB. 2023-09-14 23:35:54 +10:00
minimal all: Fix spelling mistakes based on codespell check. 2023-04-27 18:03:06 +10:00
nrf nrf/boards: Rename all nRF boards to use uppercase. 2023-08-23 13:54:37 +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 examples: Mark asm, pio, etc. as noqa: F821 (undefined-name). 2023-08-16 16:12:33 +10:00
renesas-ra renesas-ra/boards/ARDUINO_PORTENTA_C33: Add support for Portenta C33. 2023-09-15 00:10:47 +10:00
rp2 rp2/boards/ARDUINO_NANO_RP2040_CONNECT: Use standard HCI UART baudrate. 2023-09-15 16:48:20 +10:00
samd samd/modules/_boot.py: Add /lib to sys.path. 2023-09-02 00:09:26 +10:00
stm32 stm32/machine_adc: Fix and improve STM32H5 support. 2023-09-27 16:58:10 +10:00
teensy ports: Standardise docs link in help text. 2023-06-02 11:48:46 +10:00
unix unix/modjni: Fix build errors with type definitions and error strings. 2023-09-04 10:22:19 +10:00
webassembly webassembly: Replace typeof window check with ENVIRONMENT_IS_NODE flag. 2023-07-13 13:24:35 +10:00
windows extmod/moddeflate: Add deflate module providing the DeflateIO class. 2023-07-21 19:32:40 +10:00
zephyr py/mkrules.mk: Automatically configure frozen options when manifest set. 2023-06-08 23:12:56 +10:00