summaryrefslogtreecommitdiffstats
path: root/platforms/chibios/drivers/analog.c
Commit message (Collapse)AuthorAgeFilesLines
* analog.c: Fix `pinToMux()` for STM32F0xx (#19658)Sergey Vlasov2023-01-251-16/+16
| | | | | | | | | | 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).
* Add analog support for RP2040 (#19453)Sergey Vlasov2023-01-191-6/+15
| | | Co-authored-by: Ryan <fauxpark@gmail.com>
* Added analog support for WB32 MCU. (#18289)Joy Lee2022-11-011-6/+6
| | | Co-authored-by: Joy <chang.li@westberrytech.com>
* analog.[ch]: remove unnecessary includes (#16471)Ryan2022-03-041-1/+0
|
* Format code according to conventions (#16322)QMK Bot2022-02-121-3/+3
|
* [Core] Add support for RISC-V builds and GD32VF103 MCU (#12508)Stefan Kerkmann2021-10-181-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for RISC-V builds and GD32VF103 MCU * Add toolchain selection in chibios.mk based on the mcu selected in mcu_selection.mk * Reorder and added comments to chibios.mk to have a streamlined makefile * Add GD32VF103 mcu to possible targets for QMK. * Add STM32 compatibility for GD32VF103 MCU, this is hacky but more efficent then rewriting every driver. * Add GigaDevice DFU bootloader as flash target, please note that dfu-util of at least version 0.10 is needed. * Add analog driver compatibility * Add apa102 bitbang driver compatibility * Add ws2812 bitbang driver compatibility * Add eeprom in flash emulation compatibility * Allow faster re-builds with ccache * Add SiPeed Longan Nano to platform files * Add SiPeed Longan Nano Onekeys * Make quine compatible with other bootloaders * Support builds with picolibc * Add risc-v toolchain to arch and debian/ubuntu scripts
* Relocate platform specific drivers (#13894)Joel Challis2021-08-171-0/+321
* Relocate platform specific drivers * Move stm eeprom * Tidy up slightly