Skip to content

Commit 259c9fb

Browse files
committed
修复小智播放问题
1 parent 51997f4 commit 259c9fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

libraries/HAL_Drivers/drv_i2s.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ void ifx_set_samplerate(struct rt_audio_configure audio_config)
182182
break;
183183
}
184184
}
185-
185+
#if defined(BSP_USING_XiaoZhi)
186+
Cy_SysClk_PeriPclkSetFracDivider((en_clk_dst_t)CYBSP_TDM_CONTROLLER_0_CLK_DIV_GRP_NUM, CY_SYSCLK_DIV_16_5_BIT, 0U, 15U, 0U);
187+
#endif
186188
Cy_SysClk_PeriPclkEnableDivider((en_clk_dst_t)CYBSP_TDM_CONTROLLER_0_CLK_DIV_GRP_NUM, CY_SYSCLK_DIV_16_5_BIT, 0U);
187189
}
188190

0 commit comments

Comments
 (0)