In MPC5477P LINFLEXD driver, when compute fraction baudrate, why plus "0.5F" in the end?
Hi,
the default float-to-integer conversion in C does not round to the nearest integer, but instead truncates fractional part. So rounding to the nearest integer can be achieved by adding 0.5 and then do a type cast.
BR, Petr
thanks, 66666666666666