You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
In SPIBus.cpp, the code for begin() is as follows:
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!
The text was updated successfully, but these errors were encountered: