Bitwise AND in C is "&", bitwise OR is "|", bitwise XOR is "^" (caution: "^" is NOT exponentiation!!!)
(the similar logical operators are "&&" and "||")
if ( (UARTSTATUS & TXEMPTY) && tty->outcount > 0) {
// send data to the uart
}
Bitwise AND in C is "&", bitwise OR is "|", bitwise XOR is "^" (caution: "^" is NOT exponentiation!!!)
(the similar logical operators are "&&" and "||")
if ( (UARTSTATUS & TXEMPTY) && tty->outcount > 0) {
// send data to the uart
}