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
barafael7mo 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
ZacckOsiemo7mo ago
I agree with the sentiment above, do you need RTOS for this, couldnt a busy flag work here?
Enthernet Code
Enthernet Code7mo ago
A busy flag could but my organization is more interested in implementing RTOS in each of their designs
ZacckOsiemo
ZacckOsiemo7mo ago
Also writes to a sensor so should almost be drop in
Enthernet Code
Enthernet Code7mo ago
Thanks, I really appreciate this, am using a vxworks
ZacckOsiemo
ZacckOsiemo7mo ago
I haven't used that one before
ZacckOsiemo
ZacckOsiemo7mo ago
Funny vxWorks is from Wind River
ZacckOsiemo
ZacckOsiemo7mo ago
that is the code that became Zephyr if you are interested
ZacckOsiemo
ZacckOsiemo7mo ago
check it out it may be more similar than you think
Enthernet Code
Enthernet Code7mo ago
I will go through the documentation you sent my and try implementing.
Enthernet Code
Enthernet Code7mo ago
This would be very helpful, I would do that now, thanks once again
Want results from more Discord servers?
Add your server