diff options
Diffstat (limited to 'nuttx/arch/sh/src/sh1')
-rw-r--r-- | nuttx/arch/sh/src/sh1/sh1_lowputc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nuttx/arch/sh/src/sh1/sh1_lowputc.c b/nuttx/arch/sh/src/sh1/sh1_lowputc.c index bae3f5bbd..092093670 100644 --- a/nuttx/arch/sh/src/sh1/sh1_lowputc.c +++ b/nuttx/arch/sh/src/sh1/sh1_lowputc.c @@ -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 |