aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoretiennecollin <[email protected]>2025-08-25 21:10:59 +0200
committerDario Nieuwenhuis <[email protected]>2025-09-05 14:43:29 +0200
commit49990691985c8814500bf518bdec446bb85587e3 (patch)
tree4cc8efcfc99551c5a29ff5f55fbb5073a9e57ed3
parent277c59857bc577e8565c920861feb5b6721ac9ae (diff)
feat: use provided TransferOptions instead of defaults
-rw-r--r--embassy-stm32/src/dma/gpdma/ringbuffered.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/embassy-stm32/src/dma/gpdma/ringbuffered.rs b/embassy-stm32/src/dma/gpdma/ringbuffered.rs
index 66c4b74ec..c74c7bd2b 100644
--- a/embassy-stm32/src/dma/gpdma/ringbuffered.rs
+++ b/embassy-stm32/src/dma/gpdma/ringbuffered.rs
@@ -63,7 +63,7 @@ impl<'a, W: Word> ReadableRingBuffer<'a, W> {
63 request: Request, 63 request: Request,
64 peri_addr: *mut W, 64 peri_addr: *mut W,
65 buffer: &'a mut [W], 65 buffer: &'a mut [W],
66 _options: TransferOptions, 66 options: TransferOptions,
67 ) -> Self { 67 ) -> Self {
68 let channel: Peri<'a, AnyChannel> = channel.into(); 68 let channel: Peri<'a, AnyChannel> = channel.into();
69 69
@@ -78,7 +78,7 @@ impl<'a, W: Word> ReadableRingBuffer<'a, W> {
78 let table = Table::new(items); 78 let table = Table::new(items);
79 79
80 // Apply the default configuration to the channel. 80 // Apply the default configuration to the channel.
81 unsafe { channel.configure_linked_list(&table, Default::default()) }; 81 unsafe { channel.configure_linked_list(&table, options) };
82 82
83 Self { 83 Self {
84 channel, 84 channel,
@@ -220,7 +220,7 @@ impl<'a, W: Word> WritableRingBuffer<'a, W> {
220 request: Request, 220 request: Request,
221 peri_addr: *mut W, 221 peri_addr: *mut W,
222 buffer: &'a mut [W], 222 buffer: &'a mut [W],
223 _options: TransferOptions, 223 options: TransferOptions,
224 ) -> Self { 224 ) -> Self {
225 let channel: Peri<'a, AnyChannel> = channel.into(); 225 let channel: Peri<'a, AnyChannel> = channel.into();
226 226
@@ -235,7 +235,7 @@ impl<'a, W: Word> WritableRingBuffer<'a, W> {
235 let table = Table::new(items); 235 let table = Table::new(items);
236 236
237 // Apply the default configuration to the channel. 237 // Apply the default configuration to the channel.
238 unsafe { channel.configure_linked_list(&table, Default::default()) }; 238 unsafe { channel.configure_linked_list(&table, options) };
239 239
240 let this = Self { 240 let this = Self {
241 channel, 241 channel,