# HG changeset patch # User Michael Spacefalcon # Date 1376975685 0 # Node ID 6f8d3771aa6cfb1840eb0c912520026d748716fb # Parent ccc5161848c7d710a75cb01643c2ef80cb5e79ce loadtools for GTA0x AP: GTA02 modem power-off implemented diff -r ccc5161848c7 -r 6f8d3771aa6c loadtools/ltexit.c --- a/loadtools/ltexit.c Tue Aug 20 04:51:15 2013 +0000 +++ b/loadtools/ltexit.c Tue Aug 20 05:14:45 2013 +0000 @@ -15,6 +15,15 @@ } static void +exit_gta02_cutpwr() +{ +#ifdef GTA0x_AP_BUILD + set_gta_modem_power_ctrl(0); +#endif + exit(0); +} + +static void exit_jump0() { static char *jump0_argv[3] = {"jump", "0", 0}; @@ -31,6 +40,7 @@ void (*func)(); } exit_modes[] = { {"bare", exit_bare}, + {"gta02-cutpwr", exit_gta02_cutpwr}, {"jump0", exit_jump0}, {0, 0} }; diff -r ccc5161848c7 -r 6f8d3771aa6c loadtools/scripts/gta02.config --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/loadtools/scripts/gta02.config Tue Aug 20 05:14:45 2013 +0000 @@ -0,0 +1,6 @@ +# If one is running fc-loadtool from inside the GTA02 (i.e., from the AP, +# as opposed to an external host connected via the headset jack), the +# following setting will cause the fc-loadtool utility to power the modem off +# fully upon exit. + +exit-mode gta02-cutpwr