comparison loadtools/hwparam.c @ 28:768a3d012931

loadtool: default exit mode setting implemented
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Sat, 04 May 2013 06:39:05 +0000
parents 67a39d8914a8
children 278052b6afda
comparison
equal deleted inserted replaced
27:ae6294b8a015 28:768a3d012931
9 #include <string.h> 9 #include <string.h>
10 #include <strings.h> 10 #include <strings.h>
11 #include <stdlib.h> 11 #include <stdlib.h>
12 12
13 extern char default_helpers_dir[]; 13 extern char default_helpers_dir[];
14
15 extern void set_default_exit_mode();
14 16
15 char hw_init_script[128]; 17 char hw_init_script[128];
16 18
17 static void 19 static void
18 handle_init_script(arg, filename_for_errs, lineno_for_errs) 20 handle_init_script(arg, filename_for_errs, lineno_for_errs)
102 104
103 static struct cmdtab { 105 static struct cmdtab {
104 char *name; 106 char *name;
105 void (*func)(); 107 void (*func)();
106 } cmdtab[] = { 108 } cmdtab[] = {
109 {"exit-mode", set_default_exit_mode},
107 {"init-script", handle_init_script}, 110 {"init-script", handle_init_script},
108 {"pll-config", handle_pll_config}, 111 {"pll-config", handle_pll_config},
109 {"rhea-cntl", handle_rhea_cntl}, 112 {"rhea-cntl", handle_rhea_cntl},
110 {0, 0} 113 {0, 0}
111 }; 114 };