[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] Using PORTB with variables, PORTB = var

From: unauthorized
Subject: [avr-gcc-list] Using PORTB with variables, PORTB = var
Date: Sat, 22 Apr 2006 15:50:50 +1000


  How can I use the PORTB constant with variables? eg:

while (1) {
  var <<= 1;
  PORTB = var

That is what I'm trying to acheive.  I'd like to be able to do it with variables
like I do above, but it doesn't seem to work.  Once I replace "var" with an
actual number, it works as expected.

Can someone help me out here?  URL? reference?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]