[rtems commit] bsp/altera-cyclone-v: Fix define usage

Sebastian Huber sebh at rtems.org
Thu Apr 2 06:31:32 UTC 2015


Module:    rtems
Branch:    master
Commit:    aae6c218102f248a2ed036a270601da6da92189e
Changeset: http://git.rtems.org/rtems/commit/?id=aae6c218102f248a2ed036a270601da6da92189e

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Apr  2 08:31:09 2015 +0200

bsp/altera-cyclone-v: Fix define usage

---

 c/src/lib/libbsp/arm/altera-cyclone-v/console/console-config.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/c/src/lib/libbsp/arm/altera-cyclone-v/console/console-config.c b/c/src/lib/libbsp/arm/altera-cyclone-v/console/console-config.c
index 5cc7849..f84eb36 100644
--- a/c/src/lib/libbsp/arm/altera-cyclone-v/console/console-config.c
+++ b/c/src/lib/libbsp/arm/altera-cyclone-v/console/console-config.c
@@ -107,7 +107,7 @@ static ns16550_context altera_cyclone_v_uart_context_0 = {
 };
 #endif
 
-#ifdef CYCLONE_V_CONFIG_CONSOLE
+#ifdef CYCLONE_V_CONFIG_UART_1
 static bool altera_cyclone_v_uart_probe_1(rtems_termios_device_context *base)
 {
   return altera_cyclone_v_uart_probe(base, ALT_RSTMGR_PERMODRST_UART1_SET_MSK);



More information about the vc mailing list