From a289c84c8fb3d3e12f4bf7c161d6fad179f97b48 Mon Sep 17 00:00:00 2001 From: Gatsby Van Date: Wed, 24 Jan 2024 10:56:57 +0800 Subject: [PATCH] add emulation options. --- df_datalink_sp/src/networking/phy_layer/phy_layer.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/df_datalink_sp/src/networking/phy_layer/phy_layer.h b/df_datalink_sp/src/networking/phy_layer/phy_layer.h index 9e7308c..6edb163 100644 --- a/df_datalink_sp/src/networking/phy_layer/phy_layer.h +++ b/df_datalink_sp/src/networking/phy_layer/phy_layer.h @@ -26,10 +26,12 @@ /***************************** Include Files *********************************/ #include +#include "phy_reg.h" #include "common.h" +#ifndef EMULATION #include "xbram.h" #include "xadcps.h" -#include "phy_reg.h" +#endif #include "../../system_monitor.h" #include "../../time_ctrl/time_ctrl.h" /************************** Constant Definitions *****************************/ @@ -226,7 +228,9 @@ typedef struct uint32_t sendDataOffset; // antenna configuration bram offset (to implement ping-pong data flow) uint32_t antConfigOffset; // antenna configuration bram offset (to implement ping-pong data flow) PHY_ANT_CONFIG antConfig; // antenna configuration pointer +#ifndef EMULATION XAdcPs hwXadc; +#endif HWSTATE hwSate; } PHY_INST;