pthread_create(Thread, NULL, ReceiveLoopPtr, (void*)port);
}
-void WaitReceiveTaskEnd(TASK_HANDLE Thread)
+void WaitReceiveTaskEnd(TASK_HANDLE *Thread)
{
- pthread_kill(Thread, SIGTERM);
- pthread_join(Thread, NULL);
+ pthread_kill(*Thread, SIGTERM);
+ pthread_join(*Thread, NULL);
}
#define maxval(a,b) ((a>b)?a:b)
// For use from CAN driver
void EnterMutex(void);
void LeaveMutex(void);
-void WaitReceiveTaskEnd(TASK_HANDLE);
+void WaitReceiveTaskEnd(TASK_HANDLE*);
// For use from application
void StartTimerLoop(TimerCallback_t init_callback);