view loadtools/ltpassthru.c @ 853:ae254ffeaec3

AT command interface works! The cause of the breakage was the same Nucleus API issue with NU_Create_Timer() which we encountered at the very beginning of this project with Riviera timers: the code in uartfax.c from TCS211 was passing 0 as the initial dummy value for the timer duration, and our FreeNucleus version doesn't like it. The fix is the same: pass 1 as the initial dummy value instead.
author Space Falcon <falcon@ivan.Harhan.ORG>
date Thu, 30 Apr 2015 01:46:26 +0000
parents aca1948e9713
children
line wrap: on
line source

/*
 * This module contains the loadtool_cmd_passthru() function,
 * which implements the simplest commands that pass directly
 * through to loadagent.
 */

#include <stdio.h>

loadtool_cmd_passthru(argc, argv)
	char **argv;
{
	if (tpinterf_make_cmd(argv) < 0) {
		fprintf(stderr, "error: unable to form target command\n");
		return(-1);
	}
	if (tpinterf_send_cmd() < 0)
		return(-1);
	return tpinterf_pass_output(1);
}