mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-21 14:22:33 +00:00
change for new pac api
This commit is contained in:
parent
16ec38c38a
commit
a0a2dd0469
@ -33,7 +33,7 @@ impl Default for TransferOptions {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<WordSize> for vals::ChTr1Dw {
|
||||
impl From<WordSize> for vals::Dw {
|
||||
fn from(raw: WordSize) -> Self {
|
||||
match raw {
|
||||
WordSize::OneByte => Self::BYTE,
|
||||
@ -274,7 +274,7 @@ impl<'a> Transfer<'a> {
|
||||
w.set_dinc(true);
|
||||
});
|
||||
ch.tr2().write(|w| {
|
||||
w.set_dreq(vals::ChTr2Dreq::SOURCEPERIPHERAL);
|
||||
w.set_dreq(vals::Dreq::SOURCEPERIPHERAL);
|
||||
w.set_reqsel(request);
|
||||
});
|
||||
|
||||
@ -441,8 +441,8 @@ impl<'a> Transfer<'a> {
|
||||
});
|
||||
ch.tr2().write(|w| {
|
||||
w.set_dreq(match dir {
|
||||
Dir::MemoryToPeripheral => vals::ChTr2Dreq::DESTINATIONPERIPHERAL,
|
||||
Dir::PeripheralToMemory => vals::ChTr2Dreq::SOURCEPERIPHERAL,
|
||||
Dir::MemoryToPeripheral => vals::Dreq::DESTINATIONPERIPHERAL,
|
||||
Dir::PeripheralToMemory => vals::Dreq::SOURCEPERIPHERAL,
|
||||
});
|
||||
w.set_reqsel(request);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user