Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DMA hardcoded off #2

Open
williamrobotma opened this issue Jul 26, 2018 · 0 comments
Open

DMA hardcoded off #2

williamrobotma opened this issue Jul 26, 2018 · 0 comments

Comments

@williamrobotma
Copy link

williamrobotma commented Jul 26, 2018

In SPIBus.cpp, the code for begin() is as follows:

esp_err_t SPI::begin(int mosi_io_num, int miso_io_num, int sclk_io_num, int max_transfer_sz) {  
    spi_bus_config_t config; 
    config.mosi_io_num = mosi_io_num;  
    config.miso_io_num = miso_io_num;  
    config.sclk_io_num = sclk_io_num;  
    config.quadwp_io_num = -1;  // -1 not used  
    config.quadhd_io_num = -1;  // -1 not used  
    config.max_transfer_sz = max_transfer_sz;  
    return spi_bus_initialize(host, &config, 0);  // 0 DMA not used  
}

It looks like you can set max_transfer_sz, but then it calls spi_bus_initialize with 0 for DMA. I was wondering if there was any easy way to set the DMA using the functions, whether that would be added in the future, or if it could be manually added?

Sincerely,
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant