mirror of
https://github.com/apache/nuttx.git
synced 2026-10-11 08:10:21 +00:00
Change for clean compilation of Sure PIC32MX configuration
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3742 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
parent
ad7f0bccc5
commit
84cdbc3fef
2 changed files with 7 additions and 7 deletions
|
|
@ -511,7 +511,7 @@
|
|||
/* Are any UARTs enabled? */
|
||||
|
||||
#undef HAVE_UART_DEVICE
|
||||
#if defined(CONFIG_PIC32MX_UART1) || defined(CONFIG_PIC32MX_UART1)
|
||||
#if defined(CONFIG_PIC32MX_UART1) || defined(CONFIG_PIC32MX_UART2)
|
||||
# define HAVE_UART_DEVICE 1
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -63,12 +63,12 @@
|
|||
# define PIC32MX_CONSOLE_BITS CONFIG_UART1_BITS
|
||||
# define PIC32MX_CONSOLE_PARITY CONFIG_UART1_PARITY
|
||||
# define PIC32MX_CONSOLE_2STOP CONFIG_UART1_2STOP
|
||||
#elif defined(CONFIG_UART_SERIAL_CONSOLE)
|
||||
# define PIC32MX_CONSOLE_BASE PIC32MX_UART_K1BASE
|
||||
# define PIC32MX_CONSOLE_BAUD CONFIG_UART_BAUD
|
||||
# define PIC32MX_CONSOLE_BITS CONFIG_UART_BITS
|
||||
# define PIC32MX_CONSOLE_PARITY CONFIG_UART_PARITY
|
||||
# define PIC32MX_CONSOLE_2STOP CONFIG_UART_2STOP
|
||||
#elif defined(CONFIG_UART2_SERIAL_CONSOLE)
|
||||
# define PIC32MX_CONSOLE_BASE PIC32MX_UART2_K1BASE
|
||||
# define PIC32MX_CONSOLE_BAUD CONFIG_UART2_BAUD
|
||||
# define PIC32MX_CONSOLE_BITS CONFIG_UART2_BITS
|
||||
# define PIC32MX_CONSOLE_PARITY CONFIG_UART2_PARITY
|
||||
# define PIC32MX_CONSOLE_2STOP CONFIG_UART2_2STOP
|
||||
#else
|
||||
# error "No CONFIG_UARTn_SERIAL_CONSOLE Setting"
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue