comparison loadtools/romload.c @ 17:24b88c119465

loadtools: hw parameter file reading implemented
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 03 May 2013 22:55:28 +0000
parents e2e80a09338e
children 54392d1ea474
comparison
equal deleted inserted replaced
16:4c78fc688127 17:24b88c119465
63 if (i < 2 || i > 500) { 63 if (i < 2 || i > 500) {
64 fprintf(stderr, "invalid -i argument specified\n"); 64 fprintf(stderr, "invalid -i argument specified\n");
65 exit(1); 65 exit(1);
66 } 66 }
67 beacon_interval = i; 67 beacon_interval = i;
68 }
69
70 /*
71 * The following functions alter some of the parameters sent to the
72 * boot ROM in the <p command.
73 */
74 set_romload_pll_conf(byte)
75 {
76 param_cmd[3] = byte;
77 }
78
79 set_romload_rhea_cntl(byte)
80 {
81 param_cmd[6] = byte;
68 } 82 }
69 83
70 static int 84 static int
71 expect_response(timeout) 85 expect_response(timeout)
72 { 86 {