This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

long UserInput() 函数问题



这个函数是干嘛的???没有找到相关的文章。

我调试Tcp_socket例程,想改变,但是这个函数我只能放在while(1)死循环前面才能给手机通信,如果放在while(1)里面就不会有反应。

void UserInput()  //修改后的,只保留BsdTcpClient函数部分
{
int lRetVal;

UART_PRINT("Run iperf command \"iperf.exe -s -i 1 -t 100\" and press " "Enter\n\r");

lRetVal = BsdTcpClient(g_uiPortNum);
UART_PRINT("\n\r");

}

void main();  //省略了部分只上关键的,UserInput()只能放在外面就只执行一次,不能放在while(1)里面,就不执行了

{

       UserInput();

       while(1)
       {
          _SlNonOsMainLoopTask();

       }

}