mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-09-22 01:53:54 +08:00
Removed trailing spaces.
This commit is contained in:
+1
-1
@@ -20,7 +20,7 @@
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# The license mentioned above concerns the source code only. Using the
|
||||
# EtherCAT technology and brand is only permitted in compliance with the
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# The license mentioned above concerns the source code only. Using the
|
||||
# EtherCAT technology and brand is only permitted in compliance with the
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# The license mentioned above concerns the source code only. Using the
|
||||
# EtherCAT technology and brand is only permitted in compliance with the
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# The license mentioned above concerns the source code only. Using the
|
||||
# EtherCAT technology and brand is only permitted in compliance with the
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
|
||||
@@ -220,7 +220,7 @@ void run(long data)
|
||||
tv.tv_sec++;
|
||||
}
|
||||
ecrt_master_application_time(master, EC_TIMEVAL2NANO(tv));
|
||||
|
||||
|
||||
if (sync_ref_counter) {
|
||||
sync_ref_counter--;
|
||||
} else {
|
||||
@@ -280,7 +280,7 @@ int __init init_mod(void)
|
||||
|
||||
master = ecrt_request_master(0);
|
||||
if (!master) {
|
||||
ret = -EBUSY;
|
||||
ret = -EBUSY;
|
||||
printk(KERN_ERR PFX "Requesting master 0 failed!\n");
|
||||
goto out_return;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# The license mentioned above concerns the source code only. Using the
|
||||
# EtherCAT technology and brand is only permitted in compliance with the
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
|
||||
@@ -59,7 +59,7 @@
|
||||
(B).tv_nsec - (A).tv_nsec)
|
||||
|
||||
#define TIMESPEC2NS(T) ((uint64_t) (T).tv_sec * NSEC_PER_SEC + (T).tv_nsec)
|
||||
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
// EtherCAT
|
||||
@@ -208,11 +208,11 @@ void cyclic_task()
|
||||
#ifdef MEASURE_TIMING
|
||||
// output timing stats
|
||||
printf("period %10u ... %10u\n",
|
||||
period_min_ns, period_max_ns);
|
||||
period_min_ns, period_max_ns);
|
||||
printf("exec %10u ... %10u\n",
|
||||
exec_min_ns, exec_max_ns);
|
||||
exec_min_ns, exec_max_ns);
|
||||
printf("latency %10u ... %10u\n",
|
||||
latency_min_ns, latency_max_ns);
|
||||
latency_min_ns, latency_max_ns);
|
||||
period_max_ns = 0;
|
||||
period_min_ns = 0xffffffff;
|
||||
exec_max_ns = 0;
|
||||
@@ -261,7 +261,7 @@ int main(int argc, char **argv)
|
||||
perror("mlockall failed");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
master = ecrt_request_master(0);
|
||||
if (!master)
|
||||
return -1;
|
||||
@@ -320,7 +320,7 @@ int main(int argc, char **argv)
|
||||
|
||||
printf("Starting cyclic function.\n");
|
||||
cyclic_task();
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# The license mentioned above concerns the source code only. Using the
|
||||
# EtherCAT technology and brand is only permitted in compliance with the
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# The license mentioned above concerns the source code only. Using the
|
||||
# EtherCAT technology and brand is only permitted in compliance with the
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
|
||||
@@ -331,7 +331,7 @@ void cyclic_task(unsigned long data)
|
||||
|
||||
// check for islave configuration state(s) (optional)
|
||||
check_slave_config_states();
|
||||
|
||||
|
||||
#if SDO_ACCESS
|
||||
// read process data SDO
|
||||
read_sdo();
|
||||
@@ -387,12 +387,12 @@ int __init init_mini_module(void)
|
||||
#if EXTERNAL_MEMORY
|
||||
unsigned int size;
|
||||
#endif
|
||||
|
||||
|
||||
printk(KERN_INFO PFX "Starting...\n");
|
||||
|
||||
master = ecrt_request_master(0);
|
||||
if (!master) {
|
||||
ret = -EBUSY;
|
||||
ret = -EBUSY;
|
||||
printk(KERN_ERR PFX "Requesting master 0 failed.\n");
|
||||
goto out_return;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# The license mentioned above concerns the source code only. Using the
|
||||
# EtherCAT technology and brand is only permitted in compliance with the
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# The license mentioned above concerns the source code only. Using the
|
||||
# EtherCAT technology and brand is only permitted in compliance with the
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
|
||||
@@ -287,7 +287,7 @@ int __init init_mod(void)
|
||||
|
||||
master = ecrt_request_master(0);
|
||||
if (!master) {
|
||||
ret = -EBUSY;
|
||||
ret = -EBUSY;
|
||||
printk(KERN_ERR PFX "Requesting master 0 failed!\n");
|
||||
goto out_return;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# The license mentioned above concerns the source code only. Using the
|
||||
# EtherCAT technology and brand is only permitted in compliance with the
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# The license mentioned above concerns the source code only. Using the
|
||||
# EtherCAT technology and brand is only permitted in compliance with the
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
|
||||
@@ -113,7 +113,7 @@ typedef struct {
|
||||
} el6002_t;
|
||||
|
||||
LIST_HEAD(handlers);
|
||||
|
||||
|
||||
/*****************************************************************************/
|
||||
|
||||
/* Beckhoff EL6002
|
||||
@@ -300,7 +300,7 @@ int el60xx_cflag_changed(void *data, tcflag_t cflag)
|
||||
rtscts = cflag & CRTSCTS;
|
||||
printk(KERN_INFO PFX "%s: Requested RTS/CTS: %s.\n",
|
||||
port->name, rtscts ? "yes" : "no");
|
||||
|
||||
|
||||
cbaud = cflag & CBAUD;
|
||||
|
||||
for (i = 0; i < sizeof(el600x_baud_rate) / sizeof(el600x_baud_rate_t);
|
||||
|
||||
+2
-2
@@ -175,13 +175,13 @@ int __init init_mini_module(void)
|
||||
{
|
||||
int ret = -1;
|
||||
ec_slave_config_t *sc;
|
||||
|
||||
|
||||
printk(KERN_INFO PFX "Starting...\n");
|
||||
|
||||
master = ecrt_request_master(0);
|
||||
if (!master) {
|
||||
printk(KERN_ERR PFX "Requesting master 0 failed.\n");
|
||||
ret = -EBUSY;
|
||||
ret = -EBUSY;
|
||||
goto out_return;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
#
|
||||
# ---
|
||||
#
|
||||
#
|
||||
# The license mentioned above concerns the source code only. Using the
|
||||
# EtherCAT technology and brand is only permitted in compliance with the
|
||||
# industrial property and similar rights of Beckhoff Automation GmbH.
|
||||
|
||||
@@ -319,7 +319,7 @@ int main(int argc, char **argv)
|
||||
ec_slave_config_t *sc;
|
||||
struct sigaction sa;
|
||||
struct itimerval tv;
|
||||
|
||||
|
||||
master = ecrt_request_master(0);
|
||||
if (!master)
|
||||
return -1;
|
||||
|
||||
Reference in New Issue
Block a user