1 /* msgq_r.c */
2 
3 /*
4  * Copyright (c) 1997-2010, 2013-2014 Wind River Systems, Inc.
5  *
6  * SPDX-License-Identifier: Apache-2.0
7  */
8 
9 #include "receiver.h"
10 #include "master.h"
11 
12 /* message queue transfer speed test */
13 
14 static BENCH_BMEM char buffer[192];
15 
16 /**
17  * @brief Data receive task
18  */
dequtask(void)19 void dequtask(void)
20 {
21 	int i;
22 
23 	for (i = 0; i < NR_OF_MSGQ_RUNS; i++) {
24 		k_msgq_get(&DEMOQX1, buffer, K_FOREVER);
25 	}
26 
27 	for (i = 0; i < NR_OF_MSGQ_RUNS; i++) {
28 		k_msgq_get(&DEMOQX4, buffer, K_FOREVER);
29 	}
30 
31 	for (i = 0; i < NR_OF_MSGQ_RUNS; i++) {
32 		k_msgq_get(&DEMOQX192, buffer, K_FOREVER);
33 	}
34 }
35