examples/mini/mini.c
changeset 851 2bb18adcd204
parent 846 19248bbf9308
child 858 69122084d066
equal deleted inserted replaced
850:f8e19594f4d0 851:2bb18adcd204
    78 };
    78 };
    79 
    79 
    80 /*****************************************************************************/
    80 /*****************************************************************************/
    81 
    81 
    82 #ifdef CONFIGURE_MAPPING
    82 #ifdef CONFIGURE_MAPPING
    83 const ec_pdo_entry_info_t el3162_channel1[] = {
    83 static ec_pdo_entry_info_t el3162_channel1[] = {
    84     {0x3101, 1,  8}, // status
    84     {0x3101, 1,  8}, // status
    85     {0x3101, 2, 16}  // value
    85     {0x3101, 2, 16}  // value
    86 };
    86 };
    87 
    87 
    88 const ec_pdo_entry_info_t el3162_channel2[] = {
    88 static ec_pdo_entry_info_t el3162_channel2[] = {
    89     {0x3102, 1,  8}, // status
    89     {0x3102, 1,  8}, // status
    90     {0x3102, 2, 16}  // value
    90     {0x3102, 2, 16}  // value
    91 };
    91 };
    92 
    92 
    93 const ec_pdo_info_t el3162_mapping[] = {
    93 static ec_pdo_info_t el3162_mapping[] = {
    94     {EC_DIR_INPUT, 0x1A00, 2, el3162_channel1},
    94     {EC_DIR_INPUT, 0x1A00, 2, el3162_channel1},
    95     {EC_DIR_INPUT, 0x1A01, 2, el3162_channel2},
    95     {EC_DIR_INPUT, 0x1A01, 2, el3162_channel2},
    96 };
    96 };
    97 
    97 
    98 const ec_pdo_entry_info_t el2004_channels[] = {
    98 static ec_pdo_entry_info_t el2004_channels[] = {
    99     {0x3001, 1, 1}, // Value 1
    99     {0x3001, 1, 1}, // Value 1
   100     {0x3001, 2, 1}, // Value 2
   100     {0x3001, 2, 1}, // Value 2
   101     {0x3001, 3, 1}, // Value 3
   101     {0x3001, 3, 1}, // Value 3
   102     {0x3001, 4, 1}  // Value 4
   102     {0x3001, 4, 1}  // Value 4
   103 };
   103 };
   104 
   104 
   105 const ec_pdo_info_t el2004_mapping[] = {
   105 static ec_pdo_info_t el2004_mapping[] = {
   106     {EC_DIR_OUTPUT, 0x1600, 1, &el2004_channels[0]},
   106     {EC_DIR_OUTPUT, 0x1600, 1, &el2004_channels[0]},
   107     {EC_DIR_OUTPUT, 0x1601, 1, &el2004_channels[1]},
   107     {EC_DIR_OUTPUT, 0x1601, 1, &el2004_channels[1]},
   108     {EC_DIR_OUTPUT, 0x1602, 1, &el2004_channels[2]},
   108     {EC_DIR_OUTPUT, 0x1602, 1, &el2004_channels[2]},
   109     {EC_DIR_OUTPUT, 0x1603, 1, &el2004_channels[3]},
   109     {EC_DIR_OUTPUT, 0x1603, 1, &el2004_channels[3]},
   110 };
   110 };