fix(systembus): add default init value.
This commit is contained in:
@@ -96,6 +96,10 @@ int SysbusPSUart_Init(SYSBUS_PSUART **instPtr, const SYSBUS_PSUART_CONFIG *confi
|
||||
if (NULL == (*instPtr)->hwConfig) {
|
||||
return FAILURE;
|
||||
}
|
||||
(*instPtr)->currTxMsg = 0;
|
||||
(*instPtr)->currRxMsg = 0;
|
||||
(*instPtr)->txCnt = 0;
|
||||
(*instPtr)->rxCnt = 0;
|
||||
(*instPtr)->txDone = false;
|
||||
(*instPtr)->rxDone = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user