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
2020-06-26 21:17:02 +10:00
2019-10-18 11:41:22 +11: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-05-15 10:48:48 +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
2019-07-25 16:31:36 +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-27 12:18:41 +10:00
2021-05-20 23:22:03 +10:00
2021-05-20 23:22:03 +10:00
2021-02-21 15:49:33 +11:00
2021-05-20 23:22:03 +10:00
2021-05-27 23:57:51 +10:00
2021-04-06 12:11:15 +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
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-09-08 23:53:12 +10:00
2021-06-10 22:48:17 +10:00
2021-06-10 22:48:17 +10:00
2020-10-29 23:31:59 +11:00
2020-10-29 23:31:59 +11:00
2020-10-29 23:31:59 +11:00
2020-10-29 23:31:59 +11:00
2020-10-29 23:35:36 +11:00
2020-10-29 23:35:36 +11:00
2020-10-29 23:35:36 +11:00
2020-10-29 23:31:59 +11:00
2021-07-05 16:03:11 +10:00
2020-03-26 01:25:45 +11:00
2018-12-13 13:43:10 +11:00
2018-12-13 13:43:10 +11:00
2018-12-13 13:43:10 +11:00
2021-04-20 23:33:33 +10:00
2021-02-14 18:30:49 +11:00
2021-05-04 16:53:40 +10:00
2018-04-11 16:14:58 +10:00
2021-02-14 18:30:49 +11:00
2018-06-18 13:05:24 +10:00
2019-06-25 14:15:49 +10:00
2018-05-29 21:37:49 +10:00
2019-06-25 14:15:49 +10:00
2019-06-25 14:15:49 +10:00
2019-11-11 12:02:14 +11:00
2019-06-25 14:15:49 +10:00
2018-05-29 21:37:49 +10:00
2019-06-25 14:15:49 +10:00
2020-05-15 10:08:30 +10:00
2020-05-15 10:08:30 +10:00
2019-05-02 16:26:53 +10:00
2019-06-25 14:15:49 +10:00
2019-06-25 14:15:49 +10:00
2019-01-31 01:02:42 +11:00
2019-06-25 14:15:49 +10:00
2018-05-16 11:55:07 +10:00
2019-06-25 14:15:49 +10:00
2018-06-22 15:39:10 +10:00
2019-07-25 16:31:36 +10:00
2020-01-30 16:31:11 +11:00
2019-06-25 14:15:49 +10:00
2018-03-07 18:40:06 +11:00
2019-12-19 11:43:19 +11:00
2019-06-25 14:15:49 +10:00
2021-02-14 18:30:49 +11:00
2019-02-06 13:34:53 +11:00
2020-12-08 15:27:27 +11:00
2021-02-14 18:30:49 +11:00
2021-02-14 18:30:49 +11:00
2021-04-13 23:58:20 +10:00
2019-07-05 17:26:03 +10:00
2018-12-06 13:32:43 +11:00
2021-05-27 12:18:41 +10:00
2021-04-13 23:58:20 +10:00
2019-07-08 16:50:19 +10:00
2021-04-13 23:58:20 +10:00
2019-07-01 16:57:20 +10:00
2019-07-01 16:57:20 +10:00
2018-05-29 21:37:49 +10:00
2019-07-01 16:57:20 +10:00
2021-04-13 23:58:20 +10:00
2020-09-08 23:53:02 +10:00
2021-02-14 18:30:49 +11:00