aboutsummaryrefslogtreecommitdiffstats
path: root/src/stm32/adc.c
Commit message (Collapse)AuthorAgeFilesLines
* stm32: support stm32f401 adc_temperature sensor (#5572)Kamil Trzciński2022-06-201-2/+4
| | | | | | | | | > The temperature sensor is internally connected to the ADC_IN18 > The TSVREFE bit must be set to enable the conversion of both internal channels: the ADC1_IN16 or ADC1_IN18 (temperature sensor) and the ADC1_IN17 (VREFINT). Ref.: https://www.st.com/resource/en/reference_manual/dm00096844-stm32f401xb-c-and-stm32f401xd-e-advanced-arm-based-32-bit-mcus-stmicroelectronics.pdf Signed-off-by: Kamil Trzciński <ayufan@ayufan.eu>
* stm32: Add an MACH_STM32F4x5 alias for F405, F407, and F429 chipsKevin O'Connor2021-10-061-3/+3
| | | | | | | | | The F405, F407, and F429 chips are in the same series and almost all code definitions should apply to all chips in that series. Implement the alias and fix defintions in adc.c and Kconfig that were only applying to a subset of that series. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Enable ADC3 pins on stm32f446Kevin O'Connor2021-05-061-2/+2
| | | | | | Reported by @bigtreetech. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Added mcu temperature support additional mcu (#4211)pkElectronics2021-04-251-1/+1
| | | | | Enabled MCU_Temperature sensor for STM32F405 based boards Signed-off-by: Pascal Wistinghausen <pascal.wistinghausen@ib-wistinghausen.de>
* stm32: Support for STM32F401 (#3853)smark-2021-01-311-2/+2
| | | | | This module adds support for the STM32F401 microcontrollers Signed-off-by: Marco D'Alessio <marco@wrecklab.com>
* stm32: Support reading chip based temperature sensor on stm32f1/2/4Kevin O'Connor2020-10-291-5/+24
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Slow ADC frequency to 4.5MhzKevin O'Connor2020-04-301-3/+3
| | | | | | | There are reports that SKR mini boards have more stable ADC results when running the ADC at a slower frequency. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Reset adc calibration prior to starting calibrationKevin O'Connor2020-01-251-8/+17
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Increase adc sample timeKevin O'Connor2020-01-251-4/+4
| | | | | | | Increase the sample time register from 3 to 4 (which adds about ~1.5us to each adc sample). Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Fix typo in setting of SMPR1 register on stm32f103Kevin O'Connor2019-11-271-1/+2
| | | | | | Only the stm32f4 has a SMP18 field; it's not present on the stm32f103. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Fix typo in adc startup delayKevin O'Connor2019-11-271-1/+6
| | | | | | Fix (harmless) typo and add comments on adc timing. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Add support for additional ADC3 ports on stm32f4Kevin O'Connor2019-08-151-20/+41
| | | | Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
* stm32: Rename stm32f4/ directory to stm32/Kevin O'Connor2019-08-051-0/+107
Now that the code in stm32f4/ can handle both stm32f1 and stm32f4 chips, rename the directory to just "stm32". Signed-off-by: Kevin O'Connor <kevin@koconnor.net>