The concentrator's example is this:
void TaskFunc()
{
EasyLink_receiveAsync();
while (1) {
if (Valid_Packet_Recv) {
EasyLink_receiveAsync();
}
if (Incalid_Packet_Recv) {
EasyLink_receiveAsync();
}
}
}
And now I need to redo a EasyLink_receiveAsync() when a user opration come, what my func is this:
void User_Func()
{
EasyLink_abort();
Semaphore_post(busyMutex);
asyncCmdHndl = EASYLINK_RF_CMD_HANDLE_INVALID;
EasyLink_receiveAsync();
}
Now I found it can't recv any packet after User_Func(),Is my opration wrong?