Update esp32_i2s_parallel_dma.cpp

This commit is contained in:
mrfaptastic 2023-03-10 00:20:17 +00:00 committed by GitHub
parent c083b94ac5
commit 862b4d2f22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -614,6 +614,9 @@ static void IRAM_ATTR irq_hndlr(void* arg) { // if we use I2S1 (default)
void Bus_Parallel16::flip_dma_output_buffer(int &current_back_buffer_id) // pass by reference so we can change in main matrixpanel class void Bus_Parallel16::flip_dma_output_buffer(int &current_back_buffer_id) // pass by reference so we can change in main matrixpanel class
{ {
// Setup interrupt handler which is focussed only on the (page 322 of Tech. Ref. Manual)
// "I2S_OUT_EOF_INT: Triggered when rxlink has finished sending a packet" (when dma linked list with eof = 1 is hit)
//_dev->int_ena.out_eof = 1;
_dev->int_ena.out_eof = 1; // enable interrupt _dev->int_ena.out_eof = 1; // enable interrupt
if ( current_back_buffer_id == 1) { if ( current_back_buffer_id == 1) {