multithread support with IAR libraries
Can anyone assist me with the FreeRTOS implimentation of enabling thread safe support with IAR and their functions below please?
~~~
typedef void iar_Rmtx; /* Lock info object */
void __iar_system_Mtxinit(iar_Rmtx *); / Initialize a system
lock /
void iar_system_Mtxdst(iar_Rmtx *); /Destroy a system lock /
void iar_system_Mtxlock(iar_Rmtx *); / Lock a system lock /
void iar_system_Mtxunlock(iar_Rmtx *); / Unlock a system lock */
~~~
multithread support with IAR libraries
I beleve that their is code in FreeRTOS to handle the newlib equivalent of these. bsically Mtxinit should create a mutex and store the handle into the the object passed to it. Mtxlock should take that mutex, and Mtxunlock should give it back, and Mtxdst should delete the mutex.