9859 Commits

Author SHA1 Message Date
Kelsey Maes
03061a0817 mspm0: Fix set_pf_unchecked() assertion 2025-04-02 08:33:12 -07:00
Dario Nieuwenhuis
a137a16067
Merge pull request #4033 from jamesmunns/james/upstream-trace
[embassy-executor] Add two new `trace` hooks, improve docs
2025-04-02 00:34:05 +00:00
Dario Nieuwenhuis
3bc809eb3e
Merge pull request #4036 from Fredrik-Reinholdsen/main
fix: Fix for #3888 async I2C read bug for introduced in #3887
2025-04-01 20:55:27 +00:00
Fredrik Reinholdsen
47869d122a fix: Fix for #3888 async I2C read bug for introduced in #3887 in STM32 I2C v2 driver
In fixing a different timing related bug, #3887, a new bug was introduced causing I2C reads longer than 255 bytes to timeout for some I2C devices, #3888.
The issue was caused by incorrect branch order, and poll function being called unnecessarily.

Async I2C read poll function now only looks for I2C transfer complete reload (TCR) interrupts, intead of TCR and transfer complete (TC) interrupts,
since TC interrupts are not raised when AUTOEND bit is set.
2025-04-01 21:28:07 +02:00
James Munns
ef3c1b87d1 Minor docs improvements 2025-04-01 14:35:21 +02:00
James Munns
2e474b7df2 Remove notes about stability 2025-04-01 14:30:36 +02:00
James Munns
3e25a7be86 Small grammar fixes 2025-04-01 14:27:32 +02:00
James Munns
c3efb85b85 Fix task_end callback 2025-04-01 14:23:39 +02:00
James Munns
8a8e450053 Reorder doc comments for format reasons 2025-04-01 14:12:58 +02:00
James Munns
84cd416bed Finish trailing sentence 2025-04-01 14:11:42 +02:00
James Munns
882e2180a4 Add docs, add task_end trace point 2025-04-01 14:06:04 +02:00
Anton Lazarev
dc31bfd829
refactor to reduce code duplication 2025-03-31 12:47:41 -07:00
Anton Lazarev
0a231505d8
support 8 lane data bus 2025-03-31 12:47:41 -07:00
Anton Lazarev
b92eb948b5
fix d6->d7 typo from build.rs 2025-03-31 12:47:41 -07:00
Anton Lazarev
57731a7896
support eMMC 2025-03-31 12:47:41 -07:00
Anton Lazarev
5325f1d911
scaffold eMMC support 2025-03-31 12:47:41 -07:00
Anton Lazarev
14bb4ee9e4
use ready_for_data status to determine when write has finished
`read_sd_status` works, but it's somewhat of a hack, but also won't work
on eMMC devices. The official spec for both SD and eMMC recommends using
this method.
2025-03-31 12:47:41 -07:00
Anton Lazarev
5d01712d84
use upstream command definitions 2025-03-31 12:47:41 -07:00
Anton Lazarev
d22a7a3a96
update sdio-host to 0.9 2025-03-31 12:47:41 -07:00
Anton Lazarev
280d21a6b4
update sdio-host to 0.6 2025-03-31 12:47:41 -07:00
Dario Nieuwenhuis
a44abaf7e4
Merge pull request #3989 from embedded-rust-iml/fix/ringbuffered-error-handling
Rework status handling (idle and errors) in ringbuffered uart
2025-03-31 15:09:01 +00:00
Tobias Naumann
c29fc3532b Merge branch 'main' into fix/ringbuffered-error-handling to resolve merge conflicts 2025-03-31 16:48:13 +02:00
Dániel Buga
aa5ecbdb56
Remove task arena FAQ 2025-03-31 13:16:11 +02:00
Dario Nieuwenhuis
4d9b41714d
Merge pull request #4026 from cyril-marpaud/patch-3
docs: fix a typo
2025-03-31 11:13:30 +00:00
Cyril Marpaud
f396579dff
docs: fix a typo 2025-03-31 13:07:03 +02:00
Ulf Lilleengen
154870b2c3
Merge pull request #3978 from avsaase/blocking-mutex-lock-mut
embassy-sync: add `lock_mut` to `blocking_mutex::Mutex`
2025-03-31 07:34:11 +00:00
Ulf Lilleengen
aadd4e5513
Merge pull request #3968 from embedded-rust-iml/feature/ringbuffered-embedded-hal-nb
Add embedded_hal_nb::serial::Read impl for RingBufferedUartRx
2025-03-31 07:05:19 +00:00
Dario Nieuwenhuis
553f8924cc
Merge pull request #4024 from elagil/g4_adc_cal
Fix STM32G4 ADC calibration stability
2025-03-30 23:15:23 +02:00
Dario Nieuwenhuis
7479a5f7b7
Merge pull request #4023 from 0e4ef622/better-errors
Fix ugly compiler error from task macro
2025-03-30 23:15:02 +02:00
elagil
ca8be1c976 fix: stm32g4 calibration delays 2025-03-29 22:01:54 +01:00
Dario Nieuwenhuis
cae954a87e
Merge pull request #4021 from CBJamo/rp23-watchdog-fix
RP235x watchdog doesn't have the double count bug
2025-03-29 15:19:44 +00:00
Matthew Tran
034e9fc218 Move macro helper functions to embassy-executor 2025-03-29 03:52:00 -05:00
Matthew Tran
35b353ab94 Fix ugly compiler errors 2025-03-29 02:46:32 -05:00
Matthew Tran
c72e2c5d10 Add test 2025-03-29 02:46:32 -05:00
i509VCB
91cde689cc
mspm0: blocking uart driver 2025-03-29 00:21:29 -05:00
Caleb Jamison
49badcff1a
RP235x watchdog doesn't have the double count bug 2025-03-28 17:45:41 -04:00
Dario Nieuwenhuis
954d1554d4
Merge pull request #4020 from embassy-rs/stable-static-taskpool-v2
Statically allocate task pools on stable Rust.
2025-03-28 20:07:00 +01:00
Dario Nieuwenhuis
695a6da322 Statically allocate task pools on stable Rust.
Thanks @0e4ef622 for the awesome idea of how to do it and the first implementation.

