# HG changeset patch # User Florian Pose # Date 1173273153 0 # Node ID 84a64efca00d9bc635a27b9171d287953b70d8d3 # Parent e94a16bc52ce320a44f6041a4adedb0b97e1f55e Moved a few constants to the files they are needed in. diff -r e94a16bc52ce -r 84a64efca00d master/ethernet.c --- 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 *); diff -r e94a16bc52ce -r 84a64efca00d master/globals.h --- 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 diff -r e94a16bc52ce -r 84a64efca00d master/slave.h --- 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. */ diff -r e94a16bc52ce -r 84a64efca00d master/sync.h --- 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. */