а что не так с использованием флагов? вроде можно ждать установки/сброса любого бита в OS_FLAGS
OS_FLAGS OSFlagPend( OS_FLAG_GRP *pgrp, OS_FLAGS flags, INT8U wait_type, INT32U timeout, INT8U *perr);
flags - is a bit pattern indicating which bit(s) (i.e., flags) you wish to check. The bits you want are specified by setting the corresponding bits in flags
wait_type - specifies whether you want all bits to be set/cleared or any of the bits to be set/cleared. You can specify the following arguments: OS_FLAG_WAIT_SET_ANY OS_FLAG_WAIT_CLR_ANY ...
/Gr
|