@@ -15,7 +15,7 @@ use core::{
15
15
ptr,
16
16
sync:: atomic:: { compiler_fence, Ordering } ,
17
17
} ;
18
- use embedded_dma:: { StaticReadBuffer , StaticWriteBuffer } ;
18
+ use embedded_dma:: { ReadBuffer , WriteBuffer } ;
19
19
20
20
use crate :: pac:: RCC ;
21
21
use crate :: { pac, rcc} ;
@@ -889,7 +889,7 @@ where
889
889
STREAM : Stream ,
890
890
ChannelX < CHANNEL > : Channel ,
891
891
PERIPHERAL : PeriAddress + DMASet < STREAM , MemoryToPeripheral , CHANNEL > ,
892
- BUF : StaticReadBuffer < Word = <PERIPHERAL as PeriAddress >:: MemSize > ,
892
+ BUF : ReadBuffer < Word = <PERIPHERAL as PeriAddress >:: MemSize > ,
893
893
{
894
894
/// Configures the DMA stream to the correct channel for the peripheral, configures source and
895
895
/// destination and applies supplied configuration. If double buffering is enabled, the
@@ -1020,7 +1020,7 @@ where
1020
1020
STREAM : Stream ,
1021
1021
ChannelX < CHANNEL > : Channel ,
1022
1022
PERIPHERAL : PeriAddress + DMASet < STREAM , PeripheralToMemory , CHANNEL > + SafePeripheralRead ,
1023
- BUF : StaticWriteBuffer < Word = <PERIPHERAL as PeriAddress >:: MemSize > ,
1023
+ BUF : WriteBuffer < Word = <PERIPHERAL as PeriAddress >:: MemSize > ,
1024
1024
{
1025
1025
/// Access the owned peripheral for reading
1026
1026
pub fn peripheral ( & self ) -> & PERIPHERAL {
@@ -1034,7 +1034,7 @@ where
1034
1034
STREAM : Stream ,
1035
1035
ChannelX < CHANNEL > : Channel ,
1036
1036
PERIPHERAL : PeriAddress + DMASet < STREAM , PeripheralToMemory , CHANNEL > ,
1037
- BUF : StaticWriteBuffer < Word = <PERIPHERAL as PeriAddress >:: MemSize > ,
1037
+ BUF : WriteBuffer < Word = <PERIPHERAL as PeriAddress >:: MemSize > ,
1038
1038
{
1039
1039
/// Configures the DMA stream to the correct channel for the peripheral, configures source and
1040
1040
/// destination and applies supplied configuration. If double buffering is enabled, the
@@ -1169,7 +1169,7 @@ where
1169
1169
ChannelX < CHANNEL > : Channel ,
1170
1170
PERIPHERAL : PeriAddress + DMASet < STREAM , MemoryToMemory < S > , CHANNEL > ,
1171
1171
MemoryToMemory < S > : PeriAddress ,
1172
- BUF : StaticWriteBuffer < Word = <PERIPHERAL as PeriAddress >:: MemSize > ,
1172
+ BUF : WriteBuffer < Word = <PERIPHERAL as PeriAddress >:: MemSize > ,
1173
1173
{
1174
1174
/// Configures the DMA stream to the correct channel for the peripheral, configures source and
1175
1175
/// destination and applies supplied configuration. In a memory to memory transfer,
0 commit comments