STM32CubeU5 icon indicating copy to clipboard operation
STM32CubeU5 copied to clipboard

osEventFlagsWait with options

Open albetaCOM opened this issue 3 years ago • 2 comments

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.

albetaCOM avatar Jul 01 '22 08:07 albetaCOM

ST Internal Reference: 131718

ASELSTM avatar Jul 12 '22 15:07 ASELSTM

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;
  }

matth314 avatar Aug 23 '22 07:08 matth314

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,

ASELSTM avatar Apr 06 '23 10:04 ASELSTM