Ok. I'm a bit ashamed to be posting such a trivial problem. But in the essence of saving time....
I would like to create a 32-bit mask variable by using the bitwise left shift operator. Here is my code.
unsigned long mask_variable;
unsigned long shift_value;
mask_variable = 0;
mask_variable |= 1 << shift_value;
Unfortunately, the mask_variable result after using a shift_value of 16 is 1111111100000000 and not 0000000100000000 as I had hoped. Can someone spot what I am doing wrong?