|
|
|
|
|
|
|
|
update_responsibility = update_setup(); |
|
|
update_responsibility = update_setup(); |
|
|
dma.enable(); |
|
|
dma.enable(); |
|
|
dma.attachInterrupt(isr); |
|
|
dma.attachInterrupt(isr); |
|
|
pinMode(13, OUTPUT); |
|
|
|
|
|
|
|
|
//pinMode(13, OUTPUT); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void AudioInputI2S::isr(void) |
|
|
void AudioInputI2S::isr(void) |
|
|
|
|
|
|
|
|
int16_t *dest_left, *dest_right; |
|
|
int16_t *dest_left, *dest_right; |
|
|
audio_block_t *left, *right; |
|
|
audio_block_t *left, *right; |
|
|
|
|
|
|
|
|
digitalWriteFast(13, HIGH); |
|
|
|
|
|
|
|
|
//digitalWriteFast(13, HIGH); |
|
|
#if defined(KINETISK) || defined(__IMXRT1052__) || defined(__IMXRT1062__) |
|
|
#if defined(KINETISK) || defined(__IMXRT1052__) || defined(__IMXRT1062__) |
|
|
daddr = (uint32_t)(dma.TCD->DADDR); |
|
|
daddr = (uint32_t)(dma.TCD->DADDR); |
|
|
#endif |
|
|
#endif |
|
|
|
|
|
|
|
|
} while (src < end); |
|
|
} while (src < end); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
digitalWriteFast(13, LOW); |
|
|
|
|
|
|
|
|
//digitalWriteFast(13, LOW); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|