Commit 16a876a9 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Added the device ID to the memory data structure for the Dynamixel slave device EEPROM macro.

parent 496490fe
......@@ -15,13 +15,13 @@
#define dyn_slave_control_eeprom_data(name,section_name,base_address1,base_address2,DEFAULT_DEVICE_MODEL,DEFAULT_FIRMWARE_VERSION,DEFAULT_DEVICE_ID,DEFAULT_BAUDRATE,DEFAULT_RETURN_DELAY,DEFAULT_RETURN_LEVEL) \
unsigned short int name##_eeprom_data[] __attribute__ ((section (section_name))) __attribute__ ((aligned (4)))= {\
DEFAULT_DEVICE_MODEL&0x00FF,base_address1+DEVICE_MODEL, \
(DEFAULT_DEVICE_MODEL>>8)&0x00FF,base_address1+DEVICE_MODEL+1, \
DEFAULT_FIRMWARE_VERSION,base_address1+FIRMWARE_VERSION, \
DEFAULT_DEVICE_ID,base_address1+DEVICE_ID, \
DEFAULT_BAUDRATE,base_address1+BAUDRATE, \
DEFAULT_RETURN_DELAY,base_address1+RETURN_DELAY, \
DEFAULT_RETURN_LEVEL,base_address2+RETURN_LEVEL \
DEFAULT_DEVICE_MODEL&0x00FF,(DEFAULT_DEVICE_ID<<8)+base_address1+DEVICE_MODEL, \
(DEFAULT_DEVICE_MODEL>>8)&0x00FF,(DEFAULT_DEVICE_ID<<8)+base_address1+DEVICE_MODEL+1, \
DEFAULT_FIRMWARE_VERSION,(DEFAULT_DEVICE_ID<<8)+base_address1+FIRMWARE_VERSION, \
DEFAULT_DEVICE_ID,(DEFAULT_DEVICE_ID<<8)+base_address1+DEVICE_ID, \
DEFAULT_BAUDRATE,(DEFAULT_DEVICE_ID<<8)+base_address1+BAUDRATE, \
DEFAULT_RETURN_DELAY,(DEFAULT_DEVICE_ID<<8)+base_address1+RETURN_DELAY, \
DEFAULT_RETURN_LEVEL,(DEFAULT_DEVICE_ID<<8)+base_address2+RETURN_LEVEL \
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment