mirror of
https://github.com/apache/nuttx.git
synced 2026-10-09 23:35:47 +00:00
Correct conditional expression
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1201 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
3789784a97
commit
8f13f401c6
1 changed files with 3 additions and 1 deletions
|
|
@ -176,7 +176,9 @@
|
|||
#ifdef HAVE_CONSOLE
|
||||
static inline int up_txready(void)
|
||||
{
|
||||
return (getreg8(SH1_SCI_BASE + SH1_SCI_SSR_OFFSET) & SH1_SCISSR_TDRE != 0);
|
||||
/* Check the TDRE bit in the SSR. 1=TDR is empty */
|
||||
|
||||
return ((getreg8(SH1_SCI_BASE + SH1_SCI_SSR_OFFSET) & SH1_SCISSR_TDRE) != 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue