Ported examples to new DC configuration function.
This commit is contained in:
parent
7e600a6301
commit
6189052af3
|
|
@ -326,11 +326,8 @@ int __init init_mod(void)
|
|||
if (off_counter_out < 0)
|
||||
goto out_release_master;
|
||||
|
||||
#if 1
|
||||
// configure SYNC signals for this slave
|
||||
ecrt_slave_config_dc_assign_activate(sc, 0x0700);
|
||||
ecrt_slave_config_dc_sync_signals(sc, 1000000, 440000, 0, 0);
|
||||
#endif
|
||||
ecrt_slave_config_dc(sc, 0x0700, 1000000, 440000, 0, 0);
|
||||
|
||||
printk(KERN_INFO PFX "Activating master...\n");
|
||||
if (ecrt_master_activate(master)) {
|
||||
|
|
|
|||
|
|
@ -237,11 +237,8 @@ int main(int argc, char **argv)
|
|||
if (off_counter_out < 0)
|
||||
return -1;
|
||||
|
||||
#if 1
|
||||
// configure SYNC signals for this slave
|
||||
ecrt_slave_config_dc_assign_activate(sc, 0x0700);
|
||||
ecrt_slave_config_dc_sync_signals(sc, 10000000, 4400000, 0, 0);
|
||||
#endif
|
||||
ecrt_slave_config_dc(sc, 0x0700, 10000000, 4400000, 0, 0);
|
||||
|
||||
printf("Activating master...\n");
|
||||
if (ecrt_master_activate(master))
|
||||
|
|
|
|||
Loading…
Reference in New Issue