Add octospi version dependency for max transfer support
This commit is contained in:
parent
166c95be6c
commit
66a7b62909
1 changed files with 8 additions and 2 deletions
|
@ -519,7 +519,10 @@ impl<'d, T: Instance, Dma> Ospi<'d, T, Dma> {
|
|||
|
||||
T::REGS.dcr3().modify(|w| {
|
||||
w.set_csbound(config.chip_select_boundary);
|
||||
w.set_maxtran(config.max_transfer);
|
||||
#[cfg(octospi_v1)]
|
||||
{
|
||||
w.set_maxtran(config.max_transfer);
|
||||
}
|
||||
});
|
||||
|
||||
T::REGS.dcr4().modify(|w| {
|
||||
|
@ -911,7 +914,10 @@ impl<'d, T: Instance, Dma> Ospi<'d, T, Dma> {
|
|||
|
||||
T::REGS.dcr3().modify(|w| {
|
||||
w.set_csbound(config.chip_select_boundary);
|
||||
w.set_maxtran(config.max_transfer);
|
||||
#[cfg(octospi_v1)]
|
||||
{
|
||||
w.set_maxtran(config.max_transfer);
|
||||
}
|
||||
});
|
||||
|
||||
T::REGS.dcr4().modify(|w| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue