Dario Nieuwenhuis
d41eeeae79
Remove Peripheral trait, rename PeripheralRef->Peri.
2025-03-27 15:18:06 +01:00
John Kjellberg
3e63a2e5df
Clarified ADC API documentation for some STM32s.
2025-03-25 11:10:51 +01:00
elagil
eba8089601
chore: fix build
2025-01-03 18:18:00 +01:00
Andres Vahter
f851081e09
stm32 adc: introduce blocking_read
2024-07-03 15:20:31 +03:00
Ulf Lilleengen
914d7c7919
Merge pull request #3128 from andresv/stm32-adc-dma-v3
...
STM32 ADC v3 and V4 DMA support
2024-07-03 08:13:26 +00:00
Andres Vahter
a4e62314af
stm32: adc v3: fix for newest pac
2024-07-02 17:15:22 +03:00
Andres Vahter
c120efad5b
stm32 adc read_async: add asserts for buf len
2024-07-02 17:07:18 +03:00
Andres Vahter
5e2fd8623a
stm32 adc v3 read_async
2024-07-02 17:07:18 +03:00
Chen Yuheng
a0799bf270
Add adc oversampling support
2024-06-27 17:04:26 +08:00
Jan Špaček
081afca3f0
stm32/rcc: replace generated enable/disable code with runtime info
2024-05-25 18:44:55 +02:00
Univa
4e9206efb8
remove InternalChannel and AdcPin
2024-05-22 19:00:48 -04:00
Univa
ddbb6c8c31
add back InternalChannel and implement it where its missing
2024-05-21 19:03:14 -04:00
Univa
7cdbae2a5d
add AnyAdcChannel
2024-05-20 21:29:20 -04:00
Dion Dokter
b659e3d529
Add ADC
2024-04-14 00:04:13 +02:00
Andres Vahter
6e24dc58c6
stm32 adc: use fn blocking_delay_us(us: u32)
2024-04-10 22:23:49 +03:00
Andres Vahter
68b1a840c6
stm32 adc: remove DelayNs
2024-04-10 10:33:15 +03:00
Andres Vahter
fd802ffdfd
stm32: use embedded_hal_1::delay::DelayNs
...
This makes delay compatible with https://lib.rs/crates/rtic-monotonics .
2024-04-09 22:32:09 +03:00
Torin Cooper-Bennun
c953b9045b
stm32: adc: v3: [h5] set OR.OP0 to 1 when ADCx_INP0 is selected, per RM
2024-04-05 13:00:33 +01:00
Dario Nieuwenhuis
2bca875b5f
stm32: use private_bounds for sealed traits.
2024-03-23 01:38:51 +01:00
Dario Nieuwenhuis
72c6f9a101
stm32/adc: reexport enums from PAC to avoid boilerplate hell.
2024-02-26 03:02:58 +01:00
Torin Cooper-Bennun
5d2ccc8fa7
adc: basic H5 support
2024-02-22 15:50:13 +00:00
pbert
ecdd7c0e2f
enable clock first
2023-10-12 11:04:44 +02:00
pbert
d7d79f3068
Remove workaround for adc v3
2023-10-12 11:04:20 +02:00
Olle Sandberg
0d3ff34d80
adc: enable ADC and clock selection for STM32WLx
2023-09-06 06:57:30 +02:00
Olle Sandberg
bb2d6c8542
adc_v3: replace cfg(stm32g0) + friends with cfg(adc_g0)
...
Since any MCU (not just STM32G0) using adc_g0 should probably be handled the same way.
2023-09-06 06:57:28 +02:00
Dario Nieuwenhuis
036e6ae30c
Rename embassy-hal-common to embassy-hal-internal, document it's for internal use only. ( #1700 )
2023-07-28 13:23:22 +02:00
Dario Nieuwenhuis
e892014b65
Update stm32-metapac, includes chiptool changes to use real Rust enums now.
2023-06-29 02:01:33 +02:00
Dario Nieuwenhuis
558918651e
stm32: update stm32-metapac.
2023-06-19 03:22:12 +02:00
Jaxter Kim
551b54ddcb
stm32g0: Fix ADC for channels above 14
2022-11-15 12:56:47 +01:00
Grant Miller
171b764d82
Refactor: Use PeripheralRef
2022-10-26 18:36:04 -05:00
Grant Miller
9c30d565b9
Refactor: Factor out Adc struct declaration
2022-10-26 17:51:12 -05:00
Grant Miller
88bbc238b7
Set resolution directly
2022-10-26 17:07:58 -05:00
Grant Miller
2cfe2439c9
Refactor: Impl From for SampleTime and Resolution
2022-10-26 17:07:58 -05:00
Grant Miller
7b38b95e10
Refactor: Factor out Resolution
2022-10-26 17:07:58 -05:00
Grant Miller
a5b1d2237f
Refactor: Factor out SampleTime
2022-10-26 17:06:44 -05:00
Grant Miller
545cc9326b
stm32/adc: Remove voltage and temperature conversions
2022-10-24 04:00:29 -05:00
chemicstry
42434c75bc
Make vref units explicit
2022-07-27 14:13:59 +03:00
chemicstry
b1f0d6320e
Improve set_vref docs
2022-07-27 01:30:32 +03:00
chemicstry
046778fc53
Improve ADC configuration options
2022-07-27 01:17:26 +03:00
Dario Nieuwenhuis
4901c34d9c
Rename Unborrowed -> PeripheralRef, Unborrow -> Peripheral
2022-07-23 14:00:19 +02:00
Dario Nieuwenhuis
a8703b7598
Run rustfmt.
2022-06-12 22:22:31 +02:00
Dario Nieuwenhuis
5085100df2
Add embassy-cortex-m crate.
...
- Move Interrupt and InterruptExecutor from `embassy` to `embassy-cortex-m`.
- Move Unborrow from `embassy` to `embassy-hal-common` (nothing in `embassy` requires it anymore)
- Move PeripheralMutex from `embassy-hal-common` to `embassy-cortex-m`.
2022-06-12 21:45:38 +02:00
Dario Nieuwenhuis
50ff63ab88
Add STM32L5 support.
2022-04-08 03:11:38 +02:00
chemicstry
bdeb537ffa
Fix compile for stm32wb
2022-03-18 01:33:39 +02:00
chemicstry
b30a42aff8
Fix RCC safety and add reset to DAC
2022-03-18 01:16:07 +02:00
Dario Nieuwenhuis
ea5cd19c30
stm32: fix build for h7ab
2022-02-24 06:28:29 +01:00
Ulf Lilleengen
4032fc0655
Support unstable-trait feature for stm32
2022-01-26 22:39:06 +01:00
Ben Gamari
0b9961584b
stm32/adc: Ensure that clock is enabled
...
Sadly due to the inconsistency in clocking configuration across devices
we cannot use RccPeripheral.
2021-09-29 00:32:40 -04:00
Ben Gamari
aa4069fe10
stm32/adc: Fix ADC support for STM32G0
2021-09-28 21:19:10 -04:00
Ben Gamari
e2e0464d04
stm32/adc: Factor out conversion logic
...
Also guard errata workaround correctly.
2021-09-28 18:00:05 -04:00