Searched refs:xMbPortConfig (Results 1 – 1 of 1) sorted by relevance
80 static MbPortConfig_t xMbPortConfig; variable108 xMbPortConfig.pxMbSlaveInfo = calloc(MB_TCP_PORT_MAX_CONN, sizeof(MbSlaveInfo_t*)); in xMBMasterTCPPortInit()109 if (!xMbPortConfig.pxMbSlaveInfo) { in xMBMasterTCPPortInit()113 for(int idx = 0; idx < MB_TCP_PORT_MAX_CONN; xMbPortConfig.pxMbSlaveInfo[idx] = NULL, idx++); in xMBMasterTCPPortInit()115 xMbPortConfig.xConnectQueue = NULL; in xMBMasterTCPPortInit()116 xMbPortConfig.usPort = usTCPPort; in xMBMasterTCPPortInit()117 xMbPortConfig.usMbSlaveInfoCount = 0; in xMBMasterTCPPortInit()118 xMbPortConfig.ucCurSlaveIndex = 1; in xMBMasterTCPPortInit()119 xMbPortConfig.pxMbSlaveCurrInfo = NULL; in xMBMasterTCPPortInit()121 xMbPortConfig.xConnectQueue = xQueueCreate(2, sizeof(MbSlaveAddrInfo_t)); in xMBMasterTCPPortInit()[all …]