mirror of
https://github.com/apache/nuttx.git
synced 2026-08-25 23:47:16 +00:00
imxrt:syslog is dependant on arm_lowputc
This commit is contained in:
parent
3c1ac89557
commit
90cfa6f313
2 changed files with 4 additions and 2 deletions
|
|
@ -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)
|
||||
{
|
||||
#ifdef HAVE_LPUART_CONSOLE
|
||||
while ((getreg32(IMXRT_CONSOLE_BASE + IMXRT_LPUART_STAT_OFFSET) &
|
||||
LPUART_STAT_TDRE) == 0)
|
||||
{
|
||||
|
|
@ -599,5 +600,6 @@ void imxrt_lowputc(int ch)
|
|||
/* Send the character by writing it into the UART_TXD register. */
|
||||
|
||||
putreg32((uint32_t)ch, IMXRT_CONSOLE_BASE + IMXRT_LPUART_DATA_OFFSET);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
#else
|
||||
# define imxrt_lowputc(ch)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue