URL
https://opencores.org/ocsvn/eco32/eco32/trunk
Subversion Repositories eco32
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 48 to Rev 49
- ↔ Reverse comparison
Rev 48 → Rev 49
/eco32/trunk/monitor/loadserv/loadserv.c
114,6 → 114,7
|
|
int main(int argc, char *argv[]) { |
char *serialPort; |
char *loadName; |
unsigned char b; |
unsigned char cmd; |
124,6 → 125,7
printf("Usage: %s <serial port> <file to be loaded>\n", argv[0]); |
exit(1); |
} |
serialPort = argv[1]; |
loadName = argv[2]; |
loadFile = fopen(loadName, "rt"); |
if (loadFile == NULL) { |
130,7 → 132,7
error("cannot open file to be loaded '%s'", loadName); |
} |
/* open serial interface */ |
serialOpen(argv[1]); |
serialOpen(serialPort); |
/* wait for client to connect */ |
printf("Waiting for client...\n"); |
while (1) { |