aboutsummaryrefslogtreecommitdiff
path: root/platforms/chibios/drivers/analog.c
Commit message (Collapse)AuthorAgeFilesLines
* Add ADC support STM32L4xx and STM32G4xx series MCUs (#22341)Cipulot2023-12-081-9/+102
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Update analog.c * Changes to remove errors in compile * Update analog.c Fix for RP2040 build errors * Revert "Merge branch 'adc-add-stm32l4xx-stm32g4xx' of https://github.com/Cipulot/qmk_firmware into adc-add-stm32l4xx-stm32g4xx" This reverts commit b11c2970785ce41ec772689749d71a2bd0ab48e7, reversing changes made to ed3051f94109b53eb1735882abfe7f57473bdca8. * Update analog.c Attempt fix for formatting CI error * Update platforms/chibios/drivers/analog.c Co-authored-by: Joel Challis <[email protected]> * Update platforms/chibios/drivers/analog.c Co-authored-by: Joel Challis <[email protected]> * Update platforms/chibios/drivers/analog.c Co-authored-by: Joel Challis <[email protected]> --------- Co-authored-by: Joel Challis <[email protected]>
* 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 <[email protected]>
* Added analog support for WB32 MCU. (#18289)Joy Lee2022-11-011-6/+6
| | | Co-authored-by: Joy <[email protected]>
* analog.[ch]: remove unnecessary includes (#16471)0.16.3Ryan2022-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