Added feature flag for register access.
--- a/configure.ac Tue Nov 20 13:23:21 2012 +0100
+++ b/configure.ac Tue Nov 20 14:20:59 2012 +0100
@@ -41,7 +41,7 @@
#------------------------------------------------------------------------------
AC_PROG_CXX
-AM_PROG_AR
+#AM_PROG_AR
AC_PROG_LIBTOOL
AM_PROG_CC_C_O
--- a/include/ecrt.h Tue Nov 20 13:23:21 2012 +0100
+++ b/include/ecrt.h Tue Nov 20 14:20:59 2012 +0100
@@ -55,7 +55,8 @@
* - Added interface for direct EtherCAT register access: Added data type
* ec_reg_request_t and methods ecrt_slave_config_create_reg_request(),
* ecrt_reg_request_data(), ecrt_reg_request_state(),
- * ecrt_reg_request_write() and ecrt_reg_request_read().
+ * ecrt_reg_request_write(), ecrt_reg_request_read() and the feature flag
+ * EC_HAVE_REG_ACCESS.
*
* Changes in version 1.5:
*
@@ -154,6 +155,14 @@
*/
#define EC_HAVE_EMERGENCY
+/** Defined, if the register access interface is available.
+ *
+ * I. e. if the methods ecrt_slave_config_create_reg_request(),
+ * ecrt_reg_request_data(), ecrt_reg_request_state(), ecrt_reg_request_write()
+ * and ecrt_reg_request_read() are available.
+ */
+#define EC_HAVE_REG_ACCESS
+
/*****************************************************************************/
/** End of list marker.