Merge pull request #718 from Lukaswnd/master
Update deprecated function in gdma_lcd_parallel16.cpp and dma_parallel_io.cpp
This commit is contained in:
commit
2ef97a9368
2 changed files with 18 additions and 8 deletions
src/platforms
|
@ -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 = {
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Reference in a new issue