Tyler Gilbert
2addfc4b86
Merge branch 'issue-1974-add-sai-driver' of https://github.com/tyler-gilbert/embassy into issue-1974-add-sai-driver
2023-09-29 21:08:21 -05:00
Tyler Gilbert
92df87781d
Issue 1974 add sai/mod file
2023-09-29 21:08:07 -05:00
Tyler
a35d149cb1
Revert metapac change in Cargo.toml
2023-09-29 21:07:09 -05:00
Tyler
2f9b59c5cf
Merge branch 'main' into issue-1974-add-sai-driver
2023-09-29 20:02:24 -06:00
Tyler Gilbert
ce91fb2bfc
Issue #1974 add SAI driver
2023-09-29 20:57:59 -05:00
Daniel Berlin
dffdb9268b
Revert "Forgot set_count_direction and set_clock_division in 32 bit instance"
2023-09-28 21:56:18 -04:00
Dario Nieuwenhuis
22e820b743
Merge pull request #1969 from dberlin/main
...
Forgot set_count_direction and set_clock_division in 32 bit instance
2023-09-29 00:38:45 +00:00
xoviat
39f1b26a39
stm32: update metapac and remove sbs
2023-09-28 19:21:02 -05:00
Daniel Berlin
e70143ef8f
Forgot set_count_direction and set_clock_division in 32 bit instance
2023-09-28 20:01:04 -04:00
xoviat
d6654bf8b5
Merge pull request #1966 from xoviat/hrtim
...
stm32/hrtim: move traits out of macro def'n
2023-09-28 20:53:55 +00:00
xoviat
322a4a8401
stm32/hrtim: move traits out of macro def'n
2023-09-28 15:48:46 -05:00
Daniel Berlin
23f3889167
Add support for STM32 input capture filter
2023-09-28 09:35:43 -04:00
xoviat
a72a91ab06
Merge pull request #1963 from Mirror0/restore-f7-rtc
...
Restore RTC configuration for `STM32F7` boards
2023-09-28 11:32:50 +00:00
Dario Nieuwenhuis
e538aeacc8
Merge pull request #1960 from embassy-rs/test-eth-2
...
Net fixes
2023-09-28 03:39:10 +00:00
Dario Nieuwenhuis
6200d22438
stm32/eth: fix receiving large frames on v2.
2023-09-28 05:12:35 +02:00
xoviat
901d31e8f8
Merge pull request #1933 from xoviat/adc
...
stm32: more adc cleanup
2023-09-28 01:59:51 +00:00
xoviat
79146c4bd5
stm32/adc: cleanup f1, f3, v1, and v2
2023-09-27 20:58:46 -05:00
Daniel Berlin
f866735802
Add support for input capture function
2023-09-27 20:15:57 -04:00
Mateusz Butkiewicz
e1951f3ddf
feat(stm32f7): restore rtc configuration for stm32f7 series
2023-09-27 16:08:05 +02:00
Dario Nieuwenhuis
a57e48459e
stm32/rcc: remove bad limits on l5.
2023-09-26 05:15:09 +02:00
Dario Nieuwenhuis
c604d8a8f1
stm32/rcc: add voltage_scale, flash waitstates.
2023-09-26 05:15:09 +02:00
Dario Nieuwenhuis
44bb405683
stm32/usart: enable fifo mode on usartv4.
2023-09-26 04:38:53 +02:00
Dario Nieuwenhuis
5d8817d109
stm32/usart: return error instead of panicking on bad baudrate.
2023-09-26 00:19:27 +02:00
xoviat
96edbd84fb
rtc: use enable on known working chips only
2023-09-25 16:38:30 -05:00
xoviat
dc400a0539
stm32/rtc: always set wakeup alarm
2023-09-25 16:27:08 -05:00
xoviat
04b09a2acb
stm32/rtc: use rccperi enable
2023-09-25 16:26:29 -05:00
Dario Nieuwenhuis
bd9021ca1d
Make irq token Copy+Clone
2023-09-25 22:35:31 +02:00
xoviat
2543bcafaf
Merge pull request #1945 from xoviat/bd-2
...
stm32: fix bd lsi
2023-09-24 23:41:04 +00:00
xoviat
9f2fc04caa
stm32: fix bd lsi
2023-09-24 18:37:09 -05:00
Dario Nieuwenhuis
e03239e88d
stm32: centralize enabling pwr, syscfg, flash.
2023-09-25 01:07:55 +02:00
xoviat
c849620cd6
stm32/lp: clamp requested_duration to avoid overflow
2023-09-22 15:35:20 -05:00
xoviat
7cf327130e
stm32/low-power: create one critical-section for all time ops
2023-09-21 19:32:48 -05:00
Dario Nieuwenhuis
47175198c0
stm32: update metapac.
2023-09-22 00:13:57 +02:00
Dario Nieuwenhuis
83b4c01273
stm32/rcc: unify h5 and h7.
2023-09-21 23:47:56 +02:00
Christian Enderle
ad64d7b20b
fix low-power: APB1 needed for LSE
2023-09-21 17:17:58 +02:00
xoviat
5626a28af2
Merge pull request #1930 from xoviat/adc
...
stm32/adc: make v1 async
2023-09-20 22:45:51 +00:00
Dario Nieuwenhuis
00b9f9acef
stm32/h7: fix bad PWR reg versions.
2023-09-21 00:23:56 +02:00
xoviat
d46920dce6
stm32/adc: make v1 async and leave en
2023-09-20 16:07:35 -05:00
Sebastian Goll
2405aff11f
Add get_level() to ExtiInput
2023-09-20 00:03:39 +02:00
Sebastian Goll
561696dfad
Fix typo in F2 RCC voltage ranges
2023-09-19 10:20:25 +02:00
xoviat
b1abaa380f
Merge pull request #1919 from xoviat/adc
...
adc/f3: add async conversion
2023-09-18 21:32:59 +00:00
xoviat
e640933e2f
stm32/adc: add async conversion
2023-09-18 16:31:20 -05:00
Dario Nieuwenhuis
4bfbcd6c72
stm32: use PAC enums for VOS.
2023-09-18 03:15:15 +02:00
xoviat
feaeee1e83
stm32: misc. cleanup
2023-09-17 18:47:22 -05:00
xoviat
a6ef314be1
stm32: update configure_ls as agreed
2023-09-17 18:41:45 -05:00
Scott Mabin
88eb5cca71
stm32: Implement set_config
for Uart structs
2023-09-17 18:38:03 +01:00
Scott Mabin
087ef918bf
stm32: Add RtcTimeProvider struct to Rtc module
...
This struct allows users to acquire the current time without putting `Rtc`
in a mutex and passing that around. This is allowed because reading from the
rtc registers is atomic.
2023-09-17 18:04:05 +01:00
Dario Nieuwenhuis
bbe1d96045
stm32/rcc: use AHBPrescaler div impls in stm32wba
2023-09-17 02:30:50 +02:00
xoviat
de2773afdd
stm32/rcc: convert bus prescalers to pac enums
2023-09-16 17:41:11 -05:00
xoviat
ad0a306ea5
stm32: fix wpan_ble test
2023-09-16 10:19:09 -05:00
Dario Nieuwenhuis
8315cf064e
stm32: add stm32wba support.
2023-09-16 04:04:45 +02:00
xoviat
f27620cc0b
Merge pull request #1909 from xoviat/adc
...
stm32: generate adc_common and misc.
2023-09-15 23:49:41 +00:00
xoviat
6da75ea285
stm32: rtc/low-power cleanup
2023-09-15 18:41:33 -05:00
xoviat
aa2fa29b89
stm32: fix adc f3 startup time
...
closes #1888 .
2023-09-15 17:36:21 -05:00
xoviat
c28a6bdd0b
stm32: generate adc_common
2023-09-15 17:35:53 -05:00
Christian Enderle
45e9e51bdc
Fix low-power feature for STM32L0
2023-09-15 16:36:51 +02:00
xoviat
9fb14379c3
stm32: add lp to l0
2023-09-14 18:53:27 -05:00
xoviat
309c3d6b47
update metapac
2023-09-14 18:36:03 -05:00
Ulf Lilleengen
1b20ba27b1
feat: bump embassy-sync version to 0.3.0
...
Update changelog in preparation for release
2023-09-14 18:26:00 +02:00
Dario Nieuwenhuis
b118c4cc1b
Merge pull request #1899 from tarfu/bump-fmc
...
stm32: bump fmc version
2023-09-14 12:34:19 +00:00
Tobias Breitwieser
dcd1a91966
stm32: bump fmc version
2023-09-14 14:07:15 +02:00
Mathias
49847ff432
Implement blocking embedded-io::Write for Uart & UartTx
2023-09-14 10:09:09 +02:00
cumthugo
582ef90994
stm32/usart: fix usart not wake up issue
2023-09-13 23:47:46 +08:00
xoviat
d36e7abb71
adc/f3: fix delay calculation
2023-09-11 18:52:52 -05:00
xoviat
44a5c32ea4
adc/f3: fix startup bug
2023-09-11 17:27:47 -05:00
xoviat
b9889ad3b5
stm32: add g4 adc345 and misc.
2023-09-11 17:12:54 -05:00
xoviat
e308286f3c
Merge pull request #1881 from MabezDev/sdmmc-stbiterr
...
Handle stbiterr in 4bit wide mode for sdmmc_v1
2023-09-10 19:52:47 +00:00
Scott Mabin
268da2fcde
Handle stbiterr in 4bit wide mode for sdmmc_v1
2023-09-10 20:27:38 +01:00
xoviat
1bae34d37c
stm32: fix docs
2023-09-10 13:50:28 -05:00
xoviat
08415e001e
stm32/f3: add high res for hrtim and misc.
2023-09-10 13:33:17 -05:00
xoviat
70a4a193c5
stm32: fix adc f3 and example
2023-09-09 22:01:51 -05:00
xoviat
11a78fb1e4
rcc: more cleanup
2023-09-08 18:20:58 -05:00
xoviat
4550452f43
rustfmt
2023-09-06 17:53:02 -05:00
xoviat
08410432b5
stm32: fix rcc merge
2023-09-06 17:51:40 -05:00
xoviat
3cf3caa3ab
Merge branch 'main' into rcc-bd
2023-09-06 17:49:29 -05:00
xoviat
c21ad04c2e
stm32: extract lse/lsi into bd mod
2023-09-06 17:48:12 -05:00
xoviat
d097c99719
stm32/rcc: add lsi and lse bd abstraction
2023-09-06 17:33:56 -05:00
Olle Sandberg
c356585a59
update metapac tag
2023-09-06 11:49:18 +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
xoviat
a05afc5426
Merge pull request #1867 from xoviat/adc-g4
...
Adc g4
2023-09-05 23:31:03 +00:00
xoviat
50116e5b27
remove paste dependency
2023-09-05 18:20:17 -05:00
Scott Mabin
6770d8e8a6
Allow the RTC clock source to be configured with the new RTC mechanism
2023-09-06 00:04:09 +01: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
7622d2eb61
stm32: fix merge issues
2023-09-05 17:10:15 -05:00
xoviat
7573160077
Merge branch 'main' of https://github.com/embassy-rs/embassy into adc-g4
2023-09-05 17:02:28 -05:00
xoviat
f502271940
stm32: add initial adc f3 impl
2023-09-05 16:46:57 -05:00
Daehyeok Mun
49ba9c3da2
initial support for STM32G4 ADC
2023-09-04 23:36:41 -07:00
xoviat
d19e1c1dd1
stm32: only refcount usart and use kind direclty
2023-09-04 16:18:31 -05:00
xoviat
6dc56d2b35
stm32: include uart-named peripherals
2023-09-04 16:04:29 -05:00
xoviat
bfb4cf775a
remove adc refcount
2023-09-04 15:54:00 -05:00
xoviat
274f63a879
stm32: fix refcounts for usart, spi, and i2c
2023-09-04 15:47:33 -05:00
xoviat
3466c9cfa9
stm32: refcount peripheral enable/disable
2023-09-04 13:47:02 -05:00
xoviat
2e6f4237f2
stm32: cleanup psc design
2023-09-03 11:40:34 -05:00
xoviat
1d87ec9cc3
stm32/qei: fix struct naming ( #1852 )
...
Co-authored-by: xoviat <xoviat@users.noreply.github.com>
2023-09-02 00:30:27 +02:00
xoviat
56351cedcb
Merge pull request #1844 from xoviat/rtc
...
stm32/rtc: autocompute prescalers
2023-08-30 23:28:00 +00:00
xoviat
0823d9dc93
Merge pull request #1845 from xoviat/qei
...
stm32: add qei
2023-08-30 23:16:33 +00:00
xoviat
c10fb7c1c4
stm32: implement qei
2023-08-30 18:10:26 -05:00