13.4.3 Eventflag information
Define the following items as eventflag information:
The number of eventflag information items that can be specified is defined as being within the range of 0 to 127.
The following shows the eventflag information format.
CRE_FLG ( flgid, { flgatr, iflgptn } );
|
The items constituting the eventflag information are as follows.
1 ) Eventflag name:
flgid
Specifies the eventflag name.
An object name can be specified for
flgid.
Note The CF78V4 outputs to the system information header file the correspondence between the eventflag names and IDs, in the following format. Consequently, eventflag names can be used in the place of IDs by including the relevant system information header file using the processing program.
[ Output format to system information header file (for C) ]
[ Output format to system information header file (for assembly language) ]
2 ) Attribute (queuing method, queuing count, bit pattern clear):
flgatr
Specifies the attributes (queuing method, queuing count, clear) of the eventflag.
The keywords that can be specified for
flgatr are TA_TFIFO, TA_WSGL and TA_CLR.
TA_TFIFO: If the bit pattern of the eventflag does not satisfy the required condition when
wai_flg or
twai_flg is issued, the task is queued to the eventflag wait queue.
TA_WSGL: Only one task is allowed to be in the waiting state for the eventflag.
TA_CLR: Bit pattern is cleared when a task is released from the waiting state for that eventflag.
Note If specification of TA_CLR is omitted, "not clear bit patterns if the required condition is satisfied" is set.
3 ) System-reserved area:
iflgptn
System-reserved area.
Values that can be specified for
iflgptn are limited to 0.