Tool/software: TI C/C++ Compiler
Hi every body,
i am trying to get familiar with MISRA rules recently,
i used the function:
SysCtlClockSet(SYSCTL_SYSDIV_2_5|SYSCTL_USE_PLL|SYSCTL_OSC_MAIN|SYSCTL_XTAL_16MHZ);
and have these:
#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
#1406-D (MISRA-C:2004 12.7/R) Bitwise operators shall not be applied to operands whose underlying type is signed
and when i try to enable any peripheral :
SysCtlPeripheralEnable(SYSCTL_PERIPH_CAN0) ; while(!SysCtlPeripheralReady(SYSCTL_PERIPH_CAN0)){}
i have this warnings:
#1464-D (MISRA-C:2004 10.6/R) A "U" suffix shall be applied to all constants of unsigned type
any one can help?
thanks
Sarea