projects
/
smp-waschbecken
/
ser_cp.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
added ignore file (cvs)
[smp-waschbecken/ser_cp.git]
/
ser_get.c
1
/* ser_get.c -- hackbard@hackdaworld.dyndns.org
2
*
3
* no ethernet, no irda, no wlan ... use uart
4
*/
5
6
#include <stdio.h>
7
#include <string.h>
8
#include <unistd.h>
9
10
#include "ser.h"
11
12
/* code */
13
int main(int argc, char **argv) {
14
info_t info;
15
16
if(argc!=2) {
17
puts("usage:\n");
18
puts("ser_get <tts device>");
19
puts("");
20
return -1;
21
}
22
23
strcpy(info.ttsdev,argv[1]);
24
25
ser_config(&info);
26
ser_init(&info);
27
ser_connect(&info);
28
ser_read_and_out(&info);
29
30
close(info.ttsfd);
31
32
return 1;
33
}
34