[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] port access with avr-gdb
From: |
Ned Konz |
Subject: |
Re: [avr-gcc-list] port access with avr-gdb |
Date: |
Sun, 20 Jun 2004 22:13:09 -0700 |
User-agent: |
KMail/1.6.2 |
On Sunday 20 June 2004 9:34 pm, Dave Hylands wrote:
> Pretty much. You would either write:
>
> tccr3a &= ~(BV(WGM31) | BV(WGM30) | BV(COM3A1));
> tccr3a |= BV(COM3A0);
>
> Or
>
> tccr3abits.wgm31 = 0;
> tccr3abits.wgm30 = 0;
> tccr3abits.com3a1 = 0;
> tccr3abits.com3a0 = 1;
>
> Just subtley different from what you wrote.
But why not use wider bitfields?
tccr3abits.wgm3 = 0;
tccr3abits.com3a = 1;
--
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE
- Re: [avr-gcc-list] port access with avr-gdb, (continued)
- RE: [avr-gcc-list] port access with avr-gdb, Dave Hylands, 2004/06/18
- RE: [avr-gcc-list] port access with avr-gdb, Dave Hylands, 2004/06/18
- RE: [avr-gcc-list] port access with avr-gdb, Dave Hylands, 2004/06/21
- Re: [avr-gcc-list] port access with avr-gdb,
Ned Konz <=
- RE: [avr-gcc-list] port access with avr-gdb, Dave Hylands, 2004/06/21