mirror of
https://github.com/OpenEtherCATsociety/SOEM.git
synced 2026-03-24 00:12:37 +08:00
Fix typos and grammar errors in comments
- Fix header comment in ec_eoe.h referencing wrong source file (ec_foe.c -> ec_eoe.c) - Fix redundant wording "Free memory allocated memory" -> "Free allocated memory" in oshw.c files - Fix typo "lenghts" -> "lengths" in macosx/nicdrv.h - Fix typo "incomming" -> "incoming" in rtems/nicdrv.c - Fix double word "the the" -> "to the" in vxworks/nicdrv.c Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Hans-Erik Floryd
parent
e0fd251657
commit
791b782a59
@@ -71,7 +71,7 @@ ec_adaptert *oshw_find_adapters(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/** Free memory allocated memory used by adapter collection.
|
||||
/** Free allocated memory used by adapter collection.
|
||||
* @param[in] adapter = First element in linked list of adapters
|
||||
* EC_NOFRAME.
|
||||
*/
|
||||
|
||||
@@ -39,7 +39,7 @@ ec_adaptert *oshw_find_adapters(void)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/** Free memory allocated memory used by adapter collection.
|
||||
/** Free allocated memory used by adapter collection.
|
||||
* @param[in] adapter = First element in linked list of adapters
|
||||
* EC_NOFRAME.
|
||||
*/
|
||||
|
||||
@@ -69,7 +69,7 @@ typedef struct
|
||||
int tempinbufs;
|
||||
/** transmit buffers */
|
||||
ec_bufT txbuf[EC_MAXBUF];
|
||||
/** transmit buffer lenghts */
|
||||
/** transmit buffer lengths */
|
||||
int txbuflength[EC_MAXBUF];
|
||||
/** temporary tx buffer */
|
||||
ec_bufT txbuf2;
|
||||
|
||||
@@ -93,7 +93,7 @@ ec_adaptert *oshw_find_adapters(void)
|
||||
return ret_adapter;
|
||||
}
|
||||
|
||||
/** Free memory allocated memory used by adapter collection.
|
||||
/** Free allocated memory used by adapter collection.
|
||||
* @param[in] adapter = First element in linked list of adapters
|
||||
* EC_NOFRAME.
|
||||
*/
|
||||
|
||||
@@ -205,7 +205,7 @@ int ecx_setupnic(ecx_portt *port, const char *ifname, int secondary)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Listen only to incomming messages */
|
||||
/* Listen only to incoming messages */
|
||||
uint direction = BPF_D_IN;
|
||||
if (ioctl(*bpf, BIOCSDIRECTION, &direction) == -1)
|
||||
{
|
||||
|
||||
@@ -93,7 +93,7 @@ ec_adaptert *oshw_find_adapters(void)
|
||||
return ret_adapter;
|
||||
}
|
||||
|
||||
/** Free memory allocated memory used by adapter collection.
|
||||
/** Free allocated memory used by adapter collection.
|
||||
* @param[in] adapter = First element in linked list of adapters
|
||||
* EC_NOFRAME.
|
||||
*/
|
||||
|
||||
@@ -716,7 +716,7 @@ static int ecx_recvpkt(ecx_portt *port, uint8 idx, int stacknumber, M_BLK_ID *pM
|
||||
* read frame with transmitted frame. Frames are received by separate receiver
|
||||
* task tNet0 (default), tNet0 fetch what frame index and store a reference to the
|
||||
* received frame in matching MsgQ. The stack user tasks fetch the frame
|
||||
* reference and copies the frame the the RX buffer, when done it free
|
||||
* reference and copies the frame to the RX buffer, when done it free
|
||||
* the frame buffer allocated by the Mux.
|
||||
*
|
||||
* @param[in] port = port context struct
|
||||
|
||||
@@ -50,7 +50,7 @@ ec_adaptert *oshw_find_adapters(void)
|
||||
return ret_adapter;
|
||||
}
|
||||
|
||||
/** Free memory allocated memory used by adapter collection.
|
||||
/** Free allocated memory used by adapter collection.
|
||||
* @param[in] adapter = First element in linked list of adapters
|
||||
* EC_NOFRAME.
|
||||
*/
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
/** \file
|
||||
* \brief
|
||||
* Headerfile for ec_foe.c
|
||||
* Headerfile for ec_eoe.c
|
||||
*/
|
||||
|
||||
#ifndef _ec_eoe_
|
||||
|
||||
@@ -92,7 +92,7 @@ ec_adaptert *oshw_find_adapters(void)
|
||||
return ret_adapter;
|
||||
}
|
||||
|
||||
/** Free memory allocated memory used by adapter collection.
|
||||
/** Free allocated memory used by adapter collection.
|
||||
* @param[in] adapter = First element in linked list of adapters
|
||||
* EC_NOFRAME.
|
||||
*/
|
||||
|
||||
@@ -44,7 +44,7 @@ ec_adaptert *oshw_find_adapters(void)
|
||||
return ret_adapter;
|
||||
}
|
||||
|
||||
/** Free memory allocated memory used by adapter collection.
|
||||
/** Free allocated memory used by adapter collection.
|
||||
* @param[in] adapter = First element in linked list of adapters
|
||||
* EC_NOFRAME.
|
||||
*/
|
||||
|
||||
@@ -96,7 +96,7 @@ ec_adaptert *oshw_find_adapters(void)
|
||||
return ret_adapter;
|
||||
}
|
||||
|
||||
/** Free memory allocated memory used by adapter collection.
|
||||
/** Free allocated memory used by adapter collection.
|
||||
* @param[in] adapter = First element in linked list of adapters
|
||||
* EC_NOFRAME.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user