[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Antworten: [avr-gcc-list] Array of pointers to functions
From: |
Joerg Wunsch |
Subject: |
Re: Antworten: [avr-gcc-list] Array of pointers to functions |
Date: |
Mon, 19 Jul 2004 09:57:54 +0200 (MET DST) |
[Please avoid that `Antworten:' attribution. It's pointless to have
internationalized attributions anyway -- consider someone would start
to write Japanese there, and the next one replied in Chinese --, and
together with the `References' header your MUA just drops, it
completely breaks more intelligent mail/news software that tries to
display the discussion threads.]
"Martin Krüger " <address@hidden> wrote:
> Try this:
>
>
> void (*func)();
> func=3D(__LPM_word_classic__((PGM_P)call_fun[0]));
Don't use the __LPM* macros directly. Use pgm_read_word() (or its
descendants, pgm_read_word_near/pgm_read_word_far on the ATmega128).
--
J"org Wunsch Unix support engineer
address@hidden http://www.interface-systems.de/~j/