Dear all,
My compiler throw a waring "warning: #61-D: integer operation result is out of range" but I think is a bug of the compiler because it have no sense. This is the warning line:
GPIOB->CRL &= ~(0xF << (7 * 4))
0xF << 28 times is in the range of the CRL register... can anybody tell me the reason of this?
Thanks for all
No, you can't remove it.
But dont' worry. This forum is full of "bug" threads ;)
And yes - it is good practice to think about your data types and consider using u after numbers when you want unsigned arithmetic.