]> rtime.felk.cvut.cz Git - can-benchmark.git/blob - rtems/gw/cangw/helpers.h
Change the cron script (btw. we are now triggered by systemd timers)
[can-benchmark.git] / rtems / gw / cangw / helpers.h
1 #ifndef __HELPERS_H_
2 #define __HELPERS_H_
3
4 int start_can(int argc, char** argv);
5 int end_can(int argc, char** argv);
6 int print_clocks(int argc, char** argv);
7 int print_can_totals(int argc, char** argv);
8 int start_net(int argc, char** argv);
9 int show_net(int argc, char** argv);
10 int start_load(int argc, char** argv);
11 int stop_load(int argc, char** argv);
12
13 /* chain of shell command descriptors */
14 static rtems_shell_cmd_t shell_command_stop_load = {
15     "stop_load", /* name */
16     "stops cpu loading threads", /* usage */
17     "user", /* topic */
18     stop_load, /* command */
19     NULL, /* alias */
20     NULL /* next */
21 };
22 static rtems_shell_cmd_t shell_command_start_load = {
23     "start_load", /* name */
24     "starts cpu loading threads", /* usage */
25     "user", /* topic */
26     start_load, /* command */
27     NULL, /* alias */
28     &shell_command_stop_load /* next */
29 };
30 static rtems_shell_cmd_t shell_command_start_net = {
31     "startNET", /* name */
32     "starts ethernet driver", /* usage */
33     "user", /* topic */
34     start_net, /* command */
35     NULL, /* alias */
36     &shell_command_start_load /* next */
37 };
38 static rtems_shell_cmd_t shell_command_stop_gw = {
39     "stopGW", /* name */
40     "stops CAN gateway", /* usage */
41     "user", /* topic */
42     end_can, /* command */
43     NULL, /* alias */
44     &shell_command_start_net /* next */
45 };
46 static rtems_shell_cmd_t shell_command_start_gw = {
47     "startGW", /* name */
48     "starts CAN gateway", /* usage */
49     "user", /* topic */
50     start_can, /* command */
51     NULL, /* alias */
52     &shell_command_stop_gw /* next */
53 };
54 static rtems_shell_cmd_t shell_command_print_net = {
55     "show_net", /* name */
56     "shows some debug information about bsdnet", /* usage */
57     "user", /* topic */
58     show_net, /* command */
59     NULL, /* alias */
60     &shell_command_start_gw /* next */
61 };
62 static rtems_shell_cmd_t shell_command_print_clocks = {
63     "print_clocks", /* name */
64     "prints clock as taken from uboot", /* usage */
65     "user", /* topic */
66     print_clocks, /* command */
67     NULL, /* alias */
68     &shell_command_print_net /* next */
69 };
70 static rtems_shell_cmd_t shell_command_print_can_totals = {
71     "printcan", /* name */
72     "prints can stats", /* usage */
73     "user", /* topic */
74     print_can_totals, /* command */
75     NULL, /* alias */
76     &shell_command_print_clocks /* next */
77 };
78
79
80 #endif