Getting the LED light up... (A&M Rattler 8250PCI linux 2.6.13-AM)
Robert Staven
robertst at tihlde.org
Mon Mar 5 22:21:26 EST 2007
>> #define P0 0x8000 // P0 bit in registers
>> #define P1 0x4000 // P1 bit in registers
>> #define P2 0x2000 // P2 bit in registers
>
>
> Shouldn't that be
> #define P0 0x80000000 // P0 bit in registers
> #define P1 0x40000000 // P1 bit in registers
> #define P2 0x20000000 // P2 bit in registers
> ?
<shamed>Hmmm, next time I'll better use my calculator figuring out how
many digits there is in a 32bit hex number... :P </shamed>
Many thanks for the assistance Laurent! (the LED came to life)
And you all may have a good long laugh of me now, I deserve it! :)
br
Robert
More information about the Linuxppc-embedded
mailing list