Displaying 1 result from an estimated 1 matches for "try_open_again".
2008 Nov 25
1
sio vs uart vs ucomm problems / differences
...sio to uart
that our app might not be setting properly when opening up the port ?
The open routine is below
static int
open_dev(struct dev *dev)
{
struct termios t;
int val;
cur_state.carrier = 0;
if (cur_state.num_trans == 0) {
cur_state.startup = time(0);
}
TRY_OPEN_AGAIN:
dev->fd = open(dev->name, O_RDWR);
if (dev->fd >= 0) {
if (debug) {
syslog(LOG_LOCAL1 | LOG_DEBUG,
"(%s) %s:%d: open_dev",
dev->name,
__FILE__,
__LINE__);...