comparison loadtools/ltexit.c @ 574:aba969153d20

loadtools code: removed provisions for special GTA02 AP build
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 02 Feb 2020 19:37:50 +0000
parents 96332d875fc9
children
comparison
equal deleted inserted replaced
573:b22cc34b6fc9 574:aba969153d20
9 #include <stdlib.h> 9 #include <stdlib.h>
10 10
11 static void 11 static void
12 exit_bare(rc) 12 exit_bare(rc)
13 { 13 {
14 exit(rc);
15 }
16
17 static void
18 exit_gta02_cutpwr(rc)
19 {
20 #ifdef GTA0x_AP_BUILD
21 set_gta_modem_power_ctrl(0);
22 #endif
23 exit(rc); 14 exit(rc);
24 } 15 }
25 16
26 static void 17 static void
27 exit_iotaoff(rc) 18 exit_iotaoff(rc)
48 static struct kwtab { 39 static struct kwtab {
49 char *kw; 40 char *kw;
50 void (*func)(); 41 void (*func)();
51 } exit_modes[] = { 42 } exit_modes[] = {
52 {"bare", exit_bare}, 43 {"bare", exit_bare},
53 {"gta02-cutpwr", exit_gta02_cutpwr},
54 {"iota-off", exit_iotaoff}, 44 {"iota-off", exit_iotaoff},
55 {"jump0", exit_jump0}, 45 {"jump0", exit_jump0},
46 /* backward compat with old gta02.config */
47 {"gta02-cutpwr", exit_iotaoff},
56 {0, 0} 48 {0, 0}
57 }; 49 };
58 50
59 cmd_exit(argc, argv) 51 cmd_exit(argc, argv)
60 char **argv; 52 char **argv;