diff options
Diffstat (limited to 'nuttx/arch/arm/src/dm320/dm320_lowputc.S')
-rw-r--r-- | nuttx/arch/arm/src/dm320/dm320_lowputc.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nuttx/arch/arm/src/dm320/dm320_lowputc.S b/nuttx/arch/arm/src/dm320/dm320_lowputc.S index c27918262..5566b3f58 100644 --- a/nuttx/arch/arm/src/dm320/dm320_lowputc.S +++ b/nuttx/arch/arm/src/dm320/dm320_lowputc.S @@ -84,10 +84,10 @@ up_lowputc: /* On entry, r0 holds the character to be printed */ -#ifdef CONFIG_UART0_SERIAL_CONSOLE - ldr r2, =DM320_UART0_REGISTER_BASE /* r2=UART0 base */ -#else +#ifdef CONFIG_UART1_SERIAL_CONSOLE ldr r2, =DM320_UART1_REGISTER_BASE /* r2=UART1 base */ +#else + ldr r2, =DM320_UART0_REGISTER_BASE /* r2=UART0 base */ #endif /* Poll the TX fifo trigger level bit of the UART_SSR |