I am working on a Tiva launchpad board and want to use the GPIO. I have successfully enabled the clock on PORTF using this line of code:
SYSCTL_RCGCGPIO_R = 0x20U;
So I tried changing the above line to the one shown below:
SYSCTL_RCGCGPIO_R |= (5 << 1U);
This did not work. Will someone explain the difference between the two.