Commit b7660538 authored by julien.delange's avatar julien.delange
Browse files

* begin to build installation packages

 * import a test that try to use linux sender and rasta receiver serial drivers
 * import documentation about rapitime



git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@606 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent 36a2b6d4
......@@ -208,20 +208,19 @@ int __po_hi_c_driver_serial_linux_sender (__po_hi_task_id task_id, __po_hi_port
__po_hi_marshall_request (request, &msg);
for (tmp = 0 ; tmp < __PO_HI_MESSAGES_MAX_SIZE ; tmp += 4)
{
swap_pointer = (unsigned long*) &msg.content[tmp];
swap_value = *swap_pointer;
*swap_pointer = __po_hi_swap_byte (swap_value);
}
for (tmp = 0 ; tmp < __PO_HI_MESSAGES_MAX_SIZE ; tmp += 4)
{
swap_pointer = (unsigned long*) &msg.content[tmp];
swap_value = *swap_pointer;
*swap_pointer = __po_hi_swap_byte (swap_value);
}
n = write (po_hi_c_driver_serial_fd, &msg, __PO_HI_MESSAGES_MAX_SIZE);
__DEBUGMSG ("[LINUX SERIAL] write() returns %d\n", n);
__DEBUGMSG ("[LINUX SERIAL] Message sent: 0x");
for (ts = 0 ; ts < __PO_HI_MESSAGES_MAX_SIZE ; ts++)
{
__DEBUGMSG ("%x", msg.content[ts]);
......
Markdown is supported
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