11205 Commits

Author SHA1 Message Date
Dario Nieuwenhuis
581594d1f5
Merge pull request #4496 from variegated-coffee/psram
feat(embassy-rp): RP2350 - Add support for QMI CS1, and for APS6404L PSRAM
2025-09-05 13:45:00 +00:00
Dario Nieuwenhuis
9c30be254c
Merge pull request #4586 from per42/adc_with_clock
Add Adc::new_with_clock() to configure analog clock
2025-09-05 15:29:34 +02:00
Dario Nieuwenhuis
704c294162
Merge branch 'main' into adc_with_clock 2025-09-05 15:29:20 +02:00
Dario Nieuwenhuis
90d403fd0a stm32: peri_v1_bar now enables cfgs peri_v1 and peri_v1_bar. 2025-09-05 15:19:22 +02:00
Dario Nieuwenhuis
60b640bd97 stm32/sai: update for new metapac, simplify cfgs. 2025-09-05 15:19:22 +02:00
Dario Nieuwenhuis
f6414d8cd2
Merge pull request #3923 from elagil/gpdma_ll_ringbuf_support
Add GPDMA linked-list + ringbuffer support
2025-09-05 13:07:48 +00:00
Dario Nieuwenhuis
fbe2c0d43b
Merge pull request #4637 from embassy-rs/executor-fix-main-name
executor: always name main task `main`, not just with rtos-trace.
2025-09-05 13:06:36 +00:00
Dario Nieuwenhuis
286d887529 executor: always name main task main, not just with rtos-trace.
Also fixes the warning about the `rtos-trace` feature not existing in embassy-executor-macros.
2025-09-05 14:57:05 +02:00
Adrian Figueroa
2e2562d8dc fix: ping-pong helper DMA direction 2025-09-05 14:43:43 +02:00
Adrian Figueroa
c487034dc7 style: formatting 2025-09-05 14:43:43 +02:00
Adrian Figueroa
1e54841632 chore: add changelog entry 2025-09-05 14:43:43 +02:00
Adrian Figueroa
40eb557682 feat: SAI example 2025-09-05 14:43:29 +02:00
elagil
1e627cab29 refactor: make dma implementations match in interface 2025-09-05 14:43:29 +02:00
elagil
db7828538f fix: consolidate naming 2025-09-05 14:43:29 +02:00
elagil
e9783ee28e fix: build 2025-09-05 14:43:29 +02:00
etiennecollin
d3718c6d4e fix: renamed simple table as per ST nomenclature
Co-authored-by: elagil <elagil@takanome.de>
2025-09-05 14:43:29 +02:00
etiennecollin
51e7fafc3c fix: removed unnecessary mut reference 2025-09-05 14:43:29 +02:00
etiennecollin
47bb14514f feat: use register wrappers instead of u32 for LinearItem
Since the register structs are no-field structs with
`repr(transparent)`, we can use them in the LinearItem with `repr(C)`.
This allows the user to call the convenient named setter functions for
the registers instead of manually changing the bits of the u32.
2025-09-05 14:43:29 +02:00
etiennecollin
50e2e2ec60 feat: add new_with_table() initializer for ring-buffers and removal of RegisterUpdaters
- It is now possible to pass a linked-list table to the ring-buffer with
the `new_with_table()` function or use the `new()` function for a basic
ring-buffer setup.
- A `simple_ring_buffer_table()` function was added to the read and
write ring-buffers to generate the same table as the one created by
`new()` in case the user only wants to customize the default table
options.
- RegisterUpdaters have been removed as the user now has direct access
to the table and its items if needed.

