I am somewhat stucked at a part of the code that gives MISRA C 2004 10.5 violation but am not able to figure out what exactly might be the cause.
I have defined this MACRO to get the power of 2.
The code which shows the violation is
#define tmM_pow2_16bit(x) ((tm_uint16)((tm_uint16)1U<<((tm_uint16)x)))
The message that comes from the static analysis tool is
Shift left of signed quantity (int) [MISRA 2004 Rule 10.5, required]
Thank you