[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-libc-dev] malloc bug ?
From: |
Joerg Wunsch |
Subject: |
Re: [avr-libc-dev] malloc bug ? |
Date: |
Mon, 9 Sep 2002 13:35:41 +0200 |
User-agent: |
Mutt/1.2.5i |
As daniel_laptop wrote:
> > I think you're right. Instead, we should probably just include
> > <avr/io.h>, and use (char *)SP instead.
> Will avr/io.h work in this file (compiled for all divice versions) ?
Alas, it doesn't. While this file is compiled four times for the
various devices, this is done using the generic device model name
(-mavr2 etc.), which doesn't cause any <avr/ioXXX.h> to be included.
Maybe we should add fallback definitions for SP/SPL/SPH and SREG at
the end of <avr/io.h>? Their register numbers are (so far ;-) the
same across the entire AVR device line. I agree with Ted that
hardcoding register numbers inside source files is just evil.
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/
- [avr-libc-dev] malloc bug ?, daniel_laptop, 2002/09/08
- Re: [avr-libc-dev] malloc bug ?, Joerg Wunsch, 2002/09/08
- Re: [avr-libc-dev] malloc bug ?, daniel_laptop, 2002/09/08
- Re: [avr-libc-dev] malloc bug ?,
Joerg Wunsch <=
- Re: [avr-libc-dev] malloc bug ?, Theodore A. Roth, 2002/09/09
- Re: [avr-libc-dev] malloc bug ?, Joerg Wunsch, 2002/09/09
- Re: [avr-libc-dev] malloc bug ?, E. Weddington, 2002/09/09
- Re: [avr-libc-dev] malloc bug ?, Theodore A. Roth, 2002/09/09
- [avr-libc-dev] testsuite, Theodore A. Roth, 2002/09/09
- Re: [avr-libc-dev] testsuite, Joerg Wunsch, 2002/09/09
- Re: [avr-libc-dev] testsuite, Theodore A. Roth, 2002/09/09
- Re: [avr-libc-dev] testsuite, Joerg Wunsch, 2002/09/09
- Re: [avr-libc-dev] testsuite, Theodore A. Roth, 2002/09/09
Re: [avr-libc-dev] malloc bug ?, daniel_laptop, 2002/09/08