SSI sensor changes in MSR example
authorFlorian Pose <fp@igh-essen.com>
Tue, 16 May 2006 14:23:33 +0000
changeset 240 e55b0572933c
parent 239 07bca2b018ed
child 241 cd90a22cab28
SSI sensor changes in MSR example
examples/msr/msr_sample.c
--- a/examples/msr/msr_sample.c	Tue May 16 13:03:09 2006 +0000
+++ b/examples/msr/msr_sample.c	Tue May 16 14:23:33 2006 +0000
@@ -207,12 +207,12 @@
         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, 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, 0x4068, 0,  0) || // single-turn
         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_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");
         goto out_deactivate;