Hi,
I am trying to use uint32_t variables as error flags.
bit shifting over 2 bytes results in a value of 0x0000 however, even when stored in a uint32_t
How can I set bits in the 3rd and 4th bytes of a uint32_t?? Thanks!
#include "stdint.h"
void main() {
uint32_t test = 0;
test |= (1<< 16);
if(test) {
return 0;
}
else {
return -1
}
}