Jan Kiszka пишет:
>> moxa: 912.600/115.200 = 8
>> xeno: = 7
>
> Yeah, hard arguments. This really cries for a moxa tweak. (The
> alternative would be to pass an artificially increased baud_base - but
> that would be _really_ ugly and we could also ask the user for the
> divider directly...)
As i correctly understand mxser use formula:
+-
| base/baud, baud <> 134
div = |
| 2*base/(2*base + 1), baud == 134
+-
Jan's driver use:
div = (base + baud/2)/baud
What is actual
div = base/baud + 0.5
That seems more correct for rounding....
In additional:
1. You should use 921600 value instead of 912.600.
2. Interface is asynchronous and (IMHO) data could be transfered in a
range of frequencies (BAUD +/- RANGE%)
--
________________________________________
Maksym Veremeyenko
_______________________________________________
Xenomai-core mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-core