Skip to content

Commit

Permalink
Merge pull request RIOT-OS#14569 from fjmolinas/pr_tests_trickle_msg_…
Browse files Browse the repository at this point in the history
…queue

tests/trickle: add message queue
  • Loading branch information
cgundogan authored Jul 21, 2020
2 parents ec48713 + 194d319 commit 43d2de0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/trickle/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
#define FIRST_ROUND (5)
#define SECOND_ROUND (12)

#define MAIN_QUEUE_SIZE (2)
static msg_t _main_msg_queue[MAIN_QUEUE_SIZE];

static uint32_t old_t = 0;
static bool error = false;

Expand Down Expand Up @@ -63,6 +66,8 @@ int main(void)
msg_t msg;
unsigned counter = 0;

msg_init_queue(_main_msg_queue, MAIN_QUEUE_SIZE);

trickle_start(sched_active_pid, &trickle, TRICKLE_MSG, TR_IMIN,
TR_IDOUBLINGS, TR_REDCONST);

Expand Down

0 comments on commit 43d2de0

Please sign in to comment.