omit redundant api
This commit is contained in:
@@ -289,16 +289,3 @@ void SysMonitor_GetHardwareStatus(HWSTATE *state)
|
|||||||
memcpy(state, &(sysMonitorInst->hwState[buffIndx]), sizeof(HWSTATE));
|
memcpy(state, &(sysMonitorInst->hwState[buffIndx]), sizeof(HWSTATE));
|
||||||
sysMonitorInst->hwStateCtrl.rBusy = buffIndex_old;
|
sysMonitorInst->hwStateCtrl.rBusy = buffIndex_old;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// @System log
|
|
||||||
/**
|
|
||||||
* Get the latest system running log.
|
|
||||||
*/
|
|
||||||
void SysMonitor_GetSyslog(SYSLOG *log)
|
|
||||||
{
|
|
||||||
ASSERT(sysMonitorInst != NULL);
|
|
||||||
SysMonitor_GetLinklayerLog(&(log->linkLog));
|
|
||||||
SysMonitor_GetPhysicalLayerLog(&(log->phyLog));
|
|
||||||
SysMonitor_GetHardwareStatus(&(log->hwState));
|
|
||||||
}
|
|
||||||
@@ -141,18 +141,6 @@ typedef struct __attribute__((packed))
|
|||||||
uint8_t dummy;
|
uint8_t dummy;
|
||||||
} HWSTATE;
|
} HWSTATE;
|
||||||
|
|
||||||
typedef struct
|
|
||||||
{
|
|
||||||
// Link layer log
|
|
||||||
LINKLOG linkLog;
|
|
||||||
|
|
||||||
// Physical layer log
|
|
||||||
PHYLOG phyLog;
|
|
||||||
|
|
||||||
// Hardware status
|
|
||||||
HWSTATE hwState;
|
|
||||||
} SYSLOG;
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
uint32_t dataId;
|
uint32_t dataId;
|
||||||
@@ -177,6 +165,4 @@ void SysMonitor_GetLinklayerLog(LINKLOG *log);
|
|||||||
void SysMonitor_GetPhysicalLayerLog(PHYLOG *log);
|
void SysMonitor_GetPhysicalLayerLog(PHYLOG *log);
|
||||||
void SysMonitor_GetHardwareStatus(HWSTATE *state);
|
void SysMonitor_GetHardwareStatus(HWSTATE *state);
|
||||||
|
|
||||||
void SysMonitor_GetSyslog(SYSLOG *log);
|
|
||||||
|
|
||||||
#endif //__SYSTEM_MONITOR_H_
|
#endif //__SYSTEM_MONITOR_H_
|
||||||
|
|||||||
@@ -36,7 +36,10 @@ typedef struct
|
|||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
SYSBUS_CONFIG config;
|
SYSBUS_CONFIG config;
|
||||||
SYSLOG sysLog;
|
SYSBUSLOG sysbusLog; // systembus log
|
||||||
|
LINKLOG linkLog; // Link layer log
|
||||||
|
PHYLOG phyLog; // Physical layer log
|
||||||
|
HWSTATE hwState; // Hardware status
|
||||||
SYSBUS_UART *uartInst;
|
SYSBUS_UART *uartInst;
|
||||||
CIRC_QUEUE *txQueue;
|
CIRC_QUEUE *txQueue;
|
||||||
CIRC_QUEUE *rxQueue;
|
CIRC_QUEUE *rxQueue;
|
||||||
|
|||||||
Reference in New Issue
Block a user