]> git.feebdaed.xyz Git - 0xmirror/SOEM.git/commitdiff
Fix spelling
authorHans-Erik Floryd <hans-erik.floryd@rt-labs.com>
Thu, 10 Jul 2025 09:59:03 +0000 (11:59 +0200)
committerHans-Erik Floryd <hans-erik.floryd@rt-labs.com>
Thu, 10 Jul 2025 09:59:03 +0000 (11:59 +0200)
Change-Id: I1dc05f26dfb32ca1584aeb3a31fbd525cafb55cb

13 files changed:
include/soem/ec_main.h
samples/coetest/coetest.c
samples/eni_test/eni_test.c
samples/eoe_test/eoe_test.c
samples/red_test/red_test.c
samples/simple_ng/simple_ng.c
samples/simple_test/simple_test.c
src/ec_base.c
src/ec_coe.c
src/ec_eoe.c
src/ec_foe.c
src/ec_main.c
src/ec_soe.c

index b5a5aef74566991e54714b4d5393b8f9f3dd1136..70189802522883df055bc93a8d47b5c352208356 100644 (file)
@@ -308,7 +308,7 @@ typedef struct ec_group
    uint32 Ibytes;
    /** input pointer in IOmap buffer */
    uint8 *inputs;
-   /** has DC capabillity */
+   /** has DC capability */
    boolean hasdc;
    /** next DC slave */
    uint16 DCnext;
index 62498d8a8f1067c630eca0a73e15128196e24f8b..d91e8d595e1560ba95fa599953dd239ad95ce5b9 100644 (file)
@@ -87,7 +87,7 @@ OSAL_THREAD_FUNC_RT ecatthread(void)
             dowkccheck = 0;
          if (ctx.slavelist[0].hasdc && (wkc > 0))
          {
-            /* calulate toff to get linux time and DC synced */
+            /* calculate toff to get linux time and DC synced */
             ec_sync(ctx.DCtime, cycletime, &toff);
          }
          ecx_mbxhandler(&ctx, 0, 4);
@@ -104,7 +104,7 @@ OSAL_THREAD_FUNC ecatcheck(void)
    {
       if (inOP && ((dowkccheck > 2) || ctx.grouplist[currentgroup].docheckstate))
       {
-         /* one ore more slaves are not responding */
+         /* one or more slaves are not responding */
          ctx.grouplist[currentgroup].docheckstate = FALSE;
          ecx_readstate(&ctx);
          for (slaveix = 1; slaveix <= ctx.slavecount; slaveix++)
index ee8694e8b850dd4c2b58686b73fc2b6ee2ac0e7c..de787032f84150928df7ad60f6c617bd9aa7ded6 100644 (file)
@@ -161,7 +161,7 @@ OSAL_THREAD_FUNC ecatcheck(void *ptr)
             needlf = FALSE;
             printf("\n");
          }
-         /* one ore more slaves are not responding */
+         /* one or more slaves are not responding */
          ctx.grouplist[currentgroup].docheckstate = FALSE;
          ecx_readstate(&ctx);
          for (slaveix = 1; slaveix <= ctx.slavecount; slaveix++)
index 6d957624b52f3c841def47c86f3ac6a0fdf49f39..24f6bcc07fa6e7fbbaf176b89e32d98e30b4b098 100644 (file)
@@ -155,7 +155,7 @@ void test_eoe(ecx_contextt *context)
    /* Set the HOOK */
    ecx_EOEdefinehook(context, eoe_hook);
 
-   /* Create a asyncronous EoE reader */
+   /* Create an asynchronous EoE reader */
    osal_thread_create(&thread2, 128000, &mailbox_writer, context);
 }
 
@@ -306,7 +306,7 @@ OSAL_THREAD_FUNC ecatcheck(void *ptr)
             needlf = FALSE;
             printf("\n");
          }
-         /* one ore more slaves are not responding */
+         /* one or more slaves are not responding */
          ctx.grouplist[currentgroup].docheckstate = FALSE;
          ecx_readstate(&ctx);
          for (slaveix = 1; slaveix <= ctx.slavecount; slaveix++)
index f89c76c2521e26fe7b33f85f5ebb302f569fd362..b2de8d0a9ea6100a113ce2e5071137c0eda180a6 100644 (file)
@@ -219,7 +219,7 @@ OSAL_THREAD_FUNC_RT ecatthread(void *ptr)
 
          if (ctx.slavelist[0].hasdc)
          {
-            /* calulate toff to get linux time and DC synced */
+            /* calculate toff to get linux time and DC synced */
             ec_sync(ctx.DCtime, cycletime, &toff);
          }
          ecx_send_processdata(&ctx);
@@ -241,7 +241,7 @@ OSAL_THREAD_FUNC ecatcheck(void *ptr)
             needlf = FALSE;
             printf("\n");
          }
