# HG changeset patch # User Florian Pose # Date 1204544525 0 # Node ID 2bb18adcd204aca6ef68e96b63fe99764610e44d # Parent f8e19594f4d0c38fc898064123abfbb7b98b5d60 Removed 'const' from Pdo configuration entries. diff -r f8e19594f4d0 -r 2bb18adcd204 examples/mini/mini.c --- 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]}, diff -r f8e19594f4d0 -r 2bb18adcd204 include/ecrt.h --- 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; /*****************************************************************************/