adapted to new hardware status refresh api

This commit is contained in:
Gatsby Van
2024-01-31 16:08:16 +08:00
parent 2f63058882
commit 4d5a4ec0da
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -360,7 +360,9 @@ void ScuTimer_IntrHandler(void *context)
if (XScuTimer_IsExpired((XScuTimer *)xdesc->instance))
{
// Update log
Phy_UpdateHwSate(phyInstPtr);
const HWSTATE *newHwState;
newHwState = Phy_RefreshHwSate(phyInstPtr);
SysMonitor_UpdateHardwareStatus(newHwState);
XScuTimer_ClearInterruptStatus((XScuTimer *)xdesc->instance);
}
else
+3 -1
View File
@@ -361,7 +361,9 @@ void ScuTimer_IntrHandler(void *context)
if (XScuTimer_IsExpired((XScuTimer *)xdesc->instance))
{
// Update log
Phy_UpdateHwSate(phyInstPtr);
const HWSTATE *newHwState;
newHwState = Phy_RefreshHwSate(phyInstPtr);
SysMonitor_UpdateHardwareStatus(newHwState);
XScuTimer_ClearInterruptStatus((XScuTimer *)xdesc->instance);
}
else