瀏覽代碼

Merge pull request #321 from FrankBoesing/patch-2

I2S2: Cache handling
dds
Paul Stoffregen 4 年之前
父節點
當前提交
bfcc6b022d
No account linked to committer's email address
共有 1 個文件被更改,包括 3 次插入5 次删除
  1. +3
    -5
      input_i2s2.cpp

+ 3
- 5
input_i2s2.cpp 查看文件

@@ -102,12 +102,10 @@ void AudioInputI2S2::isr(void)
dest_left = &(left->data[offset]);
dest_right = &(right->data[offset]);
AudioInputI2S2::block_offset = offset + AUDIO_BLOCK_SAMPLES/2;

#if IMXRT_CACHE_ENABLED >=1
arm_dcache_delete(src, sizeof(i2s_rx_buffer) / 2);
#endif
do {
//Serial.println(*src);
//n = *src++;
//*dest_left++ = (int16_t)n;
//*dest_right++ = (int16_t)(n >> 16);
*dest_left++ = *src++;
*dest_right++ = *src++;
} while (src < end);

Loading…
取消
儲存