mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-29 21:08:38 +06:00
81ca83296f
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). |
||
---|---|---|
.. | ||
eeprom | ||
flash | ||
ps2 | ||
vendor/RP/RP2040 | ||
wear_leveling | ||
analog.c | ||
analog.h | ||
audio_dac_additive.c | ||
audio_dac_basic.c | ||
audio_dac.h | ||
audio_pwm_hardware.c | ||
audio_pwm_software.c | ||
audio_pwm.h | ||
i2c_master.c | ||
i2c_master.h | ||
serial_protocol.c | ||
serial_protocol.h | ||
serial_usart.c | ||
serial_usart.h | ||
serial.c | ||
spi_master.c | ||
spi_master.h | ||
uart.c | ||
uart.h | ||
usbpd_stm32g4.c | ||
ws2812_pwm.c | ||
ws2812_spi.c | ||
ws2812.c |