Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
306d118
support psram in DmaTxBuf
liebman Sep 15, 2024
008c8cd
add example that sometimes works :-(
liebman Sep 15, 2024
b231c8b
fmt
liebman Sep 15, 2024
07f780c
cleanups
liebman Sep 15, 2024
b1376b3
allow chunk_size upto (including) 4095
liebman Sep 16, 2024
179e926
this test is passing for me now
liebman Sep 16, 2024
1e37d4f
remove chunk_size and compute based on block_size
liebman Sep 16, 2024
5b2b4c9
return error in `prepare_transfer` if psram is found on non-esp32s3
liebman Sep 18, 2024
12acacd
missing parens
liebman Sep 18, 2024
9e2067d
changelog
liebman Sep 18, 2024
9fce2f4
default 4092 for esp32 & fmt
liebman Sep 18, 2024
b264ee2
no errors anymode
liebman Sep 19, 2024
1e62e91
use block_size is_some to flag invalid psram in prepare_transfer
liebman Sep 19, 2024
510b392
drop block_size from macro, the buffer allocation was not being align…
liebman Sep 19, 2024
af58a61
missed macro example
liebman Sep 19, 2024
70e98d7
use defmt::Format that decodes owner like Debug
liebman Sep 19, 2024
fa7cce0
fix typo
liebman Sep 19, 2024
6c9ff4c
DmaTxBuf: its an error if buffer is in psram and block_size is none
liebman Sep 20, 2024
d18fea7
DmaTxBuf: its an error if buffer is in psram and block_size is none
liebman Sep 20, 2024
37f7bff
update for PSRAM feature changes
liebman Sep 20, 2024
9162e63
Merge branch 'main' into dma-psram-tx-buf
JurajSadel Sep 24, 2024
51028c6
address alignment comments
liebman Sep 24, 2024
d452ef6
fmt
liebman Sep 24, 2024
b24f066
better alignment test
liebman Sep 24, 2024
65adcdf
revert alignment test
liebman Sep 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
no errors anymode
  • Loading branch information
liebman committed Sep 20, 2024
commit b264ee2118754b3dff107d97fee535a6f9b35592
7 changes: 2 additions & 5 deletions examples/src/bin/spi_loopback_dma_psram.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,8 @@ macro_rules! dma_alloc_buffer {
}};
}

// TODO: the fist transfer fails in some conditions:
// - if this is <= 8192 when chunk_size is 4032!?!?
// - varing either DMA_CHUNK_SIZE or DMA_BUFFER_SIZE seems change the behavior
const DMA_BUFFER_SIZE: usize = 16384; // the first request fails is this is <= 8192 when chunk_size is 4032!?!?
const DMA_ALIGNMENT: DmaBufBlkSize = DmaBufBlkSize::Size16;
const DMA_BUFFER_SIZE: usize = 8192;
const DMA_ALIGNMENT: DmaBufBlkSize = DmaBufBlkSize::Size64;
const DMA_CHUNK_SIZE: usize = 4096 - DMA_ALIGNMENT as usize;

#[entry]
Expand Down