forked from gatsby/df_datalink
adapted to new hardware status refresh api
This commit is contained in:
@@ -360,7 +360,9 @@ void ScuTimer_IntrHandler(void *context)
|
|||||||
if (XScuTimer_IsExpired((XScuTimer *)xdesc->instance))
|
if (XScuTimer_IsExpired((XScuTimer *)xdesc->instance))
|
||||||
{
|
{
|
||||||
// Update log
|
// Update log
|
||||||
Phy_UpdateHwSate(phyInstPtr);
|
const HWSTATE *newHwState;
|
||||||
|
newHwState = Phy_RefreshHwSate(phyInstPtr);
|
||||||
|
SysMonitor_UpdateHardwareStatus(newHwState);
|
||||||
XScuTimer_ClearInterruptStatus((XScuTimer *)xdesc->instance);
|
XScuTimer_ClearInterruptStatus((XScuTimer *)xdesc->instance);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -361,7 +361,9 @@ void ScuTimer_IntrHandler(void *context)
|
|||||||
if (XScuTimer_IsExpired((XScuTimer *)xdesc->instance))
|
if (XScuTimer_IsExpired((XScuTimer *)xdesc->instance))
|
||||||
{
|
{
|
||||||
// Update log
|
// Update log
|
||||||
Phy_UpdateHwSate(phyInstPtr);
|
const HWSTATE *newHwState;
|
||||||
|
newHwState = Phy_RefreshHwSate(phyInstPtr);
|
||||||
|
SysMonitor_UpdateHardwareStatus(newHwState);
|
||||||
XScuTimer_ClearInterruptStatus((XScuTimer *)xdesc->instance);
|
XScuTimer_ClearInterruptStatus((XScuTimer *)xdesc->instance);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user