diff -r 7fa6de7e3823 -r 60a10d85c20b mini/mini.c --- a/mini/mini.c Tue Apr 25 12:15:54 2006 +0000 +++ b/mini/mini.c Tue Apr 25 13:43:13 2006 +0000 @@ -99,6 +99,19 @@ /*****************************************************************************/ +int request_lock(void *data) +{ + return 0; +} + +/*****************************************************************************/ + +void release_lock(void *data) +{ +} + +/*****************************************************************************/ + int __init init_mini_module(void) { printk(KERN_INFO "=== Starting Minimal EtherCAT environment... ===\n"); @@ -108,6 +121,8 @@ goto out_return; } + ecrt_master_callbacks(master, request_lock, release_lock, NULL); + printk(KERN_INFO "Registering domain...\n"); if (!(domain1 = ecrt_master_create_domain(master))) { @@ -137,6 +152,12 @@ ecrt_master_print(master, 0); #endif +#if 1 + if (ecrt_master_start_eoe(master)) { + printk(KERN_ERR "Failed to start EoE processing!\n"); + goto out_deactivate; + } +#endif #if 0 if (!(slave = ecrt_master_get_slave(master, "5"))) { @@ -180,7 +201,7 @@ printk(KERN_INFO "=== Minimal EtherCAT environment started. ===\n"); return 0; -#if 0 +#if 1 out_deactivate: ecrt_master_deactivate(master); #endif