Added feature flag for register access. stable-1.5
authorFlorian Pose <fp@igh-essen.com>
Tue, 20 Nov 2012 14:20:59 +0100
branchstable-1.5
changeset 2445 072d4c0dccd8
parent 2444 4b43c90142c8
child 2446 3425c621ee46
Added feature flag for register access.
configure.ac
include/ecrt.h
--- 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.