diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-28 13:11:22 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2017-03-29 07:29:01 +0200 |
commit | 002768254683ffe4a6614fe35254cf9dab88c6d0 (patch) | |
tree | 22eb9805e2dd702a0770c98320129488dd9e26e8 /testsuites/benchmarks/whetstone/init.c | |
parent | arm: Optimize context switch (diff) | |
download | rtems-002768254683ffe4a6614fe35254cf9dab88c6d0.tar.bz2 |
benchmarks: Add benchmark templates
Update #2958.
Diffstat (limited to 'testsuites/benchmarks/whetstone/init.c')
-rw-r--r-- | testsuites/benchmarks/whetstone/init.c | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/testsuites/benchmarks/whetstone/init.c b/testsuites/benchmarks/whetstone/init.c new file mode 100644 index 0000000000..075faccb19 --- /dev/null +++ b/testsuites/benchmarks/whetstone/init.c @@ -0,0 +1,48 @@ +/* + * Copyright (c) 2017 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Dornierstr. 4 + * 82178 Puchheim + * Germany + * <rtems@embedded-brains.de> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.org/license/LICENSE. + */ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include "tmacros.h" + +const char rtems_test_name[] = "WHETSTONE"; + +static void test(void) +{ +} + +static void Init(rtems_task_argument arg) +{ + TEST_BEGIN(); + + test(); + + TEST_END(); + rtems_test_exit(0); +} + +#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER +#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER + +#define CONFIGURE_MAXIMUM_TASKS 1 + +#define CONFIGURE_INITIAL_EXTENSIONS RTEMS_TEST_INITIAL_EXTENSION + +#define CONFIGURE_RTEMS_INIT_TASKS_TABLE + +#define CONFIGURE_INIT + +#include <rtems/confdefs.h> |