diff options
author | Sergey Vlasov <sigprof@gmail.com> | 2023-01-25 04:47:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-25 01:47:55 +0000 |
commit | 81ca83296f3a9d9101ea9d88830cfcf427e8d944 (patch) | |
tree | 2f3378cdee788a21f10f1bb6b70b09e8dfaf399c /keyboards/evyd13/nt750 | |
parent | 0edf478a5335b5c8fac29a0b77428f0dcbf43316 (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/evyd13/nt750')
0 files changed, 0 insertions, 0 deletions