*add clock and ad status update api

This commit is contained in:
Gatsby Van
2024-02-20 11:22:56 +08:00
parent 2c45d1e5b8
commit c7898003c0
2 changed files with 11 additions and 1 deletions
+5 -1
View File
@@ -101,7 +101,11 @@ static PHY_CONFIG phyConfig = {
.antBramId = PHY_ANTCONFIG_BRAM_DEVICE_ID,
.txBramId = PHY_TXBUFF_BRAM_DEVICE_ID,
.rxBramId = PHY_RXBUFF_BRAM_DEVICE_ID,
.hwXadcId = PHY_HW_XADC_DEVICE_ID
.hwXadcId = PHY_HW_XADC_DEVICE_ID,
.get_clk_state = NULL,
.get_ad_lock_state = NULL,
.get_ad0_temp = NULL,
.get_ad1_temp = NULL
};
TMC_CONFIG tmcConfig = {
@@ -183,6 +183,12 @@ typedef struct
uint32_t antBramId;
uint32_t hwXadcId;
uintptr_t baseAddr;
#ifndef EMULATION
uint8_t (*get_clk_state)(void);
uint8_t (*get_ad_lock_state)(void);
uint8_t (*get_ad0_temp)(void);
uint8_t (*get_ad1_temp)(void);
#endif
} PHY_CONFIG;
typedef struct