--- a/examples/mini/mini.c Mon Dec 29 14:10:27 2008 +0000
+++ b/examples/mini/mini.c Mon Dec 29 15:19:16 2008 +0000
@@ -73,7 +73,7 @@
#define Beckhoff_EL3152 0x00000002, 0x0c503052
#define Beckhoff_EL4102 0x00000002, 0x10063052
-// offsets for Pdo entries
+// offsets for PDO entries
static unsigned int off_ana_in;
static unsigned int off_ana_out;
static unsigned int off_dig_out;
@@ -249,12 +249,12 @@
printk(KERN_INFO PFX "Still busy...\n");
break;
case EC_SDO_REQUEST_SUCCESS:
- printk(KERN_INFO PFX "Sdo value: 0x%04X\n",
+ printk(KERN_INFO PFX "SDO value: 0x%04X\n",
EC_READ_U16(ecrt_sdo_request_data(sdo)));
ecrt_sdo_request_read(sdo); // trigger next read
break;
case EC_SDO_REQUEST_ERROR:
- printk(KERN_INFO PFX "Failed to read Sdo!\n");
+ printk(KERN_INFO PFX "Failed to read SDO!\n");
ecrt_sdo_request_read(sdo); // retry reading
break;
}
@@ -289,7 +289,7 @@
check_slave_config_states();
#if SDO_ACCESS
- // read process data Sdo
+ // read process data SDO
read_sdo();
#endif
}
@@ -356,9 +356,9 @@
}
#if CONFIGURE_PDOS
- printk(KERN_INFO PFX "Configuring Pdos...\n");
+ printk(KERN_INFO PFX "Configuring PDOs...\n");
if (ecrt_slave_config_pdos(sc_ana_in, EC_END, el3152_syncs)) {
- printk(KERN_ERR PFX "Failed to configure Pdos.\n");
+ printk(KERN_ERR PFX "Failed to configure PDOs.\n");
goto out_release_master;
}
@@ -369,7 +369,7 @@
}
if (ecrt_slave_config_pdos(sc, EC_END, el4102_syncs)) {
- printk(KERN_ERR PFX "Failed to configure Pdos.\n");
+ printk(KERN_ERR PFX "Failed to configure PDOs.\n");
goto out_release_master;
}
@@ -380,23 +380,23 @@
}
if (ecrt_slave_config_pdos(sc, EC_END, el2004_syncs)) {
- printk(KERN_ERR PFX "Failed to configure Pdos.\n");
+ printk(KERN_ERR PFX "Failed to configure PDOs.\n");
goto out_release_master;
}
#endif
#if SDO_ACCESS
- printk(KERN_INFO PFX "Creating Sdo requests...\n");
+ printk(KERN_INFO PFX "Creating SDO requests...\n");
if (!(sdo = ecrt_slave_config_create_sdo_request(sc_ana_in, 0x3102, 2, 2))) {
- printk(KERN_ERR PFX "Failed to create Sdo request.\n");
+ printk(KERN_ERR PFX "Failed to create SDO request.\n");
goto out_release_master;
}
ecrt_sdo_request_timeout(sdo, 500); // ms
#endif
- printk(KERN_INFO PFX "Registering Pdo entries...\n");
+ printk(KERN_INFO PFX "Registering PDO entries...\n");
if (ecrt_domain_reg_pdo_entry_list(domain1, domain1_regs)) {
- printk(KERN_ERR PFX "Pdo entry registration failed!\n");
+ printk(KERN_ERR PFX "PDO entry registration failed!\n");
goto out_release_master;
}