1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 22:43:50 +01:00

Merge pull request #4619 from OlegHahm/tests_msg_snd_rcv_prios

tests: swap thread priorities in msg_snd_rcv test
This commit is contained in:
Cenk Gündoğan 2016-01-08 16:14:44 +01:00
commit c35cf98e19
2 changed files with 2 additions and 6 deletions

View File

@ -1,8 +1,6 @@
# name of your application
APPLICATION = msg_send_receive
USEMODULE += xtimer
include ../Makefile.tests_common
include $(RIOTBASE)/Makefile.include

View File

@ -24,7 +24,6 @@
#include "cpu_conf.h"
#include "thread.h"
#include "xtimer.h"
#define THREAD1_STACKSIZE (THREAD_STACKSIZE_MAIN)
#define THREAD2_STACKSIZE (THREAD_STACKSIZE_MAIN)
@ -58,7 +57,6 @@ static void *thread1(void *args)
success = 0;
break;
}
xtimer_usleep(200);
}
if (success) {
@ -96,9 +94,9 @@ static void *thread2(void *args)
int main(void)
{
thread2_pid = thread_create(thread2_stack, THREAD2_STACKSIZE, THREAD_PRIORITY_MAIN - 1,
thread2_pid = thread_create(thread2_stack, THREAD2_STACKSIZE, THREAD_PRIORITY_MAIN - 2,
0, thread2, NULL, "thread2");
thread1_pid = thread_create(thread1_stack, THREAD1_STACKSIZE, THREAD_PRIORITY_MAIN - 2,
thread1_pid = thread_create(thread1_stack, THREAD1_STACKSIZE, THREAD_PRIORITY_MAIN - 1,
0, thread1, NULL, "thread1");
return 0;
}