diff -r 3616bebe70cc -r d004349777fc examples/mini/mini.c --- a/examples/mini/mini.c Thu Aug 03 16:47:06 2006 +0000 +++ b/examples/mini/mini.c Thu Aug 03 16:48:53 2006 +0000 @@ -64,6 +64,7 @@ ec_pdo_reg_t domain1_pdos[] = { {"1", Beckhoff_EL4132_Output1, &r_ana_out}, + {"8", Beckhoff_EL5001_Value, NULL}, {} }; @@ -123,6 +124,8 @@ int __init init_mini_module(void) { + ec_slave_t *slave; + printk(KERN_INFO "=== Starting Minimal EtherCAT environment... ===\n"); if ((master = ecrt_request_master(0)) == NULL) { @@ -145,6 +148,12 @@ goto out_release_master; } + if (!(slave = ecrt_master_get_slave(master, "8"))) + goto out_release_master; + + if (ecrt_slave_conf_sdo8(slave, 0x4061, 1, 0)) + goto out_release_master; + printk(KERN_INFO "Activating master...\n"); if (ecrt_master_activate(master)) { printk(KERN_ERR "Failed to activate master!\n");