Displaying 1 result from an estimated 1 matches for "open_dev".
2008 Nov 25
1
sio vs uart vs ucomm problems / differences
..., if I use something like minicom or cu, I see 2 way
communication just fine and I can transfer data back and forth just
fine. Is it possible some defaults are different from 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) {
sys...