Skip to content
Snippets Groups Projects
Commit a2f46a0b authored by Florian Pose's avatar Florian Pose
Browse files

SSI sensor changes in MSR example

parent 51b8a534
No related branches found
No related tags found
No related merge requests found
...@@ -207,12 +207,12 @@ int __init init_mod(void) ...@@ -207,12 +207,12 @@ int __init init_mod(void)
ecrt_slave_sdo_write_exp8(slave, 0x4061, 2, 0) || // power failure bit ecrt_slave_sdo_write_exp8(slave, 0x4061, 2, 0) || // power failure bit
ecrt_slave_sdo_write_exp8(slave, 0x4061, 3, 1) || // inhibit time ecrt_slave_sdo_write_exp8(slave, 0x4061, 3, 1) || // inhibit time
ecrt_slave_sdo_write_exp8(slave, 0x4061, 4, 0) || // test mode ecrt_slave_sdo_write_exp8(slave, 0x4061, 4, 0) || // test mode
ecrt_slave_sdo_write_exp8(slave, 0x4066, 0, 1) || // dualcode ecrt_slave_sdo_write_exp8(slave, 0x4066, 0, 0) || // graycode
ecrt_slave_sdo_write_exp8(slave, 0x4067, 0, 5) || // 125kbaud ecrt_slave_sdo_write_exp8(slave, 0x4067, 0, 5) || // 125kbaud
ecrt_slave_sdo_write_exp8(slave, 0x4068, 0, 0) || // single-turn ecrt_slave_sdo_write_exp8(slave, 0x4068, 0, 0) || // single-turn
ecrt_slave_sdo_write_exp8(slave, 0x4069, 0, 25) || // frame size ecrt_slave_sdo_write_exp8(slave, 0x4069, 0, 25) || // frame size
ecrt_slave_sdo_write_exp8(slave, 0x406A, 0, 25) || // data length ecrt_slave_sdo_write_exp8(slave, 0x406A, 0, 25) || // data length
ecrt_slave_sdo_write_exp16(slave, 0x406B, 0, 30000) // inhibit time in us ecrt_slave_sdo_write_exp16(slave, 0x406B, 0, 50) // inhibit time in us
) { ) {
printk(KERN_ERR "Failed to configure SSI slave!\n"); printk(KERN_ERR "Failed to configure SSI slave!\n");
goto out_deactivate; goto out_deactivate;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment