From 76690c818df0a3f2d07dcc0ffb12042588583fcc Mon Sep 17 00:00:00 2001 From: Vergil Wong Date: Tue, 7 May 2024 10:57:57 +0800 Subject: [PATCH] Fix: xcc treats an undefined macro as 0 by default --- lib_xua/src/core/ports/audioports.xc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib_xua/src/core/ports/audioports.xc b/lib_xua/src/core/ports/audioports.xc index ca6d16da..2dcba323 100644 --- a/lib_xua/src/core/ports/audioports.xc +++ b/lib_xua/src/core/ports/audioports.xc @@ -72,6 +72,9 @@ void ConfigAudioPorts( if(!isnull(p_lrclk)) { + #ifndef I2S_TDM_LRCLK_EDGES + #define I2S_TDM_LRCLK_EDGES 1 + #endif /* Clock LR clock from bit clock-block */ #if((XUA_PCM_FORMAT == XUA_PCM_FORMAT_TDM)&&(I2S_TDM_LRCLK_EDGES==0)) set_port_inv(p_lrclk);//反向lrclk的输出