mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-01 18:29:16 +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
|
#define CHECK_TASK_RESUMES
|
||||||
#endif
|
#endif
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#define CHECK_TASK_RESUMES
|
// #define COND_SIGNALING
|
||||||
|
// #define CHECK_TASK_RESUMES
|
||||||
#define RUNNING_THREAD_MUTEX
|
#define RUNNING_THREAD_MUTEX
|
||||||
|
#define TICK_SIGNAL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -390,7 +392,7 @@ portLONG lIndex;
|
|||||||
struct sigaction sigtick;
|
struct sigaction sigtick;
|
||||||
sigtick.sa_flags = 0;
|
sigtick.sa_flags = 0;
|
||||||
sigtick.sa_handler = vPortSystemTickHandler;
|
sigtick.sa_handler = vPortSystemTickHandler;
|
||||||
sigemptyset( &sigtick.sa_mask );
|
sigfillset( &sigtick.sa_mask );
|
||||||
assert ( 0 == sigaction( SIG_TICK, &sigtick, NULL ) );
|
assert ( 0 == sigaction( SIG_TICK, &sigtick, NULL ) );
|
||||||
|
|
||||||
/* Set-up the timer interrupt. */
|
/* Set-up the timer interrupt. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user