mirror of
https://github.com/embassy-rs/embassy.git
synced 2025-02-16 17:02:30 +00:00
Add octospi version dependency for max transfer support
This commit is contained in:
parent
166c95be6c
commit
66a7b62909
@ -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…
Reference in New Issue
Block a user