mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-09-26 20:00:27 +00:00
Typo fixes
This commit is contained in:
parent
59461ba75a
commit
a7e1bf2aff
@ -113,7 +113,7 @@ pub struct TransferConfig {
|
||||
|
||||
/// Data width (DMODE)
|
||||
pub dwidth: OspiWidth,
|
||||
/// Data buffer
|
||||
/// Data Double Transfer rate enable
|
||||
pub ddtr: bool,
|
||||
|
||||
/// Number of dummy cycles (DCYC)
|
||||
@ -467,11 +467,11 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> {
|
||||
if let Some(data_length) = data_len {
|
||||
T::REGS.dlr().write(|v| {
|
||||
v.set_dl((data_length - 1) as u32);
|
||||
})
|
||||
});
|
||||
} else {
|
||||
T::REGS.dlr().write(|v| {
|
||||
v.set_dl((0) as u32);
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
// Configure instruction/address/data/communication modes
|
||||
@ -491,7 +491,7 @@ impl<'d, T: Instance, M: PeriMode> Ospi<'d, T, M> {
|
||||
w.set_sioo(command.sioo);
|
||||
});
|
||||
|
||||
// Set informationrequired to initiate transaction
|
||||
// Set information required to initiate transaction
|
||||
if let Some(instruction) = command.instruction {
|
||||
if let Some(address) = command.address {
|
||||
T::REGS.ir().write(|v| {
|
||||
|
Loading…
x
Reference in New Issue
Block a user