Commit 9208bc92 authored by jdelange's avatar jdelange
Browse files

* po-hi-c/src/drivers/po_hi_driver_rasta_serial.c

   po-hi-c/src/drivers/po_hi_driver_linux_serial.c
    - Fix latest bugs in the POHIC implementation of the driver
    - RASTA sends values again
    - Do not set automatic speed



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@2576 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 407292c2
......@@ -142,13 +142,13 @@ void __po_hi_c_driver_serial_linux_init_sender (__po_hi_device_id id)
}
else
{
__PO_HI_DEBUG_DEBUG ("[LINUX SERIAL] Device successfully opened for sending, fd=%d\n", po_hi_c_driver_serial_fd_write);
__PO_HI_DEBUG_DEBUG ("[LINUX SERIAL] Device %s successfully opened for sending, fd=%d\n", serialconf->devname, po_hi_c_driver_serial_fd_write);
}
tcgetattr (po_hi_c_driver_serial_fd_write, &oldtio); /* save current serial port settings */
tcgetattr (po_hi_c_driver_serial_fd_write, &newtio); /* save current serial port settings */
newtio.c_cflag |= B115200 | CREAD ;
newtio.c_cflag |= CREAD ;
newtio.c_iflag = IGNPAR | IGNBRK;
newtio.c_lflag |= ICANON;
newtio.c_cc[VMIN]=1;
......@@ -225,14 +225,14 @@ void __po_hi_c_driver_serial_linux_init_receiver (__po_hi_device_id id)
}
else
{
__PO_HI_DEBUG_DEBUG ("[LINUX SERIAL] Device successfully opened for reading, fd=%d\n", po_hi_c_driver_serial_fd_read);
__PO_HI_DEBUG_DEBUG ("[LINUX SERIAL] Device %s successfully opened for reading, fd=%d\n", serialconf->devname , po_hi_c_driver_serial_fd_read);
}
tcgetattr (po_hi_c_driver_serial_fd_write, &oldtio); /* save current serial port settings */
tcgetattr (po_hi_c_driver_serial_fd_write, &newtio); /* save current serial port settings */
newtio.c_cflag |= B115200 | CREAD ;
newtio.c_cflag |= CREAD ;
newtio.c_iflag = IGNPAR | IGNBRK;
newtio.c_lflag |= ICANON;
newtio.c_cc[VMIN]=1;
......
......@@ -80,7 +80,6 @@ void __po_hi_c_driver_serial_rasta_poller (void)
__PO_HI_DEBUG_DEBUG ("%x", __po_hi_c_driver_rasta_serial_msg.content[ts]);
}
__PO_HI_DEBUG_DEBUG ("\n");
return;
__po_hi_c_driver_rasta_serial_msg.length = __PO_HI_MESSAGES_MAX_SIZE;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment