Skip to content

Commit

Permalink
Update deprecated function in gdma_lcd_parallel16.cpp and dma_paralle…
Browse files Browse the repository at this point in the history
…l_io.cpp
  • Loading branch information
Lukaswnd authored Jan 3, 2025
1 parent 2f7f535 commit 9f5e1ad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
13 changes: 9 additions & 4 deletions src/platforms/esp32c6/dma_parallel_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,16 @@ bool Bus_Parallel16::init(void)
.auto_update_desc = false};
gdma_apply_strategy(dma_chan, &strategy_config);

gdma_transfer_ability_t ability = {
.sram_trans_align = 32,
.psram_trans_align = 64,
gdma_transfer_config_t transfer_config = {
#ifdef SPIRAM_DMA_BUFFER
.max_data_burst_size = 64,
.access_ext_mem = true
#else
.max_data_burst_size = 32,
.access_ext_mem = false
#endif
};
gdma_set_transfer_ability(dma_chan, &ability);
gdma_config_transfer(dma_chan, &transfer_config);

// Enable DMA transfer callback
static gdma_tx_event_callbacks_t tx_cbs = {
Expand Down
13 changes: 9 additions & 4 deletions src/platforms/esp32s3/gdma_lcd_parallel16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,16 @@
};
gdma_apply_strategy(dma_chan, &strategy_config);

gdma_transfer_ability_t ability = {
.sram_trans_align = 32,
.psram_trans_align = 64,
gdma_transfer_config_t transfer_config = {
#ifdef SPIRAM_DMA_BUFFER
.max_data_burst_size = 64,
.access_ext_mem = true
#else
.max_data_burst_size = 32,
.access_ext_mem = false
#endif
};
gdma_set_transfer_ability(dma_chan, &ability);
gdma_config_transfer(dma_chan, &transfer_config);

// Enable DMA transfer callback
static gdma_tx_event_callbacks_t tx_cbs = {
Expand Down

0 comments on commit 9f5e1ad

Please sign in to comment.