FreeCalypso > hg > freecalypso-sw
diff loadtools/romload.c @ 84:ccc5161848c7
loadtools: support building for GTA0x AP
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Tue, 20 Aug 2013 04:51:15 +0000 |
parents | f1df95eed62c |
children |
line wrap: on
line diff
--- a/loadtools/romload.c Mon Aug 19 05:16:34 2013 +0000 +++ b/loadtools/romload.c Tue Aug 20 04:51:15 2013 +0000 @@ -26,6 +26,9 @@ struct srecreader iramimage; struct baudrate *romload_baud_rate = baud_rate_table; /* 1st entry default */ +/* global var always defined, but does anything only for GTA0x_AP_BUILD */ +int gta_modem_poweron = 1; + static int beacon_interval = 13; /* in milliseconds */ static u_char beacon_cmd[2] = {'<', 'i'}; @@ -144,6 +147,10 @@ send_beacons() { printf("Sending beacons to %s\n", target_ttydev); +#ifdef GTA0x_AP_BUILD + if (gta_modem_poweron) + fork_gta_modem_poweron(); +#endif do write(target_fd, beacon_cmd, sizeof beacon_cmd); while (expect_response(beacon_interval) != 'i');