-         /* one ore more slaves are not responding */
+         /* one or more slaves are not responding */
          ctx.grouplist[currentgroup].docheckstate = FALSE;
          ecx_readstate(&ctx);
          for (slaveix = 1; slaveix <= ctx.slavecount; slaveix++)
index e8c26d64b02485019dfa9a411f24ccc76128bbff..cc0a80c5ec1274b92cdae2115a64f04e4c96290d 100644 (file)
@@ -84,7 +84,7 @@ fieldbus_start(Fieldbus *fieldbus)
           grp->Obytes, grp->Ibytes, grp->nsegments);
    if (grp->nsegments > 1)
    {
-      /* Show how slaves are distrubuted */
+      /* Show how slaves are distributed */
       for (i = 0; i < grp->nsegments; ++i)
       {
          printf("%s%d", i == 0 ? " (" : "+", grp->IOsegment[i]);
index c9d8e7cd4fe0f3fdea3f70de915578459dbaa719..b3c7ccfa1bb30f5eed8e03d00e6162082570eb9f 100644 (file)
@@ -157,7 +157,7 @@ OSAL_THREAD_FUNC ecatcheck(void *ptr)
             needlf = FALSE;
             printf("\n");
          }
-         /* one ore more slaves are not responding */
+         /* one or more slaves are not responding */
          ctx.grouplist[currentgroup].docheckstate = FALSE;
          ecx_readstate(&ctx);
          for (slaveix = 1; slaveix <= ctx.slavecount; slaveix++)
index 01b87e931b51029f1e6804e52e00bf265b6a1f39..d56b142343dab256735fc16627e5129070e23e8e 100644 (file)
@@ -99,7 +99,7 @@ int ecx_setupdatagram(ecx_portt *port, void *frame, uint8 com, uint8 idx, uint16
  * @param[in]  ADO        = Address Offset
  * @param[in]  length     = length of datagram excluding EtherCAT header
  * @param[in]  data       = databuffer to be copied in datagram
- * @return Offset to data in rx frame, usefull to retrieve data after RX.
+ * @return Offset to data in rx frame, useful to retrieve data after RX.
  */
 uint16 ecx_adddatagram(ecx_portt *port, void *frame, uint8 com, uint8 idx, boolean more, uint16 ADP, uint16 ADO, uint16 length, void *data)
 {
index 9df2821333218ca5f48c3f1a26148338843e4061..cb491802e5b5bb62d70dd78f6729f09a0c819243 100644 (file)
@@ -1057,7 +1057,7 @@ int ecx_readODlist(ecx_contextt *context, uint16 Slave, ec_ODlistt *pODlist)
    pODlist->Entries = 0;
    MbxIn = NULL;
    MbxOut = NULL;
-   /* Empty slave out mailbox if something is in. Timout set to 0 */
+   /* Empty slave out mailbox if something is in. Timeout set to 0 */
    wkc = ecx_mbxreceive(context, Slave, &MbxIn, 0);
    if (MbxIn) ecx_dropmbx(context, MbxIn);
    MbxOut = ecx_getmbx(context);
@@ -1184,7 +1184,7 @@ int ecx_readODdescription(ecx_contextt *context, uint16 Item, ec_ODlistt *pODlis
    pODlist->Name[Item][0] = 0;
    MbxIn = NULL;
    MbxOut = NULL;
-   /* Empty slave out mailbox if something is in. Timout set to 0 */
+   /* Empty slave out mailbox if something is in. Timeout set to 0 */
    wkc = ecx_mbxreceive(context, Slave, &MbxIn, 0);
    if (MbxIn) ecx_dropmbx(context, MbxIn);
    MbxOut = ecx_getmbx(context);
@@ -1276,7 +1276,7 @@ int ecx_readOEsingle(ecx_contextt *context, uint16 Item, uint8 SubI, ec_ODlistt
    Index = pODlist->Index[Item];
    MbxIn = NULL;
    MbxOut = NULL;
-   /* Empty slave out mailbox if something is in. Timout set to 0 */
+   /* Empty slave out mailbox if something is in. Timeout set to 0 */
    wkc = ecx_mbxreceive(context, Slave, &MbxIn, 0);
    if (MbxIn) ecx_dropmbx(context, MbxIn);
    MbxOut = ecx_getmbx(context);
index 83721c32af760ecf9ace5905de8a26252e998947..4a96729888894c9395651fdf1e7950fdfdbc1115 100644 (file)
@@ -76,7 +76,7 @@ int ecx_EOEsetIp(ecx_contextt *context, uint16 slave, uint8 port, eoe_param_t *i
 
    MbxIn = NULL;
    MbxOut = NULL;
-   /* Empty slave out mailbox if something is in. Timout set to 0 */
+   /* Empty slave out mailbox if something is in. Timeout set to 0 */
    wkc = ecx_mbxreceive(context, slave, &MbxIn, 0);
    MbxOut = ecx_getmbx(context);
    ec_clearmbx(MbxOut);
@@ -180,7 +180,7 @@ int ecx_EOEsetIp(ecx_contextt *context, uint16 slave, uint8 port, eoe_param_t *i
  * @param[in]  context    = Context struct
  * @param[in]  slave      = Slave number
  * @param[in]  port       = Port number on slave if applicable
- * @param[out] ipparam    = IP parameter data retrived from slave
+ * @param[out] ipparam    = IP parameter data retrieved from slave
  * @param[in]  timeout    = Timeout in us, standard is EC_TIMEOUTRXM
  * @return Workcounter from last slave response or returned result code
  */
@@ -195,7 +195,7 @@ int ecx_EOEgetIp(ecx_contextt *context, uint16 slave, uint8 port, eoe_param_t *i
 
    MbxIn = NULL;
    MbxOut = NULL;
-   /* Empty slave out mailbox if something is in. Timout set to 0 */
+   /* Empty slave out mailbox if something is in. Timeout set to 0 */
    wkc = ecx_mbxreceive(context, slave, &MbxIn, 0);
    MbxOut = ecx_getmbx(context);
    ec_clearmbx(MbxOut);
@@ -573,7 +573,7 @@ int ecx_EOEreadfragment(
       frameinfo1 = etohs(aEOEp->frameinfo1);
       frameinfo2 = etohs(aEOEp->frameinfo2);
 
-      /* Retrive fragment number, is it what we expect? */
+      /* Retrieve fragment number, is it what we expect? */
       if (*rxfragmentno != EOE_HDR_FRAG_NO_GET(frameinfo2))
       {
          /* If expected fragment number is not 0, reset working variables */
index 077aaa6277ab4587a6c559dbe762e8bd298a888f..2c3c7d92facec5c1a552efc0f0913cb464bea83c 100644 (file)
@@ -85,7 +85,7 @@ int ecx_FOEread(ecx_contextt *context, uint16 slave, char *filename, uint32 pass
    buffersize = *psize;
    MbxIn = NULL;
    MbxOut = NULL;
-   /* Empty slave out mailbox if something is in. Timout set to 0 */
+   /* Empty slave out mailbox if something is in. Timeout set to 0 */
    wkc = ecx_mbxreceive(context, slave, &MbxIn, 0);
    MbxOut = ecx_getmbx(context);
    ec_clearmbx(MbxOut);
@@ -225,7 +225,7 @@ int ecx_FOEwrite(ecx_contextt *context, uint16 slave, char *filename, uint32 pas
 
    MbxIn = NULL;
    MbxOut = NULL;
-   /* Empty slave out mailbox if something is in. Timout set to 0 */
+   /* Empty slave out mailbox if something is in. Timeout set to 0 */
    wkc = ecx_mbxreceive(context, slave, &MbxIn, 0);
    MbxOut = ecx_getmbx(context);
    ec_clearmbx(MbxOut);
index 909a7df8a48b05caad8545d1972f2b4834f993fe..b287417824df33e85504657dd88bfa549b3967ea 100644 (file)
@@ -1582,7 +1582,7 @@ int ecx_mbxsend(ecx_contextt *context, uint16 slave, ec_mbxbuft *mbx, int timeou
 /** Read OUT mailbox from slave.
  * Supports Mailbox Link Layer with repeat requests.
  * Mailbox is fetched from pool, caller is owner after return
- * and therefore should drop it back to the pool whe finished.
+ * and therefore should drop it back to the pool when finished.
  * @param[in]  context    = context struct
  * @param[in]  slave      = Slave number
  * @param[out] mbx        = Double pointer to mailbox data
index 2a3ec89ac79c6c4fd54efbf62ee91914f4a189d5..69aa09ef692e835169c48eebee89ffb48601b00c 100644 (file)
@@ -86,7 +86,7 @@ int ecx_SoEread(ecx_contextt *context, uint16 slave, uint8 driveNo, uint8 elemen
 
    MbxIn = NULL;
    MbxOut = NULL;
-   /* Empty slave out mailbox if something is in. Timout set to 0 */
+   /* Empty slave out mailbox if something is in. Timeout set to 0 */
    wkc = ecx_mbxreceive(context, slave, &MbxIn, 0);
    MbxOut = ecx_getmbx(context);
    ec_clearmbx(MbxOut);
@@ -213,7 +213,7 @@ int ecx_SoEwrite(ecx_contextt *context, uint16 slave, uint8 driveNo, uint8 eleme
 
    MbxIn = NULL;
    MbxOut = NULL;
-   /* Empty slave out mailbox if something is in. Timout set to 0 */
+   /* Empty slave out mailbox if something is in. Timeout set to 0 */
    wkc = ecx_mbxreceive(context, slave, &MbxIn, 0);
    hp = p;
    maxdata = context->slavelist[slave].mbx_l - sizeof(ec_SoEt);