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
5142674786
Fix pre-existing SampleTime
typos
2022-10-26 17:07:50 -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
322cfafed3
Fix adc_v4 compilation
2022-10-07 14:53:03 +03:00
chemicstry
df7174ecb0
Fix internal channel reading on adc_v2
2022-10-07 14:31:55 +03:00
chemicstry
9dca368c3d
Use RccPeripheral for adc_v2
2022-10-07 13:29:56 +03: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
Grant Miller
5ecbe5c918
embassy-stm32: Simplify time
...
- Remove unused `MilliSeconds`, `MicroSeconds`, and `NanoSeconds` types
- Remove `Bps`, `KiloHertz`, and `MegaHertz` types that were only used
for converting to `Hertz`
- Replace all instances of `impl Into<Hertz>` with `Hertz`
- Add `hz`, `khz`, and `mhz` methods to `Hertz`, as well as
free function shortcuts
- Remove `U32Ext` extension trait
2022-07-10 21:46:45 -05: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
Matous Hybl
53f65d8b09
Automatically set ADC clock prescaler on v2 ADC to respect max frequency
2022-05-18 18:34:36 +02:00
Grant Miller
4bccd77849
stm32/adc/v4: Fix log statement
2022-05-02 15:14:49 -05:00
Matous Hybl
371f3ef419
Add ADC support for H7
2022-04-12 22:25:00 +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
dd828a7a92
stm32: move macrotables to embassy-stm32 build.rs
2022-02-26 03:23:09 +01:00
Dario Nieuwenhuis
ea5cd19c30
stm32: fix build for h7ab
2022-02-24 06:28:29 +01:00
Dario Nieuwenhuis
052f370de9
stm32: move ADC, DAC pin impls to build.rs
2022-02-23 20:21:28 +01:00
Frederik
7a3d34c1ed
fix build for stm32f410tb
2022-02-12 23:56:50 +01:00
Frederik
6f0488cbe7
remove unnecessary mod
2022-02-12 23:55:58 +01:00
Frederik
e4f240823d
adc cleanup retval
2022-02-11 17:48:32 +01:00
Frederik
7a3d28ad00
stm32f4: add adc + example
...
Example tested on stm32f407vg Discovery Board.
minimal adc: no vref, dma, complex sequence
2022-02-10 23:28:41 +01:00
Ulf Lilleengen
4032fc0655
Support unstable-trait feature for stm32
2022-01-26 22:39:06 +01:00
Sjoerd Simons
92f2c6d09c
adc: Implement support for f1 ADC block
...
Add basic support for the STM32F1xx ADC blocks.
2021-12-30 10:51:54 +01:00
Matous Hybl
015cad84dd
Initial support for STM32F767ZI.
2021-10-26 17:33:28 +02:00
Ben Gamari
006bbea51a
stm32/adc: Add IN0 channel
2021-09-29 00:32:40 -04: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
Ulf Lilleengen
4dccda085f
Add missing files for G0
2021-09-02 11:19:54 +02:00
Ben Gamari
e2f71ffbbd
Add support for STM32G0
2021-08-20 00:15:11 +02:00
Dario Nieuwenhuis
7bfb763e09
Rename embassy-extras to embassy-hal-common
2021-07-29 13:44:51 +02:00
Dario Nieuwenhuis
ecc151d4e2
stm32/adc: simplify delay handling
2021-07-05 03:18:23 +02:00
Rukai
25d4b2ea26
fix stm32 warnings
2021-07-05 01:54:29 +02:00
Bob McWhirter
d58fb11b2e
ADCv3 and example.
2021-06-14 13:20:42 -04:00