We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi, experts.
I'm recently working on CMSIS-RTOS API with MDK-ARM V5.1, on STM32F103 MCU.
I'd like to know how to wait for multiple threads.(and mode)
and
I'd like to know how to wait for any one of thread.(or mode)
I've find the example of waiting for one thread.
refer to:
http://www.keil.com/pack/doc/cmsis/RTOS/html/group___c_m_s_i_s___r_t_o_s___signal_mgmt.html#ga38860acda96df47da6923348d96fc4c9
But, I can't find the example of waiting for multiple threads.
I'm appreciated for your prompt response.
Sincerely yours
Nagaoka
Hello Tino,
did you have a look at the example projects that are part of MDK v5? Usually, the RTOS-Blinky project comes with four threads that are simulating a stepper motor driver. Please check this example: open Pack Installer, go to the Examples tab, filter for Category "Getting Started" and Copy the CMSIS-RTOS Blinky (MCBSTM32F200). Opening the project, please check the source code. This should explain how to work with multiple threads. Also, check the documentation for CMSIS-RTOS RTX available at CMSIS-RTOS RTX: CMSIS-RTOS compliant Kernel.
Kind regards,
Christopher
Hello Mr.Christopher
Thank you for your prompt response.
I've overlooked following description at CMSIS-RTOS RTX: Signal Management.
parameters
[in] signals: wait until all specified signal flags set or 0 for any signal flag.
in other wards
0: thread become wait_or state.
except for 0: thread become wait_and state.
Sincerely yours,