See: https://github.com/elagil/embassy/pull/1#issuecomment-2891997294
2025-09-05 14:43:29 +02:00
etiennecollin
4291a092be fix: moved channel configuration from new() to start()
See this PR comment explaining why configuration in `new()` is a bad
idea:
https://github.com/embassy-rs/embassy/pull/3923#issuecomment-2889193736
2025-09-05 14:43:29 +02:00
etiennecollin
a2daa9739f fix: removed functions exposing channel registers
These functions could be used to cause UB.
2025-09-05 14:43:29 +02:00
etiennecollin
2f24568de0 feat: custom dma configuration using RegisterUpdaters struct
See this PR comment:
https://github.com/embassy-rs/embassy/pull/3923#issuecomment-2889283939
2025-09-05 14:43:29 +02:00
etiennecollin
f67365a067 fix: suspend before reset
This follows the procedure outlined in the STM32U5 reference manual at
page 696.
2025-09-05 14:43:29 +02:00
etiennecollin
4999069198 feat: use provided TransferOptions instead of defaults 2025-09-05 14:43:29 +02:00
etiennecollin
277c59857b feat: custom DMA channel configuration
See
https://github.com/embassy-rs/embassy/pull/3923#issuecomment-2888810087

The default configuration of the channel which was done in `start()` is
now done in `new()` this allows overriding some settings through the new
`get_dma_channel` function. Only ringbuffers support this;
`LinkedListTransfer` and `Transfer` do not support that yet.
2025-09-05 14:43:29 +02:00
etiennecollin
c0b8e9c7e5 fix: writing reserved bits 2025-09-05 14:43:29 +02:00
etiennecollin
fec14213ea fix: modified dma channel state management
See
https://github.com/embassy-rs/embassy/pull/3923#discussion_r2094570176
2025-09-05 14:43:29 +02:00
elagil
7d224d94c4 fix: docstring 2025-09-05 14:43:29 +02:00
elagil
40a0d5d8f2 fix: build warnings 2025-09-05 14:43:29 +02:00
elagil
3d161e98a1 fix: simplify 2025-09-05 14:43:29 +02:00
elagil
7a62b8eee8 fix: build issues 2025-09-05 14:43:29 +02:00
elagil
a4d3b4b6ae feat: wip, write buffer in halves 2025-09-05 14:43:29 +02:00
elagil
78364b966e chore: change naming 2025-09-05 14:43:29 +02:00
elagil
2baa4399a7 fix: wip gpdma 2025-09-05 14:43:29 +02:00
elagil
50224583db fix: load/store ordering 2025-09-05 14:43:29 +02:00
elagil
bfd82ff82c fix: read transfer options 2025-09-05 14:43:29 +02:00
elagil
1541f1e0c2 chore: clean up transfer options 2025-09-05 14:43:29 +02:00
elagil
be88187591 fix: transfer options 2025-09-05 14:43:29 +02:00
elagil
f0fc1a15da fix: disable half-complete interrupt 2025-09-05 14:43:29 +02:00
elagil
51b28aaa31 style: formatting 2025-09-05 14:43:29 +02:00
elagil
4155adbf8a feat: ping-pong buffers 2025-09-05 14:43:29 +02:00
elagil
cf5b1ea9f5 feat: gpdma support (wip) 2025-09-05 14:43:29 +02:00
elagil
3c3b43fb00 feat: GPDAM linked-list + ringbuffer support 2025-09-05 14:43:29 +02:00
Dario Nieuwenhuis
70aaa82e49
Merge pull request #4623 from paroga/stm32l0_usb_serial
stm32/l0: Add usb serial example
2025-09-05 12:06:22 +00:00
i509VCB
f2de2ca16b
Merge pull request #4600 from i509VCB/c1105_c1106
mspm0: add mspm0c1105/6
2025-09-04 14:10:23 +00:00
Dario Nieuwenhuis
615fc36eb8
Merge pull request #4636 from embassy-rs/nfct-ndef
nrf: add NFCT NDEF example
2025-09-04 11:40:56 +00:00
wackazong
9ac8944478 Fix offset calculation 2025-09-04 13:38:14 +02:00
Dario Nieuwenhuis
d1429868ce nrf: add NFCT NDEF example. 2025-09-04 13:38:08 +02:00
Dario Nieuwenhuis
a3d88ec065
Merge pull request #4635 from RyanCDE/complementary-pwm-polarity-fix
Add timer set polarity functions for main and complementary outputs in complementary_pwm
2025-09-03 10:47:26 +00:00
r.marple
089b6722c6 Added timer set polarity functions for main and complementary outputs individually 2025-09-03 16:14:08 +10:00