324 off_counter_out = ecrt_slave_config_reg_pdo_entry(sc, |
324 off_counter_out = ecrt_slave_config_reg_pdo_entry(sc, |
325 0x7020, 1, domain1, NULL); |
325 0x7020, 1, domain1, NULL); |
326 if (off_counter_out < 0) |
326 if (off_counter_out < 0) |
327 goto out_release_master; |
327 goto out_release_master; |
328 |
328 |
329 #if 1 |
|
330 // configure SYNC signals for this slave |
329 // configure SYNC signals for this slave |
331 ecrt_slave_config_dc_assign_activate(sc, 0x0700); |
330 ecrt_slave_config_dc(sc, 0x0700, 1000000, 440000, 0, 0); |
332 ecrt_slave_config_dc_sync_signals(sc, 1000000, 440000, 0, 0); |
|
333 #endif |
|
334 |
331 |
335 printk(KERN_INFO PFX "Activating master...\n"); |
332 printk(KERN_INFO PFX "Activating master...\n"); |
336 if (ecrt_master_activate(master)) { |
333 if (ecrt_master_activate(master)) { |
337 printk(KERN_ERR PFX "Failed to activate master!\n"); |
334 printk(KERN_ERR PFX "Failed to activate master!\n"); |
338 goto out_release_master; |
335 goto out_release_master; |