master/device.h
branchstable-1.1
changeset 1731 60b2aad9d40b
parent 246 0bf7c769de06
child 398 ff37601361a8
--- a/master/device.h	Thu Sep 28 08:31:33 2006 +0000
+++ b/master/device.h	Fri Oct 13 10:07:10 2006 +0000
@@ -46,7 +46,10 @@
 #include "../include/ecrt.h"
 #include "../devices/ecdev.h"
 #include "globals.h"
+
+#ifdef EC_DBG_IF
 #include "debug.h"
+#endif
 
 /*****************************************************************************/
 
@@ -65,7 +68,9 @@
     ec_isr_t isr; /**< pointer to the device's interrupt service routine */
     struct module *module; /**< pointer to the device's owning module */
     uint8_t link_state; /**< device link state */
+#ifdef EC_DBG_IF
     ec_debug_t dbg; /**< debug device */
+#endif
 };
 
 /*****************************************************************************/