This example shows how to use multiple signals from the main thread in mbed-os.
The sample sets up two Tickers to generate periodic interrupts. Each ticker sets a signal during an interrupt.
osSignalWait(signal, timeout) is used to wait for an event. Set signal to 0 to exit on any signal or set signal to a mask value to only exit if all of the signals are set.
History
Removed one of the osSignalWait sections to make the demo clearer.
2016-09-08, by argusbrown [Thu, 08 Sep 2016 21:33:41 +0000] rev 1
Removed one of the osSignalWait sections to make the demo clearer.
A demonstration of using multiple signals from the main thread
2016-09-08, by argusbrown [Thu, 08 Sep 2016 21:17:19 +0000] rev 0
A demonstration of using multiple signals from the main thread