- \r
-
- rtems_shell_init("SHLL", RTEMS_MINIMUM_STACK_SIZE+0x1000,
- SHELL_TASK_PRIORITY, "/dev/console", 1, 0, NULL);
-
- rtems_shell_add_cmd("startGW", "app",
- "initialize can driver and startGW",
- start_can);
-
- rtems_shell_add_cmd("stopGW", "app",
- "stops GW",
- end_can);
-
- rtems_shell_add_cmd("printvar", "app",
- "prints info from vars",
- print_regs);\r
- \r
- rtems_shell_add_cmd("printcan", "app",\r
- "prints error rate from CANs",\r
- print_can_totals);
- \r
- rtems_shell_add_cmd("startNET", "app",\r
- "tries to start network adapter",\r
- start_net);\r
- \r
- rtems_shell_add_cmd("showNET", "app",\r
- "prints some diagnostic info from network adapter/driver",\r
- show_net);\r
+
+ /* Inits */
+#ifdef BENCH_BUILD
+ start_can(0, NULL);
+ start_net(0, NULL);
+#ifdef LOAD_BUILD
+ start_load(0, NULL);
+#endif
+#endif
+
+#ifndef BENCH_BUILD
+ rtems_shell_init(
+ "SHLL", /* task name */
+ RTEMS_MINIMUM_STACK_SIZE * 4, /* task stack size */
+ 100, /* task priority */
+ "/dev/console", /* device name */
+ true, /* run forever */
+ false, /* wait for shell to terminate */
+ NULL /* login check function, use NULL to disable a login check */
+ );
+#endif