Removed 'const' from Pdo configuration entries.
authorFlorian Pose <fp@igh-essen.com>
Mon, 03 Mar 2008 11:42:05 +0000
changeset 851 2bb18adcd204
parent 850 f8e19594f4d0
child 852 ab439cbc7a81
Removed 'const' from Pdo configuration entries.
examples/mini/mini.c
include/ecrt.h
--- a/examples/mini/mini.c	Fri Feb 29 16:24:59 2008 +0000
+++ b/examples/mini/mini.c	Mon Mar 03 11:42:05 2008 +0000
@@ -80,29 +80,29 @@
 /*****************************************************************************/
 
 #ifdef CONFIGURE_MAPPING
-const ec_pdo_entry_info_t el3162_channel1[] = {
+static ec_pdo_entry_info_t el3162_channel1[] = {
     {0x3101, 1,  8}, // status
     {0x3101, 2, 16}  // value
 };
 
-const ec_pdo_entry_info_t el3162_channel2[] = {
+static ec_pdo_entry_info_t el3162_channel2[] = {
     {0x3102, 1,  8}, // status
     {0x3102, 2, 16}  // value
 };
 
-const ec_pdo_info_t el3162_mapping[] = {
+static ec_pdo_info_t el3162_mapping[] = {
     {EC_DIR_INPUT, 0x1A00, 2, el3162_channel1},
     {EC_DIR_INPUT, 0x1A01, 2, el3162_channel2},
 };
 
-const ec_pdo_entry_info_t el2004_channels[] = {
+static ec_pdo_entry_info_t el2004_channels[] = {
     {0x3001, 1, 1}, // Value 1
     {0x3001, 2, 1}, // Value 2
     {0x3001, 3, 1}, // Value 3
     {0x3001, 4, 1}  // Value 4
 };
 
-const ec_pdo_info_t el2004_mapping[] = {
+static ec_pdo_info_t el2004_mapping[] = {
     {EC_DIR_OUTPUT, 0x1600, 1, &el2004_channels[0]},
     {EC_DIR_OUTPUT, 0x1601, 1, &el2004_channels[1]},
     {EC_DIR_OUTPUT, 0x1602, 1, &el2004_channels[2]},
--- a/include/ecrt.h	Fri Feb 29 16:24:59 2008 +0000
+++ b/include/ecrt.h	Mon Mar 03 11:42:05 2008 +0000
@@ -225,9 +225,9 @@
     unsigned int n_entries; /**< Number of Pdo entries for the Pdo
                               configuration. Zero means, that the default Pdo
                               configuration shall be used. */
-    const ec_pdo_entry_info_t *entries; /**< Pdo configuration array. This
-                                          array must contain at least \a
-                                          n_entries values. */
+    ec_pdo_entry_info_t *entries; /**< Pdo configuration array. This
+                                    array must contain at least \a
+                                    n_entries values. */
 } ec_pdo_info_t;
 
 /*****************************************************************************/