diff -r 0746236dd032 -r 31223539fc00 master/globals.h --- a/master/globals.h Wed Oct 25 13:32:17 2006 +0000 +++ b/master/globals.h Wed Oct 25 16:49:53 2006 +0000 @@ -38,33 +38,17 @@ /*****************************************************************************/ -#ifndef _EC_GLOBALS_ -#define _EC_GLOBALS_ +#ifndef _EC_MASTER_GLOBALS_ +#define _EC_MASTER_GLOBALS_ #include -#include "../config.h" +#include "../globals.h" /****************************************************************************** * EtherCAT master *****************************************************************************/ -/** master main version */ -#define EC_MASTER_VERSION_MAIN 1 - -/** master sub version (after the dot) */ -#define EC_MASTER_VERSION_SUB 1 - -/** master extra version (just a string) */ -#define EC_MASTER_VERSION_EXTRA "trunk" - -/** Compile version info. */ - -#define EC_MASTER_VERSION EC_STR(EC_MASTER_VERSION_MAIN) \ - "." EC_STR(EC_MASTER_VERSION_SUB) \ - " " EC_MASTER_VERSION_EXTRA \ - " r" EC_STR(SVNREV) - /** maximum number of FMMUs per slave */ #define EC_MAX_FMMUS 16 @@ -150,20 +134,6 @@ printk(KERN_DEBUG "EtherCAT DEBUG: " fmt, ##args) /** - Helper macro for EC_STR(), literates a macro argument. - \param X argument to literate. -*/ - -#define EC_LIT(X) #X - -/** - Converts a macro argument to a string. - \param X argument to stringify. -*/ - -#define EC_STR(X) EC_LIT(X) - -/** Convenience macro for defining read-only SysFS attributes. This results in creating a static variable called attr_\a NAME. The SysFS file will be world-readable. @@ -189,6 +159,10 @@ /*****************************************************************************/ +extern char *ec_master_version_str; + +/*****************************************************************************/ + void ec_print_data(const uint8_t *, size_t); void ec_print_data_diff(const uint8_t *, const uint8_t *, size_t); size_t ec_state_string(uint8_t, char *);