mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 19:36:35 +08:00
Fix some new warnings found in build testing.
This commit is contained in:
@@ -48,6 +48,7 @@
|
|||||||
#include <nuttx/irq.h>
|
#include <nuttx/irq.h>
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
#include <nuttx/wdog.h>
|
#include <nuttx/wdog.h>
|
||||||
|
#include <nuttx/clock.h>
|
||||||
|
|
||||||
#include <arch/board/board.h>
|
#include <arch/board/board.h>
|
||||||
|
|
||||||
|
|||||||
@@ -86,6 +86,11 @@
|
|||||||
# define CONSOLE_2STOP CONFIG_UART3_2STOP
|
# define CONSOLE_2STOP CONFIG_UART3_2STOP
|
||||||
#elif defined(HAVE_CONSOLE)
|
#elif defined(HAVE_CONSOLE)
|
||||||
# error "No CONFIG_UARTn_SERIAL_CONSOLE Setting"
|
# error "No CONFIG_UARTn_SERIAL_CONSOLE Setting"
|
||||||
|
# define CONSOLE_BASE LPC17_UART0_BASE
|
||||||
|
# define CONSOLE_BAUD 115200
|
||||||
|
# define CONSOLE_BITS 8
|
||||||
|
# define CONSOLE_PARITY 0
|
||||||
|
# define CONSOLE_2STOP 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get word length setting for the console */
|
/* Get word length setting for the console */
|
||||||
@@ -99,7 +104,7 @@
|
|||||||
#elif CONSOLE_BITS == 8
|
#elif CONSOLE_BITS == 8
|
||||||
# define CONSOLE_LCR_WLS UART_LCR_WLS_8BIT
|
# define CONSOLE_LCR_WLS UART_LCR_WLS_8BIT
|
||||||
#elif defined(HAVE_CONSOLE)
|
#elif defined(HAVE_CONSOLE)
|
||||||
# error "Invalid CONFIG_UARTn_BITS setting for console "
|
# error "Invalid CONFIG_UARTn_BITS setting for console"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get parity setting for the console */
|
/* Get parity setting for the console */
|
||||||
@@ -115,7 +120,7 @@
|
|||||||
#elif CONSOLE_PARITY == 4
|
#elif CONSOLE_PARITY == 4
|
||||||
# define CONSOLE_LCR_PAR (UART_LCR_PE|UART_LCR_PS_STICK0)
|
# define CONSOLE_LCR_PAR (UART_LCR_PE|UART_LCR_PS_STICK0)
|
||||||
#elif defined(HAVE_CONSOLE)
|
#elif defined(HAVE_CONSOLE)
|
||||||
# error "Invalid CONFIG_UARTn_PARITY setting for CONSOLE"
|
# error "Invalid CONFIG_UARTn_PARITY setting for CONSOLE"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Get stop-bit setting for the console and UART0-3 */
|
/* Get stop-bit setting for the console and UART0-3 */
|
||||||
|
|||||||
+2
-2
@@ -1563,10 +1563,10 @@ int main(int argc, char **argv, char **envp)
|
|||||||
else if (indent > 0)
|
else if (indent > 0)
|
||||||
{
|
{
|
||||||
/* REVISIT: Generates false alarms when a statement continues on
|
/* REVISIT: Generates false alarms when a statement continues on
|
||||||
* the next line. The bstatm check limits to lines beginnnig with
|
* the next line. The bstatm check limits to lines beginning with
|
||||||
* C keywords.
|
* C keywords.
|
||||||
* REVISIT: The bstatm check will not detect statements that
|
* REVISIT: The bstatm check will not detect statements that
|
||||||
* do not begin with a C keyword (such as assignement statements).
|
* do not begin with a C keyword (such as assignment statements).
|
||||||
* REVISIT: Generates false alarms on comments at the end of
|
* REVISIT: Generates false alarms on comments at the end of
|
||||||
* the line if there is nothing preceding (such as the aligned
|
* the line if there is nothing preceding (such as the aligned
|
||||||
* comments with a structure field definition). So disabled for
|
* comments with a structure field definition). So disabled for
|
||||||
|
|||||||
Reference in New Issue
Block a user