feat: 添加LMK04828锁定状态的回读

This commit is contained in:
2025-06-05 16:52:31 +08:00
parent 7dc59a4b46
commit 0d6a5491ad
3 changed files with 31 additions and 6 deletions
+8 -4
View File
@@ -104,13 +104,17 @@ static PHY_CONFIG phyConfig = {
.rxBramId = PHY_RXBUFF_BRAM_DEVICE_ID,
#ifdef HSJL_GE // Zynq MPSoC (Zynq UltraScale+)
.hwSysmonId = PHY_HW_SYSMON_DEVICE_ID,
#else
.hwXadcId = PHY_HW_XADC_DEVICE_ID,
#endif
.get_clk_state = NULL,
.get_clk_state = Hardware_GetLMK04828LockStatus,
.get_ad_lock_state = NULL,
.get_ad0_temp = NULL,
.get_ad1_temp = NULL
#else
.hwXadcId = PHY_HW_XADC_DEVICE_ID,
.get_clk_state = Hardware_GetAD9528LockStatus,
.get_ad_lock_state = Hardware_GetAD9361LockStatus,
.get_ad0_temp = Hardware_GetAD9361Temp_1,
.get_ad1_temp = Hardware_GetAD9361Temp_2
#endif
};
TMC_CONFIG tmcConfig = {