File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -620,10 +620,10 @@ impl<'a> Transfer<'a> {
620620 }
621621
622622 /// Create a new write DMA transfer (memory to peripheral), using raw pointers.
623- pub unsafe fn new_write_raw < W : Word , PW : Word > (
623+ pub unsafe fn new_write_raw < MW : Word , PW : Word > (
624624 channel : impl Peripheral < P = impl Channel > + ' a ,
625625 request : Request ,
626- buf : * const [ W ] ,
626+ buf : * const [ MW ] ,
627627 peri_addr : * mut PW ,
628628 options : TransferOptions ,
629629 ) -> Self {
@@ -634,11 +634,11 @@ impl<'a> Transfer<'a> {
634634 request,
635635 Dir :: MemoryToPeripheral ,
636636 peri_addr as * const u32 ,
637- buf as * const W as * mut u32 ,
637+ buf as * const MW as * mut u32 ,
638638 buf. len ( ) ,
639639 true ,
640- W :: size ( ) ,
641- W :: size ( ) ,
640+ MW :: size ( ) ,
641+ PW :: size ( ) ,
642642 options,
643643 )
644644 }
You can’t perform that action at this time.
0 commit comments