FreeCalypso > hg > freecalypso-sw
comparison loadtools/sercomm.c @ 9:fea204bc7674
fc-sertool compiles
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Wed, 01 May 2013 02:43:17 +0000 |
parents | aa1f6fe16fef |
children | 54392d1ea474 |
comparison
equal
deleted
inserted
replaced
8:acaac9162574 | 9:fea204bc7674 |
---|---|
35 perror("initial tcsetattr on target"); | 35 perror("initial tcsetattr on target"); |
36 exit(1); | 36 exit(1); |
37 } | 37 } |
38 return 0; | 38 return 0; |
39 } | 39 } |
40 | |
41 switch_baud_rate(code) | |
42 { | |
43 cfsetispeed(&target_termios, code); | |
44 cfsetospeed(&target_termios, code); | |
45 if (tcsetattr(target_fd, TCSAFLUSH, &target_termios) < 0) { | |
46 perror("tcsetattr to switch baud rate"); | |
47 exit(1); | |
48 } | |
49 } |