imxrt:syslog is dependant on arm_lowputc

This commit is contained in:
David Sidrane 2021-10-21 14:41:22 -07:00 committed by Xiang Xiao
parent 3c1ac89557
commit 90cfa6f313
2 changed files with 4 additions and 2 deletions

View File

@ -567,9 +567,10 @@ int imxrt_lpuart_configure(uint32_t base,
* *
****************************************************************************/ ****************************************************************************/
#if defined(HAVE_LPUART_DEVICE) && defined(CONFIG_DEBUG_FEATURES) #if defined(HAVE_LPUART_DEVICE)
void imxrt_lowputc(int ch) void imxrt_lowputc(int ch)
{ {
#ifdef HAVE_LPUART_CONSOLE
while ((getreg32(IMXRT_CONSOLE_BASE + IMXRT_LPUART_STAT_OFFSET) & while ((getreg32(IMXRT_CONSOLE_BASE + IMXRT_LPUART_STAT_OFFSET) &
LPUART_STAT_TDRE) == 0) LPUART_STAT_TDRE) == 0)
{ {
@ -599,5 +600,6 @@ void imxrt_lowputc(int ch)
/* Send the character by writing it into the UART_TXD register. */ /* Send the character by writing it into the UART_TXD register. */
putreg32((uint32_t)ch, IMXRT_CONSOLE_BASE + IMXRT_LPUART_DATA_OFFSET); putreg32((uint32_t)ch, IMXRT_CONSOLE_BASE + IMXRT_LPUART_DATA_OFFSET);
#endif
} }
#endif #endif

View File

@ -96,7 +96,7 @@ int imxrt_lpuart_configure(uint32_t base,
* *
****************************************************************************/ ****************************************************************************/
#if defined(HAVE_LPUART_DEVICE) && defined(CONFIG_DEBUG_FEATURES) #if defined(HAVE_LPUART_DEVICE)
void imxrt_lowputc(int ch); void imxrt_lowputc(int ch);
#else #else
# define imxrt_lowputc(ch) # define imxrt_lowputc(ch)