summaryrefslogtreecommitdiffstats
path: root/keyboards/40percentclub/ut47
diff options
context:
space:
mode:
authorSergey Vlasov <sigprof@gmail.com>2023-01-25 04:47:55 +0300
committerGitHub <noreply@github.com>2023-01-25 01:47:55 +0000
commit81ca83296f3a9d9101ea9d88830cfcf427e8d944 (patch)
tree2f3378cdee788a21f10f1bb6b70b09e8dfaf399c /keyboards/40percentclub/ut47
parent0edf478a5335b5c8fac29a0b77428f0dcbf43316 (diff)
analog.c: Fix `pinToMux()` for STM32F0xx (#19658)
The `adc_read()` code for STM32F0xx expects to get the 0-based channel number in `mux.input`, but the `pinToMux()` code for STM32F0xx was attempting to pass the CHSELR bit mask in that field, which resulted in selecting a wrong channel, therefore `analogReadPin()` did not work properly for the STM32F0xx chips. Fix `pinToMux()` to put the channel number in that field (this matches the behavior for other supported chips and also allows selection of channels 16...18, which can be used to access the builtin temperature, reference voltage and VBAT sensors).
Diffstat (limited to 'keyboards/40percentclub/ut47')
0 files changed, 0 insertions, 0 deletions