Replies: 1 comment 5 replies
-
It should be safe, and if it's not then I'm sure it can be made so. (It's not tested, though, so be prepared to debug a little!) If you're only using a single thread to talk to each SerialPIO there shouldn't be a need to use a mutex to control access. In fact, there's already one (like in the SerialUSB/UART) to enable both cores to write to it. The only thing I can see that could be a problem is calling |
Beta Was this translation helpful? Give feedback.
-
The FreeRTOS doc page says that
"While the core now supports FreeRTOS, most (probably all) Arduino libraries were not written to support preemptive multithreading."
How about SerialPIO? I want to create two separate tasks that use a few software serial UART interfaces and if I use mutexes to guard each individual SerialPIO instance - should it be okay? In other words, is it safe to use different software UARTS simultaneously from different threads.
Thank you!!
Beta Was this translation helpful? Give feedback.
All reactions