mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
Got the tick handler working on linux so it doesnt jump onto the wrong thread
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1072 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
4c4d1ca420
commit
0bc526a142
@ -87,8 +87,10 @@
|
||||
#define CHECK_TASK_RESUMES
|
||||
#endif
|
||||
#ifdef __linux__
|
||||
#define CHECK_TASK_RESUMES
|
||||
// #define COND_SIGNALING
|
||||
// #define CHECK_TASK_RESUMES
|
||||
#define RUNNING_THREAD_MUTEX
|
||||
#define TICK_SIGNAL
|
||||
#endif
|
||||
|
||||
|
||||
@ -390,7 +392,7 @@ portLONG lIndex;
|
||||
struct sigaction sigtick;
|
||||
sigtick.sa_flags = 0;
|
||||
sigtick.sa_handler = vPortSystemTickHandler;
|
||||
sigemptyset( &sigtick.sa_mask );
|
||||
sigfillset( &sigtick.sa_mask );
|
||||
assert ( 0 == sigaction( SIG_TICK, &sigtick, NULL ) );
|
||||
|
||||
/* Set-up the timer interrupt. */
|
||||
|
Loading…
Reference in New Issue
Block a user