Fixed mail address; limited lines to 78 characters; removed $Id$.

This commit is contained in:
Florian Pose
2024-02-01 15:15:41 +01:00
parent 512bac72e2
commit ee55c20e28
283 changed files with 2137 additions and 2647 deletions
+3 -5
View File
@@ -1,6 +1,4 @@
#------------------------------------------------------------------------------
#
# $Id$
#-----------------------------------------------------------------------------
#
# Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH
#
@@ -23,7 +21,7 @@
#
# vi: syntax=make
#
#------------------------------------------------------------------------------
#-----------------------------------------------------------------------------
src := @abs_srcdir@
ccflags-y := -I@abs_top_builddir@
@@ -38,4 +36,4 @@ KBUILD_EXTRA_SYMBOLS := \
@abs_top_builddir@/$(LINUX_SYMVERS) \
@abs_top_builddir@/master/$(LINUX_SYMVERS)
#------------------------------------------------------------------------------
#-----------------------------------------------------------------------------
+4 -7
View File
@@ -1,8 +1,4 @@
#------------------------------------------------------------------------------
#
# IgH EtherCAT master module
#
# $Id$
#-----------------------------------------------------------------------------
#
# Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH
#
@@ -21,10 +17,11 @@
# with the IgH EtherCAT Master; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
#------------------------------------------------------------------------------
#-----------------------------------------------------------------------------
include $(top_srcdir)/Makefile.kbuild
EXTRA_DIST = \
rtai_sample.c
#------------------------------------------------------------------------------
#-----------------------------------------------------------------------------
+2 -6
View File
@@ -1,8 +1,4 @@
-------------------------------------------------------------------------------
$Id$
-------------------------------------------------------------------------------
------------------------------------------------------------------------------
This is a minimal example module for the use of the EtherCAT master realtime
interface with an RTAI thread.
@@ -28,4 +24,4 @@ insmod ec_rtai_sample.ko
...and watch the system logs for the outputs.
-------------------------------------------------------------------------------
------------------------------------------------------------------------------
+19 -20
View File
@@ -1,9 +1,7 @@
/******************************************************************************
/*****************************************************************************
*
* RTAI sample for the IgH EtherCAT master.
*
* $Id$
*
* Copyright (C) 2006-2008 Florian Pose, Ingenieurgemeinschaft IgH
*
* This file is part of the IgH EtherCAT Master.
@@ -21,7 +19,7 @@
* with the IgH EtherCAT Master; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
*****************************************************************************/
****************************************************************************/
// Linux
#include <linux/module.h>
@@ -34,7 +32,7 @@
// EtherCAT
#include "../../include/ecrt.h"
/*****************************************************************************/
/****************************************************************************/
// Module parameters
@@ -48,7 +46,7 @@
#define PFX "ec_rtai_sample: "
/*****************************************************************************/
/****************************************************************************/
// EtherCAT
static ec_master_t *master = NULL;
@@ -65,7 +63,7 @@ static RT_TASK task;
static SEM master_sem;
static cycles_t t_last_cycle = 0, t_critical;
/*****************************************************************************/
/****************************************************************************/
// process data
static uint8_t *domain1_pd; // process data memory
@@ -88,7 +86,7 @@ const static ec_pdo_entry_reg_t domain1_regs[] = {
static unsigned int counter = 0;
static unsigned int blink = 0;
/*****************************************************************************/
/****************************************************************************/
#ifdef CONFIGURE_PDOS
static ec_pdo_entry_info_t el3162_channel1[] = {
@@ -133,7 +131,7 @@ static ec_sync_info_t el2004_syncs[] = {
};
#endif
/*****************************************************************************/
/****************************************************************************/
void check_domain1_state(void)
{
@@ -151,7 +149,7 @@ void check_domain1_state(void)
domain1_state = ds;
}
/*****************************************************************************/
/****************************************************************************/
void check_master_state(void)
{
@@ -171,7 +169,7 @@ void check_master_state(void)
master_state = ms;
}
/*****************************************************************************/
/****************************************************************************/
void check_slave_config_states(void)
{
@@ -192,7 +190,7 @@ void check_slave_config_states(void)
sc_ana_in_state = s;
}
/*****************************************************************************/
/****************************************************************************/
void run(long data)
{
@@ -235,7 +233,7 @@ void run(long data)
}
}
/*****************************************************************************/
/****************************************************************************/
void send_callback(void *cb_data)
{
@@ -249,7 +247,7 @@ void send_callback(void *cb_data)
}
}
/*****************************************************************************/
/****************************************************************************/
void receive_callback(void *cb_data)
{
@@ -263,7 +261,7 @@ void receive_callback(void *cb_data)
}
}
/*****************************************************************************/
/****************************************************************************/
int __init init_mod(void)
{
@@ -307,7 +305,8 @@ int __init init_mod(void)
goto out_release_master;
}
if (!(sc = ecrt_master_slave_config(master, DigOutSlavePos, Beckhoff_EL2004))) {
if (!(sc = ecrt_master_slave_config(master, DigOutSlavePos,
Beckhoff_EL2004))) {
printk(KERN_ERR PFX "Failed to get slave configuration.\n");
goto out_release_master;
}
@@ -366,7 +365,7 @@ int __init init_mod(void)
return ret;
}
/*****************************************************************************/
/****************************************************************************/
void __exit cleanup_mod(void)
{
@@ -380,13 +379,13 @@ void __exit cleanup_mod(void)
printk(KERN_INFO PFX "Unloading.\n");
}
/*****************************************************************************/
/****************************************************************************/
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Florian Pose <fp@igh-essen.com>");
MODULE_AUTHOR("Florian Pose <fp@igh.de>");
MODULE_DESCRIPTION("EtherCAT RTAI sample module");
module_init(init_mod);
module_exit(cleanup_mod);
/*****************************************************************************/
/****************************************************************************/