[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] strange c
From: |
Joerg Wunsch |
Subject: |
Re: [avr-gcc-list] strange c |
Date: |
Tue, 18 Dec 2001 18:15:26 +0100 (MET) |
Christian Ludlam <address@hidden> wrote:
> It converts a bit /number/ into a bit /mask/. TOIE1 is defined as 7
> (for an AVR 2313), but to set bit 7 in the TIMSK register you need
> to OR it with the value 0x80, or 1<<7.
Btw., the "politically correct" method in avr-gcc would be to write
BV(TOIE1)
instead. Makes the code better readable.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/