diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-21 14:40:42 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2015-03-24 08:16:39 -0500 |
commit | e836c7c16c953e38fa2d367d93304c34163598ad (patch) | |
tree | 8dce774eefd1ed5b74bfd433a342379993718add /c/src/lib/libbsp/arm | |
parent | tools/build/binpatch.c: Include <unistd.h> for getopt() (diff) | |
download | rtems-e836c7c16c953e38fa2d367d93304c34163598ad.tar.bz2 |
lpc176x/console/console-config.c: Conditionalize code to avoid unused warnings
Diffstat (limited to 'c/src/lib/libbsp/arm')
-rw-r--r-- | c/src/lib/libbsp/arm/lpc176x/console/console-config.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/lpc176x/console/console-config.c b/c/src/lib/libbsp/arm/lpc176x/console/console-config.c index a4fe30fa35..c80932daf7 100644 --- a/c/src/lib/libbsp/arm/lpc176x/console/console-config.c +++ b/c/src/lib/libbsp/arm/lpc176x/console/console-config.c @@ -74,6 +74,7 @@ static bool lpc176x_uart1_probe(rtems_termios_device_context *ctx) return true; } +#ifdef LPC176X_CONFIG_UART_2 static bool lpc176x_uart2_probe(rtems_termios_device_context *ctx) { (void)ctx; @@ -85,7 +86,9 @@ static bool lpc176x_uart2_probe(rtems_termios_device_context *ctx) return true; } +#endif +#ifdef LPC176X_CONFIG_UART_3 static bool lpc176x_uart3_probe(rtems_termios_device_context *ctx) { (void)ctx; @@ -97,6 +100,7 @@ static bool lpc176x_uart3_probe(rtems_termios_device_context *ctx) return true; } +#endif #ifdef LPC176X_CONFIG_CONSOLE static ns16550_context lpc176x_uart_context_0 = { |