diff options
author | Damien George <damien@micropython.org> | 2021-07-01 12:04:48 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2021-07-05 16:03:11 +1000 |
commit | 86ef96535295de130185dcf41f0c514cf5192ae4 (patch) | |
tree | 9f6540b9a4232b5bc6b7922fd69673f2cda1db34 /docs/esp8266 | |
parent | 0e11966ce9ea2345458d2e6127ee28486c4cb65d (diff) | |
download | micropython-86ef96535295de130185dcf41f0c514cf5192ae4.tar.gz micropython-86ef96535295de130185dcf41f0c514cf5192ae4.zip |
stm32/adc: Simplify and generalise how pin_adcX table is defined.
The ADC_FIRST_GPIO_CHANNEL and ADC_LAST_GPIO_CHANNEL macros are no longer
needed. Instead the pin_adcX table (X = 1, 2, 3) is now generated to be
the exact size needed for a given MCU, and MP_ARRAY_SIZE(pin_adcX) is used
to determine the upper bound.
This commit also allows CPU pins to be excluded from ADC configuration if
they are hidden by prefixing their name with a "-".
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/esp8266')
0 files changed, 0 insertions, 0 deletions