 |
|
 |
MESC TOOL NEWS:
MESCT-MR32R-980801D
MR32R V.2.00 Release 1 Precaution
|
Please take note of the following problem in using real-time OS MR32R V.2.00 for the M32R/D series of microcomputers.
On Type Casting in Using trcv_msg, twai_flg, and twai_sem
The types of arguments for system calls trcv_msg, twai_flg, and twai_sem should be as follows:
--------------------------------------------------------------------
trcv_msg(PT_MSG *, ID, TMO);
twai_flg(UINT *, ID, UINT, UINT, TMO);
twai_sem(ID, TMO);
--------------------------------------------------------------------
If types different from these are used, cast their types explicitly to the ones described above.
--------------------------------------------------------------------
[Example]
trcv_msg( (PT_MSG *)&msg1, (ID)ID_msg1, (TMO)0xFF );
twai_flg( (UINT *)&dummy1, (ID)ID_flg1,
(UINT)0xFF00, (UINT)TWF_ANDW , (TMO)0xFF );
twai_sem( (ID)ID_sem1, (TMO)0xFF );
--------------------------------------------------------------------
|
 |