[Top][All Lists]

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

Re: [avr-gcc-list] mega48 compile errors

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] mega48 compile errors
Date: Tue, 13 Dec 2005 06:56:13 +0100 (MET)

"dan st. clair" <address@hidden> wrote:

> i'm having some trouble compiling for the atmega48 (assembly).

That's why people have invented compilers. ;-)  They handle
things like this one automatically for you...  SCNR.

> the following line of code + error is representative:

>    28 ???? 06B9          out             _SFR_IO_ADDR(OSCCAL), work
> ****  Error:number must be less than 64

> how can i write to registers like OSCCAL or CLKPR?

By using _SFR_MEM_ADDR() because they are only available through
memory-mapped IO.

cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

reply via email to

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