Merge pull request #14569 from fjmolinas/pr_tests_trickle_msg_queue
tests/trickle: add message queue
This commit is contained in:
commit
43d2de0885
@ -31,6 +31,9 @@
|
|||||||
#define FIRST_ROUND (5)
|
#define FIRST_ROUND (5)
|
||||||
#define SECOND_ROUND (12)
|
#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 uint32_t old_t = 0;
|
||||||
static bool error = false;
|
static bool error = false;
|
||||||
|
|
||||||
@ -63,6 +66,8 @@ int main(void)
|
|||||||
msg_t msg;
|
msg_t msg;
|
||||||
unsigned counter = 0;
|
unsigned counter = 0;
|
||||||
|
|
||||||
|
msg_init_queue(_main_msg_queue, MAIN_QUEUE_SIZE);
|
||||||
|
|
||||||
trickle_start(sched_active_pid, &trickle, TRICKLE_MSG, TR_IMIN,
|
trickle_start(sched_active_pid, &trickle, TRICKLE_MSG, TR_IMIN,
|
||||||
TR_IDOUBLINGS, TR_REDCONST);
|
TR_IDOUBLINGS, TR_REDCONST);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user