feat: 修改聆听建网逻辑, 增加建网帧接收控制

This commit is contained in:
2025-05-26 14:10:01 +08:00
parent 652d2b220b
commit 8dedb125ae
6 changed files with 178 additions and 20 deletions
+6 -2
View File
@@ -407,9 +407,13 @@ int32_t Phy_SetAntIndex(PHY_INST *instPtr, PHY_ANT_INDEX antIndex)
return EPARAM;
}
DBG_INFO("Set new antenna index: %" PRId8 "\n", antIndex);
instPtr->antIndex.next = antIndex;
Phy_SetTxAntIndex(instPtr, antIndex);
Phy_SetRxAntIndex(instPtr, antIndex);
instPtr->antIndex.last = instPtr->antIndex.curr;
instPtr->antIndex.curr = instPtr->antIndex.next;
instPtr->antIndex.next = antIndex;
return SUCCESS;
}
@@ -424,4 +428,4 @@ inline size_t Phy_GetNextAntIndex(PHY_INST *instPtr)
/** @} PhysicalLayer_AntennaControl*/
/** @} PhysicalLayer*/
/** @} PhysicalLayer*/
+1 -1
View File
@@ -24,12 +24,12 @@
#include "common.h"
#ifndef EMULATION
#include "xbram.h"
#include "../config/app_config.h"
#ifdef HSJL_GE // Zynq MPSoC (Zynq UltraScale+)
#include "xsysmon.h"
#else
#include "xadcps.h"
#endif
#include "../config/app_config.h"
#endif
#include "../../system_monitor.h"
#include "../../time_ctrl/time_ctrl.h"