85ba0b2315
* Linux MS/TP: * dlmstp_init: * Maximize thread priority if permitted * MSTP_Put_Receive/dlmstp_receive: * Use a buffer so incoming frames are not dropped during bursts * dlmstp_receive: * Make timeout optional * MSTP_Get_Reply: * Lock the mutex before using the PDU Queue * Iterate over all queued replies to find a match (instead of only checking the first) * Sleep for a millisecond before checking again to wait for the application provide a reply * RS485_Check_UART_Data: * Ensure waiter is initilized before using with select * Ensure bytes are read before adding to FIFO TSM: * Add log when `datalink_send_pdu` fails for consistency with all other `datalink_send_pdu` calls dlenv_maintenance_timer: * Fix Tx/Rx labels in MSTP statitistics print * don't log on queued requests
This is a port to Linux for testing. The unit tests can be run via the test.sh script.