change hardware status refresh api
This commit is contained in:
@@ -360,10 +360,8 @@ void ScuTimer_IntrHandler(void *context)
|
||||
xdesc = (struct xil_timer_desc *)(logTmPtr->extra);
|
||||
if (XScuTimer_IsExpired((XScuTimer *)xdesc->instance))
|
||||
{
|
||||
// Update log
|
||||
const HWSTATE *newHwState;
|
||||
newHwState = Phy_RefreshHwSate(phyInstPtr);
|
||||
SysMonitor_UpdateHardwareStatus(newHwState);
|
||||
// Refresh log
|
||||
Phy_RefreshHwSate(phyInstPtr);
|
||||
XScuTimer_ClearInterruptStatus((XScuTimer *)xdesc->instance);
|
||||
}
|
||||
else
|
||||
@@ -376,7 +374,7 @@ void ScuTimer_IntrHandler(void *context)
|
||||
/**
|
||||
* @brief Hardware_SwitchFreq
|
||||
*
|
||||
* @param dev
|
||||
* @param devSysMonitor_UpdateHardwareStatus(newHwState);
|
||||
* @param freq
|
||||
*
|
||||
* @return None.
|
||||
|
||||
Reference in New Issue
Block a user