This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS320F28069: Bitfield manupulation generates MISRA C error 10.1

Part Number: TMS320F28069

Tool/software: TI C/C++ Compiler

Hi, 

I enabled the MISRA C 2004 check from project properties and trying to make my motor control as comliant to MISRA C as possible.

Whenever i access a bitfield in the following format i get MISRA C warning.

GpioDataRegs.GPATOGGLE.bit.GPIO18=1;

'Description	Resource	Path	Location	Type
#1393-D (MISRA-C:2004 10.1/R) The value of an expression of integer type shall not be implicitly converted to a different underlying type if it is not a conversion to a wider integer type of the same signedness	main.c	/FOC	line 213	C/C++ Problem
'

How to avoid this warning?

Regards,

Shadab