Other Parts Discussed in Thread: SYSBIOS
Hello,
We are migrating an existing project from Dsp/Bios to Sys/Bios. We are to the point of compiling the project with all legacy function calls. One error we are getting is the usage of freeSem from Dsp/Bios. I can't seem to locate the replacement in Sys/Bios.
More details...
We have the existing code:
if (theMbx->mbx->freeSem.count <= 1)
Which we are using to detect the mbx is getting full.
freeSem was part of the MBX_Obj in bios_5_42_01_09, but is not found in bios_6_41_00_26. I do find something similar in Mailbox.h from bios_6_41_00_26 named Mailbox_getNumFreeMsgs() but it is not defined due to the definition of ti_sysbios_knl_Mailbox__nolocalnames in mbx.h.
I thought of two solutions, both require a modification to mbx.h, which I don't want to do as that will be a maintenance issue moving forward.
So, I guess I am missing something fundamental here. Perhaps a different way to accomplish the same functionality, detecting the mailbox is almost full.