Moved a few constants to the files they are needed in.
--- a/master/ethernet.c Wed Mar 07 13:06:40 2007 +0000
+++ b/master/ethernet.c Wed Mar 07 13:12:33 2007 +0000
@@ -48,16 +48,21 @@
#include "mailbox.h"
#include "ethernet.h"
-/**
- Defines the debug level of EoE processing
-
- 0 = No debug messages.
- 1 = Output actions.
- 2 = Output actions and frame data.
-*/
+/*****************************************************************************/
+
+/**
+ * Defines the debug level of EoE processing.
+ *
+ * 0 = No debug messages.
+ * 1 = Output actions.
+ * 2 = Output actions and frame data.
+ */
#define EOE_DEBUG_LEVEL 0
+/** size of the EoE tx queue */
+#define EC_EOE_TX_QUEUE_SIZE 100
+
/*****************************************************************************/
void ec_eoe_flush(ec_eoe_t *);
--- a/master/globals.h Wed Mar 07 13:06:40 2007 +0000
+++ b/master/globals.h Wed Mar 07 13:12:33 2007 +0000
@@ -49,12 +49,6 @@
* EtherCAT master
*****************************************************************************/
-/** maximum number of FMMUs per slave */
-#define EC_MAX_FMMUS 16
-
-/** size of the EoE tx queue */
-#define EC_EOE_TX_QUEUE_SIZE 100
-
/** clock frequency for the EoE state machines */
#define EC_EOE_FREQUENCY 1000
@@ -84,9 +78,6 @@
/** size of an EtherCAT datagram footer */
#define EC_DATAGRAM_FOOTER_SIZE 2
-/** size of a sync manager configuration page */
-#define EC_SYNC_SIZE 8
-
/** size of an FMMU configuration page */
#define EC_FMMU_SIZE 16
--- a/master/slave.h Wed Mar 07 13:06:40 2007 +0000
+++ b/master/slave.h Wed Mar 07 13:12:33 2007 +0000
@@ -53,6 +53,11 @@
/*****************************************************************************/
+/** maximum number of FMMUs per slave */
+#define EC_MAX_FMMUS 16
+
+/*****************************************************************************/
+
/**
State of an EtherCAT slave.
*/
--- a/master/sync.h Wed Mar 07 13:06:40 2007 +0000
+++ b/master/sync.h Wed Mar 07 13:12:33 2007 +0000
@@ -48,6 +48,11 @@
/*****************************************************************************/
+/** size of a sync manager configuration page */
+#define EC_SYNC_SIZE 8
+
+/*****************************************************************************/
+
/**
* Sync manager.
*/