| 150 | } |
| 151 | |
| 152 | void IRAM_ATTR i2sCallback(void*, i2s_event_type_t event) |
| 153 | { |
| 154 | // For this sample, process the data in task context |
| 155 | switch(event) { |
| 156 | case I2S_EVENT_TX_DONE: |
| 157 | System.queueCallback(fillBuffers); |
| 158 | callbackLatency.start(); |
| 159 | break; |
| 160 | case I2S_EVENT_RX_DONE: |
| 161 | System.queueCallback(checkReceive); |
| 162 | break; |
| 163 | default:; // ignore |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | void initialiseI2S() |
| 168 | { |
nothing calls this directly
no test coverage detected