Refactor the speed configuration for *nix


The internal implementation of this is a little tangled. It is
reasonable to simplify it:

1. Remove the setBaudRate_helper() method, as it is equivalent to
   setStandardBaudRate() method.

2. Now the setStandardBaudRate() and the setCustomBaudRate() are
   self-sufficient methods (can setup a speed and an error codes
   internally) and return a boolean values.

Also added the "loopback" test for check of different speeds.

Tested with the on-board and the USB serial ports.

Change-Id: I4320c2e29ad42a394e07753cbaea804d0faf6b78
Reviewed-by: Sergey Belyashov <Sergey.Belyashov@gmail.com>
Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
commit3abd3ed07d2b30ecb2f8b9772ed5b3811bb9194b
parent45bf94455c065b64dec65f354e62999b1c16cc7e
authorDenis Shienkov <denis.shienkov@gmail.com>
committerDenis Shienkov <denis.shienkov@gmail.com>
commit timeMon, 7 Sep 2015 13:06:40 +0000