Update the approach to support `ADCDEV_x` identifiers based on the CMSIS
commit8ecb7c051b06f89cd2995e02f6f94b31bf73e397
authorDominic Clifton <dominic.clifton@cleanflight.com>
Thu, 18 Mar 2021 19:53:11 +0000 (18 20:53 +0100)
committerDominic Clifton <dominic.clifton@cleanflight.com>
Fri, 19 Mar 2021 09:41:03 +0000 (19 10:41 +0100)
treea533a82669a4869a6343753fbd237087f47ad731
parentc4d694821c5614eca8a3ac06b9a1cf4aa165e222
Update the approach to support `ADCDEV_x` identifiers based on the CMSIS
`ADCx` defines.  The processor series (F/G/H) isn't enough.

With reference to the definitions of `ADCx_BASE` in the
`CMSIS/Device/ST/*/.h files`

* H7A3 has ADC1/2 but not 3/4/5.
* H750 has ADC1/2/3 not but 4/5.
* G471 has ADC1/2 but not 3/4/5.
* G473 has ADC1/2/3/4/5.
* F7 has ADC1/2/3 but not 4/5.
* F4 has ADC1/2/3 but not 4/5.
* F3 has ADC1/2/3/4 but not 5.
* F1 has ADC1/2/3 but not 4/5.
src/main/drivers/adc.c
src/main/drivers/adc.h
src/main/pg/adc.c