if(len_1 != 0)
{
ret = WCHNET_SocketSend(SocketId[i], &uart_data_t[i].RX_buffer[uart_data_t[i].rx_read&(UART_RX_DMA_SIZE-1)], &len_1);
if (ret == 0)
{
uart_data_t[i].rx_read += len_1;
}
else
{
sprintf(debug,"eth send error\n");
tcp_send_strings(debug);
}
}
/* send the rest of the data(if any) at beginning of RX_buffer */
if( (len-len_1) != 0)
{
len_1 = len-len_1;
ret = WCHNET_SocketSend(SocketId[i], &uart_data_t[i].RX_buffer[0], &len_1);
if (ret == 0)
{
uart_data_t[i].rx_read += len_1;
}
else
{
sprintf(debug,"eth send error\n");
tcp_send_strings(debug);
}
}
/**********************************************/
使用WCHNET_SocketSend发送数据会出错,这个是为啥?
ret = 0x11
#define WCHNET_ERR_MEM 0x11 //Out of memory error
是这个错误,这个是为什么?