|
From: | Abdul Malik Khan |
Subject: | Re: [avr-gcc-list] Using PORTB with variables, PORTB = var |
Date: | Sat, 22 Apr 2006 11:22:06 +0500 |
Hiyas,
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?
Thanks,
Chris-
_______________________________________________
AVR-GCC-list mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list
[Prev in Thread] | Current Thread | [Next in Thread] |