zephyr/tests/benchmarks/app_kernel/src/sema_r.c
Daniel Leung 8f7f62869a tests: remove @return doc for void functions
For functions returning nothing, there is no need to document
with @return, as Doxgen complains about "documented empty
return type of ...".

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
2022-01-12 16:02:16 -05:00

35 lines
499 B
C

/* sema_r.c */
/*
* Copyright (c) 1997-2010, 2013-2014 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "receiver.h"
#include "master.h"
#ifdef SEMA_BENCH
/* semaphore signal speed test */
/**
*
* @brief Receive task (Wait task)
*
*/
void waittask(void)
{
int i;
for (i = 0; i < NR_OF_SEMA_RUNS; i++) {
k_sem_take(&SEM1, K_FOREVER);
}
for (i = 0; i < NR_OF_SEMA_RUNS; i++) {
k_sem_take(&SEM1, K_MSEC(SEMA_WAIT_TIME));
}
}
#endif /* SEMA_BENCH */