Compare commits
3 commits
master
...
archive-2.
Author | SHA1 | Date | |
---|---|---|---|
|
736e1690fa | ||
|
ef2f5a4ccb | ||
|
6b86ae8c01 |
2 changed files with 4 additions and 4 deletions
|
@ -41,8 +41,8 @@ void setShiftCompleteCallback(callback f) {
|
|||
shiftCompleteCallback = f;
|
||||
}
|
||||
|
||||
volatile int previousBufferOutputLoopCount = 0;
|
||||
volatile bool previousBufferFree = true;
|
||||
volatile int DRAM_ATTR previousBufferOutputLoopCount = 0;
|
||||
volatile bool DRAM_ATTR previousBufferFree = true;
|
||||
|
||||
static void IRAM_ATTR irq_hndlr(void* arg) { // if we use I2S1 (default)
|
||||
|
||||
|
@ -433,7 +433,7 @@ void i2s_parallel_flip_to_buffer(i2s_port_t port, int buffer_id) {
|
|||
i2s_parallel_set_previous_buffer_not_free();
|
||||
}
|
||||
|
||||
bool i2s_parallel_is_previous_buffer_free() {
|
||||
bool IRAM_ATTR i2s_parallel_is_previous_buffer_free() {
|
||||
return previousBufferFree;
|
||||
}
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@ typedef struct {
|
|||
} i2s_parallel_state_t;
|
||||
|
||||
void i2s_parallel_flip_to_buffer(i2s_port_t port, int bufid);
|
||||
bool i2s_parallel_is_previous_buffer_free();
|
||||
bool IRAM_ATTR i2s_parallel_is_previous_buffer_free();
|
||||
void i2s_parallel_set_previous_buffer_not_free();
|
||||
|
||||
// Callback function for when whole length of DMA chain has been sent out.
|
||||
|
|
Loading…
Reference in a new issue