73 Commits

Author SHA1 Message Date
Dario Nieuwenhuis
18eea73d19 stm32/adc: add h7rs support. 2025-04-25 00:12:02 +02:00
Dario Nieuwenhuis
d41eeeae79 Remove Peripheral trait, rename PeripheralRef->Peri. 2025-03-27 15:18:06 +01:00
Timofei Korostelev
8c6fa83006 Added ADC support for STM32C0. 2025-03-20 01:58:44 +01:00
klownfish
41c8bf867b fix formatting 2024-12-31 01:04:18 +01:00
klownfish
8c1b4faae1 resuse adc v4 for u5 2024-09-25 01:01:19 +02:00
klownfish
3ce40f41fb WIP: add u5 adc4 2024-09-24 19:03:20 +02:00
klownfish
0fe9fa631a WIP: add u5 adc 2024-09-17 18:42:26 +02:00
klownfish
f0a86d1a34 Merge branch 'main' of github.com:embassy-rs/embassy 2024-09-11 11:55:50 +02:00
klownfish
0ba91ca555 WIP: u5 adc 2024-09-11 11:55:16 +02:00
Dario Nieuwenhuis
c739091085 Update stm32-metapac. 2024-09-11 01:19:46 +02:00
Dario Nieuwenhuis
1ea29f1d2e
Merge pull request #3169 from Adancurusul/g4_dev
Add adc oversampling and adc differential for g4
2024-09-10 23:07:11 +00:00
Dion Dokter
ab4d378dda Merge branch 'master' into stm-dualcore 2024-08-05 11:21:21 +02:00
Dario Nieuwenhuis
2d678d6956 Update to Rust 1.80, make check-cfg unconditional. 2024-07-25 15:53:00 +02:00
Chen Yuheng
fd5501d455 delete unused "info!" and fmt 2024-07-11 15:34:34 +08:00
Chen Yuheng
f01ffbcc12 Add oversampling and differential for g4 2024-07-11 10:33:43 +08:00
Dion Dokter
6db0daf79b Fix errors 2024-07-09 09:53:01 +02:00
seth
f64dd8228b new PR, taking Dirbao's advice to make the DMA impl in a separate struct that consumes Adc<T> to make RingBufferedAdc<T>. Handling overrun similar to RingBufferedUart 2024-06-24 17:09:43 -07:00
Jan Špaček
368893c9cb Emit cargo:rustc-check-cfg instructions from build.rs 2024-05-30 18:28:29 +02:00
Univa
4e9206efb8 remove InternalChannel and AdcPin 2024-05-22 19:00:48 -04:00
Univa
41e11d86b9 make AdcChannel required for InternalChannel 2024-05-21 19:08:01 -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
Dario Nieuwenhuis
a14319f51e stm32: allow some unused. 2024-05-13 00:00:36 +02:00
Dario Nieuwenhuis
bab4affe7c
Merge pull request #2813 from diondokter/u0-dion
More U0 support
2024-04-16 18:45:09 +00:00
Torin Cooper-Bennun
d928663bae stm32: adc: fix blocking_delay_us() overflowing when sys freq is high
e.g. H503 running at 250 MHz resulted in an upper bound of 17 us here.
casting up to u64 for intermediate calc allows the upper bound to be
increased by a factor of 1e6
2024-04-16 15:13:31 +01:00
Dario Nieuwenhuis
4079a8acf8 stm32/adc: update g4 for new pac. 2024-04-14 22:06:41 +02:00
Dion Dokter
b659e3d529 Add ADC 2024-04-14 00:04:13 +02:00
Dario Nieuwenhuis
52bd24499c stm32/adc: update g4 for new pac. 2024-04-13 03:34:28 +02:00
Andres Vahter
6e24dc58c6 stm32 adc: use fn blocking_delay_us(us: u32) 2024-04-10 22:23:49 +03: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
shufps
ab8f25fd78 added support for ADC of L0s 2024-02-08 10:47:26 +01:00
Dario Nieuwenhuis
9866847375 stm32: autogenerate clocks struct, enable mux for all chips. 2024-02-02 23:24:34 +01:00
Dario Nieuwenhuis
49534cd405 stm32: more docs. 2023-12-19 00:10:36 +01:00
Dario Nieuwenhuis
124478c5e9 stm32: more docs. 2023-12-18 19:11:23 +01:00
Dario Nieuwenhuis
80c9d04bbd stm32: add some docs. 2023-12-18 00:53:18 +01:00
Sam Mason
35f16c6003 stm32: add ADC f3_v1_1 2023-12-04 14:03:31 +11:00
pbert
d7d79f3068 Remove workaround for adc v3 2023-10-12 11:04:20 +02:00
xoviat
79146c4bd5 stm32/adc: cleanup f1, f3, v1, and v2 2023-09-27 20:58:46 -05:00
xoviat
d46920dce6 stm32/adc: make v1 async and leave en 2023-09-20 16:07:35 -05:00
xoviat
e640933e2f stm32/adc: add async conversion 2023-09-18 16:31:20 -05:00
xoviat
c28a6bdd0b stm32: generate adc_common 2023-09-15 17:35:53 -05:00
xoviat
b9889ad3b5 stm32: add g4 adc345 and misc. 2023-09-11 17:12:54 -05: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
xoviat
7307098780 stm32: don't generate adc5 2023-09-05 17:50:45 -05:00
xoviat
f4601af2a4 stm32: don't generate adc4 for g4 2023-09-05 17:48:20 -05:00
xoviat
fd22f4fac5 stm32: remove paste and use refcount statics 2023-09-05 17:45:52 -05:00
xoviat
f502271940 stm32: add initial adc f3 impl 2023-09-05 16:46:57 -05:00
Dario Nieuwenhuis
cc400aa178 stm32: fix f37x build.
originally broke in https://github.com/embassy-rs/embassy/pull/1762
2023-08-19 01:15:32 +02:00