]> git.feebdaed.xyz Git - 0xmirror/SOEM.git/commitdiff
Fix group type in mailbox handling api
authorHans-Erik Floryd <hans-erik.floryd@rt-labs.com>
Thu, 26 Jun 2025 20:22:37 +0000 (22:22 +0200)
committerHans-Erik Floryd <hans-erik.floryd@rt-labs.com>
Thu, 10 Jul 2025 08:23:07 +0000 (10:23 +0200)
Use uint8 consistently.

Change-Id: I18c98a461e620235a9208545a3cfa5da317ec919

include/soem/ec_main.h
src/ec_main.c

index eaccdfc253aaa9f8a3c8efe5333c74b989f351d3..7759acc01a0fc90f33bcbab44da04e70139833e7 100644 (file)
@@ -599,7 +599,7 @@ int ecx_send_processdata_group(ecx_contextt *context, uint8 group);
 ec_mbxbuft *ecx_getmbx(ecx_contextt *context);
 int ecx_dropmbx(ecx_contextt *context, ec_mbxbuft *mbx);
 int ecx_initmbxpool(ecx_contextt *context);
-int ecx_initmbxqueue(ecx_contextt *context, uint16 group);
+int ecx_initmbxqueue(ecx_contextt *context, uint8 group);
 int ecx_slavembxcyclic(ecx_contextt *context, uint16 slave);
 
 #ifdef __cplusplus
index 36f0eb05e49f9e934c9f85a636041ac878e27136..075347fbe2ea179a3ce5773626422f49e7955fb4 100644 (file)
@@ -333,7 +333,7 @@ int ecx_initmbxpool(ecx_contextt *context)
  * @param[in]  group          = group number
  * @return 0 on success.
  */
-int ecx_initmbxqueue(ecx_contextt *context, uint16 group)
+int ecx_initmbxqueue(ecx_contextt *context, uint8 group)
 {
    int retval = 0;
    int cnt;
@@ -435,7 +435,7 @@ int ecx_mbxexpirequeue(ecx_contextt *context, uint16 slave, int ticket)
  * @param[in]  ticketloc      = Ticket location in the queue
  * @return 1 on success, 0 if rotation is not possible.
  */
-int ecx_mbxrotatequeue(ecx_contextt *context, uint16 group, int ticketloc)
+int ecx_mbxrotatequeue(ecx_contextt *context, uint8 group, int ticketloc)
 {
    int retval = 0;
    int cnt = 0;
@@ -493,7 +493,7 @@ int ecx_slavembxcyclic(ecx_contextt *context, uint16 slave)
  * @param[in]  ticketloc      = Ticket location in the queue
  * @return Pointer to the dropped mailbox
  */
-ec_mbxbuft *ecx_mbxdropqueue(ecx_contextt *context, uint16 group, int ticketloc)
+ec_mbxbuft *ecx_mbxdropqueue(ecx_contextt *context, uint8 group, int ticketloc)
 {
    ec_mbxbuft *mbx;
    ec_mbxqueuet *mbxqueue = &(context->grouplist[group].mbxtxqueue);