develop FreeRTOS project where two tasks need to write to the same UART peripheral

@Middleware & OS Hello Guys, I was asked to develop FreeRTOS project where two tasks need to write to the same UART peripheral, while Implementing mutual exclusion using a mutex to prevent data corruption Please can anyone help me with this
13 Replies
barafael
barafael5mo ago
My 2 cents, take it out leave it: It seems many people are lately using freertos to do things which may not require using an rtos. If you can at all justify it, go for a non-rtos design first.
ZacckOsiemo
ZacckOsiemo5mo ago
I agree with the sentiment above, do you need RTOS for this, couldnt a busy flag work here?
Enthernet Code
Enthernet Code5mo ago
A busy flag could but my organization is more interested in implementing RTOS in each of their designs
ZacckOsiemo
ZacckOsiemo5mo ago
Also writes to a sensor so should almost be drop in
Enthernet Code
Enthernet Code5mo ago
Thanks, I really appreciate this, am using a vxworks
ZacckOsiemo
ZacckOsiemo5mo ago
I haven't used that one before
ZacckOsiemo
ZacckOsiemo5mo ago
Funny vxWorks is from Wind River
ZacckOsiemo
ZacckOsiemo5mo ago
that is the code that became Zephyr if you are interested
ZacckOsiemo
ZacckOsiemo5mo ago
check it out it may be more similar than you think
Enthernet Code
Enthernet Code5mo ago
I will go through the documentation you sent my and try implementing.
Enthernet Code
Enthernet Code5mo ago
This would be very helpful, I would do that now, thanks once again
Want results from more Discord servers?
Add your server