summaryrefslogtreecommitdiff
path: root/tests/float/float_format_ints.py
diff options
context:
space:
mode:
authorRene Straub <rene@see5.ch>2023-08-02 09:13:16 +0200
committerDamien George <damien@micropython.org>2023-09-27 16:58:10 +1000
commit72ef2e6291eedfe237b8b086a44ac570ce8b7f0d (patch)
tree5bba8a96cf05fd750620f962ba5b63ec1f9a4ac5 /tests/float/float_format_ints.py
parent64d24fccd6d5469c38ea4440cd43a03aec750835 (diff)
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>
Diffstat (limited to 'tests/float/float_format_ints.py')
0 files changed, 0 insertions, 0 deletions