Damien George 86ef965352 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>
2021-07-05 16:03:11 +10:00
..
2021-05-20 23:22:03 +10:00
2021-05-20 23:22:03 +10:00
2021-05-20 23:22:03 +10:00
2021-05-20 23:22:03 +10:00
2021-05-20 23:22:03 +10:00
2021-05-20 23:22:03 +10:00
2021-05-20 23:22:03 +10:00
2021-05-20 23:22:03 +10:00
2021-05-20 23:22:03 +10:00
2020-03-26 01:25:45 +11:00