mehipour
Junior Member level 2
help on avr programming
hi folks,
I programming AVR ATmega32 for an embedded web-server. There's this C language Syntax that I have confronted and I don't understand.
(PINB &(1<<PB2)) == 0)
I didn't fully understand the meaning of this syntax. I suppose that PINB is the portb register and PB2 is the third bit of this port which is used as an interrupt.
thanks a lot,
Mehipour
hi folks,
I programming AVR ATmega32 for an embedded web-server. There's this C language Syntax that I have confronted and I don't understand.
(PINB &(1<<PB2)) == 0)
I didn't fully understand the meaning of this syntax. I suppose that PINB is the portb register and PB2 is the third bit of this port which is used as an interrupt.
thanks a lot,
Mehipour