瀏覽代碼

Merge pull request #308 from Defragster/patch-2

#if define and assign of conditional var to stop compile warning
dds
Paul Stoffregen 5 年之前
父節點
當前提交
c4c34b7240
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 6 行新增2 行删除
  1. +6
    -2
      output_tdm.cpp

+ 6
- 2
output_tdm.cpp 查看文件

@@ -125,7 +125,7 @@ static void memcpy_tdm_tx(uint32_t *dest, const uint32_t *src1, const uint32_t *

void AudioOutputTDM::isr(void)
{
uint32_t *dest, *dc;
uint32_t *dest;
const uint32_t *src1, *src2;
uint32_t i, saddr;

@@ -141,7 +141,11 @@ void AudioOutputTDM::isr(void)
dest = tdm_tx_buffer;
}
if (update_responsibility) AudioStream::update_all();
dc = dest;

#if IMXRT_CACHE_ENABLED >= 2
uint32_t *dc = dest;
#endif
for (i=0; i < 16; i += 2) {
src1 = block_input[i] ? (uint32_t *)(block_input[i]->data) : zeros;
src2 = block_input[i+1] ? (uint32_t *)(block_input[i+1]->data) : zeros;

Loading…
取消
儲存