summaryrefslogtreecommitdiffstats
path: root/ttcp
diff options
context:
space:
mode:
Diffstat (limited to 'ttcp')
-rw-r--r--ttcp/init.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/ttcp/init.c b/ttcp/init.c
index e3fdd99..ccdace0 100644
--- a/ttcp/init.c
+++ b/ttcp/init.c
@@ -15,7 +15,6 @@
#include "../usercfg.h"
-/*#define TRACE_SCC1 1 */
#include <bsp.h>
#define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
@@ -96,6 +95,18 @@ Init (rtems_task_argument ignored)
#endif
rtems_panic ("Can't attach Ethernet driver.\n");
+#if (defined (TRACE_NETWORK_DRIVER))
+ /*
+ * Turn on debugging
+ */
+ puts( "Enabling debug mode of KA9Q" );
+ if (rtems_ka9q_execute_command ("trace rtems input <stdout>")
+ || rtems_ka9q_execute_command ("trace rtems output <stdout>")
+ || rtems_ka9q_execute_command ("trace rtems ascii <stdout>"))
+ rtems_panic ("Can't set tracing for Ethernet driver.\n");
+#endif
+
+
/*
* Configure the driver
*/