[Top][All Lists]

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

Re: [avr-libc-dev] PSTR() in static initialisers

From: Joerg Wunsch
Subject: Re: [avr-libc-dev] PSTR() in static initialisers
Date: Wed, 31 Jan 2018 21:04:55 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

As Paul "LeoNerd" Evans wrote:

> Does anyone have a suggestion on how I can have a string pointer to a
> flash-stored string in a static initialiser?

This only works by allocating each of the string into a variable
(well, constant actually) in flash by itself, and then mention their
names in the struct initializer.

cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

Never trust an operating system you don't have sources for. ;-)

reply via email to

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