DmacDesc *next;
DmacDesc *prev;
+bool error = false;
+uint32_t cfg;
+uint32_t ctrla;
+uint32_t ctrlb;
+
static int16_t *sample_buff;
static size_t next_idx = 0;
static size_t chunk_size = 0;
event_wait(&data_ready);
}
-bool error = false;
-uint32_t cfg;
-uint32_t ctrla;
-uint32_t ctrlb;
-
static void i2s_dmac_irq(uint32_t status)
{
I2S_STROBE_ON();
next_idx += chunk_size;
}
- dmac_configureDmaCfgLLI(I2S_DMAC_CH, &lli0, cfg);
+ dmac_setLLITransfer(I2S_DMAC_CH, &lli0, cfg);
if (dmac_start(I2S_DMAC_CH) < 0)
{
error = false;
SSC_CR = BV(SSC_TXEN);
- PIOA_CODR = BV(13);
+ I2S_STROBE_OFF();
while (1)
{