Co-Authored-By: Matthew Tran <0e4ef622@gmail.com>
2025-03-28 19:11:53 +01:00
Dario Nieuwenhuis
3a3ab6cded
Merge pull request #3928 from agrif/stm32-i2c-set-config
Fix SetConfig implementation for STM32 I2C v2
2025-03-28 15:17:21 +00:00
Dario Nieuwenhuis
bda7ba7b14
Merge pull request #4019 from techmccat/main
stm32: allow using LSI/LSE as SYSCLK on g0/c0
2025-03-28 12:20:24 +00:00
techmccat
ce578b62b8 stm32: run cargo fmt 2025-03-28 10:45:14 +01:00
techmccat
0621087f6f stm32: allow using LSI/LSE as SYSCLK on g0/c0 2025-03-28 10:35:05 +01:00
Sebastian Quilitz
d17d43735f embassy-rp: Move Spinlock implementation out of critical_section_impl 2025-03-27 20:10:34 +01:00
Dario Nieuwenhuis
502c188cf4
Merge pull request #3999 from embassy-rs/peripehral-v2
Remove Peripheral trait, rename PeripheralRef->Peri.
2025-03-27 15:30:40 +01:00
Dario Nieuwenhuis
d41eeeae79 Remove Peripheral trait, rename PeripheralRef->Peri. 2025-03-27 15:18:06 +01:00
Dario Nieuwenhuis
d097ccc68c
Merge pull request #4012 from adom-inc/rp2350-adc-fix
rp/adc: fix potential race condition
2025-03-27 13:36:46 +00:00
Dario Nieuwenhuis
8186847801
Merge pull request #4014 from adom-inc/rp-bootram-typo
rp: rename BOOTROM_BASE to BOOTRAM_BASE
2025-03-27 13:26:22 +00:00
Tobias Naumann
14d079ae84 Cleanup stm32_metapac register usage in usart module 2025-03-27 12:03:52 +01:00
Tobias Naumann
9e31a45134 Fix unused imports 2025-03-27 11:58:51 +01:00
Adrian Wowk
5777284304 rp: rename BOOTROM_BASE to BOOTRAM_BASE
Previously the constant pointing at the base of the bootram was
incorrectly called BOOTROM_BASE. According to the datasheet, the bootrom
is a 32K region starting at 0x00000000 while the bootram is a 1K region
of SRAM starting at 0x400e0000.
2025-03-26 19:05:27 -05:00