Bitwise
"I'll delete this question once someone answers it, as it is not relevant".
Why in second line did some one write ch & 0xFF? ch limits are already 0 to 255 right?
"I'll delete this question once someone answers it, as it is not relevant".
Why in second line did some one write ch & 0xFF? ch limits are already 0 to 255 right?
The copy-n-paste coder here took code that use int originally for the parameter/return and changed it to a uint8_t
Classically C libraries have returned negative values for failure around STDIO routines.
The TDR here is 16-bit wide as the U(S)ART support 9-bit values. When reading RDR and using parity, the code needs to strip the parity bit manually/
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.