Everything

17.5.3 Eventflag information

The eventflag information defines ID number: flgid, Attribute: flgatr, Initial bit pattern: iflgptn for an eventflag.
The number of items that can be defined as eventflag information is limited to one for each ID number.
The following shows the eventflag information format.
 CRE_FLG (flgid, { flgatr, iflgptn });

The items constituting the eventflag information are as follows.
1 ) ID number: flgid
Specifies the ID number for an eventflag.
A value from 0x1 to 0xff, or a name, can be specified for flgid.
Note When a name is specified, the CF850V4 automatically assigns an ID number.
The CF850V4 outputs the relationship between a name and an ID number to the system information header file in the following format:
 #define flgid   value
2 ) Attribute: flgatr
Specifies the attribute for an eventflag.
The keyword that can be specified for flgatr is TA_TFIFO, TA_TPRI, TA_WSGL, TA_WMUL and TA_CLR.
[Task queuing method]
TA_TFIFO: Task wait queue is in FIFO order.
TA_TPRI: Task wait queue is in task priority order.
[Queuing count]
TA_WSGL: Only one task is allowed to be in the WAITING state for the eventflag.
TA_WMUL: Multiple tasks are allowed to be in the WAITING state for the eventflag.
[Bit pattern clear]
TA_CLR: Bit pattern is cleared when a task is released from the WAITING state for eventflag.
Note 1 If specification of TA_TFIFO and TA_TPRI is omitted, tasks are queued in the order of bit pattern checking.
Note 2 If specification of TA_CLR is omitted, "not clear bit patterns if the required condition is satisfied" is set.
3 ) Initial bit pattern: iflgptn
Specifies the initial bit pattern for an eventflag.
A value from 0x0 to 0xffffffff can be specifies for iflgptn.