Merge remote-tracking branch 'upstream/main'
This commit is contained in:
@ -338,6 +338,7 @@ impl<'a, C: Channel> Transfer<'a, C> {
|
||||
|
||||
pub fn blocking_wait(mut self) {
|
||||
while self.is_running() {}
|
||||
self.request_stop();
|
||||
|
||||
// "Subsequent reads and writes cannot be moved ahead of preceding reads."
|
||||
fence(Ordering::SeqCst);
|
||||
|
@ -252,6 +252,7 @@ impl<'a, C: Channel> Transfer<'a, C> {
|
||||
super::dmamux::configure_dmamux(&mut *this.channel, request);
|
||||
|
||||
ch.cr().write(|w| w.set_reset(true));
|
||||
ch.fcr().write(|w| w.0 = 0xFFFF_FFFF); // clear all irqs
|
||||
ch.llr().write(|_| {}); // no linked list
|
||||
ch.tr1().write(|w| {
|
||||
w.set_sdw(data_size.into());
|
||||
|
Reference in New Issue
Block a user