Newbie question. I'm looking at the Atmel example code for the ATmega328P Xplained Mini. I see where the USART tx and rx circuits are turned on by turning setting the RXEN0 and TXEN0 to 1 in the UCSR0B register:
UCSR0B = (1 << RXEN0) | (1 << TXEN0);
I'm just trying to understand the syntax. Looks like a bitwise OR.
But, what exactly is the meaning of the syntax 1 << RXEN0? It looks like a bit shift left. But, if they were trying to do that, I would expect them to be reversed around the '<<', and shifting left I would expect the bits to go to 0. So, 1 << RXEN0 must mean something else? Thanks ...