Index: branches/reconfiguration/modules/dspin_router/caba/metadata/dspin_router.sd
===================================================================
--- branches/reconfiguration/modules/dspin_router/caba/metadata/dspin_router.sd	(revision 883)
+++ branches/reconfiguration/modules/dspin_router/caba/metadata/dspin_router.sd	(revision 886)
@@ -2,26 +2,29 @@
 
 Module('caba:reconf:dspin_router',
-	classname = 'soclib::caba::DspinRouter',
-	tmpl_parameters = [ parameter.Int('flit_width'), ],
-	header_files = ['../source/include/dspin_router.h',],
-	implementation_files = ['../source/src/dspin_router.cpp',],
-	ports = [
-		Port('caba:bit_in', 'p_resetn', auto = 'resetn'),
-		Port('caba:clock_in', 'p_clk', auto = 'clock'),
-	    Port('caba:dspin_output', 'p_out', 5, dspin_data_size = parameter.Reference('flit_width')),
-	    Port('caba:dspin_input', 'p_in', 5, dspin_data_size = parameter.Reference('flit_width')),
-	],
-	instance_parameters = [
-	    parameter.Int('x'),
-	    parameter.Int('y'),
-	    parameter.Int('x_width'),
-	    parameter.Int('y_width'),
-	    parameter.Int('in_fifo_depth'),
-	    parameter.Int('out_fifo_depth'),
+    classname = 'soclib::caba::DspinRouter',
+    tmpl_parameters = [ parameter.Int('flit_width')],
+    header_files = ['../source/include/dspin_router.h'],
+    implementation_files = ['../source/src/dspin_router.cpp'],
+    interface_files = ['../../include/soclib/dspin_router_config.h'],
+    ports = [
+        Port('caba:bit_in', 'p_resetn', auto = 'resetn'),
+        Port('caba:clock_in', 'p_clk', auto = 'clock'),
+        Port('caba:dspin_output', 'p_out', 5, dspin_data_size = parameter.Reference('flit_width')),
+        Port('caba:dspin_input', 'p_in', 5, dspin_data_size = parameter.Reference('flit_width')),
+    ],
+    instance_parameters = [
+        parameter.Int('x'),
+        parameter.Int('y'),
+        parameter.Int('x_width'),
+        parameter.Int('y_width'),
+        parameter.Int('in_fifo_depth'),
+        parameter.Int('out_fifo_depth'),
         parameter.Bool('broadcast_supported'),
-	],
-	uses = [
-	    Uses('caba:base_module'),
-	    Uses('caba:generic_fifo'),
-	],
+    ],
+    uses = [
+        Uses('caba:base_module'),
+        Uses('caba:generic_fifo'),
+    ],
 )
+
+# vim: ts=4 : sts=4 : sw=4 : et
Index: branches/reconfiguration/modules/dspin_router/caba/source/include/dspin_router.h
===================================================================
--- branches/reconfiguration/modules/dspin_router/caba/source/include/dspin_router.h	(revision 883)
+++ branches/reconfiguration/modules/dspin_router/caba/source/include/dspin_router.h	(revision 886)
@@ -82,18 +82,4 @@
         INFSM_REQ_FOURTH,
         INFSM_ALLOC_FOURTH,
-    };
-
-    // Black-Hole position
-    enum
-    {
-        BH_NONE,
-        BH_N,
-        BH_NE,
-        BH_E,
-        BH_SE,
-        BH_S,
-        BH_SW,
-        BH_W,
-        BH_NW
     };
 
Index: branches/reconfiguration/modules/dspin_router/caba/source/src/dspin_router.cpp
===================================================================
--- branches/reconfiguration/modules/dspin_router/caba/source/src/dspin_router.cpp	(revision 883)
+++ branches/reconfiguration/modules/dspin_router/caba/source/src/dspin_router.cpp	(revision 886)
@@ -41,4 +41,5 @@
 
 #include "../include/dspin_router.h"
+#include "dspin_router_config.h"
 
 namespace soclib { namespace caba {
@@ -250,5 +251,5 @@
         if ( p_blackhole_pos != NULL )
         {
-            if (p_blackhole_pos->read() != BH_NONE)
+            if ( p_blackhole_pos->read() != BH_NONE )
             {
                 return recovery_route(xdest, ydest);
Index: branches/reconfiguration/modules/dspin_router/include/soclib/dspin_router_config.h
===================================================================
--- branches/reconfiguration/modules/dspin_router/include/soclib/dspin_router_config.h	(revision 886)
+++ branches/reconfiguration/modules/dspin_router/include/soclib/dspin_router_config.h	(revision 886)
@@ -0,0 +1,53 @@
+/*
+ * SOCLIB_LGPL_HEADER_BEGIN
+ * 
+ * This file is part of SoCLib, GNU LGPLv2.1.
+ * 
+ * SoCLib is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as published
+ * by the Free Software Foundation; version 2.1 of the License.
+ * 
+ * SoCLib is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ * 
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with SoCLib; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+ * 02110-1301 USA
+ * 
+ * SOCLIB_LGPL_HEADER_END
+ *
+ * Copyright (c) UPMC, Lip6
+ *         Cesar Fuguet <cesar.fuguet-tortolero@lip6.fr>, 2014
+ */
+
+#ifndef DSPIN_ROUTER_CONFIG_H
+#define DSPIN_ROUTER_CONFIG_H
+
+// Black-Hole position
+enum
+{
+    BH_NONE = 0,
+    BH_N = 1,
+    BH_NE = 2,
+    BH_E = 3,
+    BH_SE = 4,
+    BH_S = 5,
+    BH_SW = 6,
+    BH_W = 7,
+    BH_NW = 8
+};
+
+#endif                                 /* DSPIN_ROUTER_CONFIG_H */
+
+// Local Variables:
+// tab-width: 4
+// c-basic-offset: 4
+// c-file-offsets:((innamespace . 0)(inline-open . 0))
+// indent-tabs-mode: nil
+// End:
+
+// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=4:softtabstop=4
+
