FreeCalypso > hg > freecalypso-sw
comparison loadtools/tpinterf.c @ 35:05af070c4b60
loadtool: preparations for dump2bin and dump2srec
| author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
|---|---|
| date | Sun, 05 May 2013 02:24:56 +0000 |
| parents | aca1948e9713 |
| children |
comparison
equal
deleted
inserted
replaced
| 34:2c6b2a74ac7c | 35:05af070c4b60 |
|---|---|
| 1 /* | 1 /* |
| 2 * Target program interface - this module provides some primitives | 2 * Target program interface - this module provides some primitives |
| 3 * for communicating programmatically with loadagent and possibly | 3 * for communicating programmatically with loadagent and possibly |
| 4 * other target-utils. | 4 * other target-utils. This module will be linked by both |
| 5 * fc-loadtool and fc-chainload. | |
| 5 */ | 6 */ |
| 6 | 7 |
| 7 #include <sys/types.h> | 8 #include <sys/types.h> |
| 8 #include <sys/time.h> | 9 #include <sys/time.h> |
| 9 #include <sys/errno.h> | 10 #include <sys/errno.h> |
| 79 return(0); | 80 return(0); |
| 80 } | 81 } |
| 81 | 82 |
| 82 /* | 83 /* |
| 83 * This function sends the previously-constructed command to the target, | 84 * This function sends the previously-constructed command to the target, |
| 84 * and collects the expected response. | 85 * and collects the expected echo. |
| 85 * | 86 * |
| 86 * Return value: 0 if successful, -1 on errors (timeout or wrong response) | 87 * Return value: 0 if successful, -1 on errors (timeout or wrong response) |
| 87 */ | 88 */ |
| 88 tpinterf_send_cmd() | 89 tpinterf_send_cmd() |
| 89 { | 90 { |
