STM32CubeU5
STM32CubeU5 copied to clipboard
osEventFlagsWait with options
osEventFlagsWait with wait options osFlagsWaitAny (OR) and osFlagsWaitAll (AND)
IMPORTANT INFORMATION
Contributor License Agreement (CLA)
- The Pull Request feature will be considered by STMicroelectronics after the signature of a Contributor License Agreement (CLA) by the submitter.
- If you did not sign such agreement, please follow the steps mentioned in the CONTRIBUTING.md file.
ST Internal Reference: 131718
We also modified this part in our code, but I think we did clearer code with less cyclomatic complexity:
if (options == osFlagsNoClear)
{
get_option = TX_OR;
}
else if (options == osFlagsWaitAny)
{
get_option = TX_OR_CLEAR;
}
else if (options == (osFlagsWaitAll | osFlagsNoClear) )
{
get_option = TX_AND;
}
else
{
get_option = TX_AND_CLEAR;
}
Hi @albetaCOM,
Thank you for your contribution. This issue has been fixed in the frame of version v1.2.0 of the STM32CubeU5. Please allow me then to close this thread.
With regards,