[En-Nut-Discussion] Possible brackage, More progmem use for AVR
bon at elektron.ikp.physik.tu-darmstadt.de
bon at elektron.ikp.physik.tu-darmstadt.de
Tue Oct 1 13:17:50 CEST 2013
>>>>> "Ole" == Ole Reinhardt <ole.reinhardt at embedded-it.de> writes:
Ole> Hi!
>> to move constants to flash for AVR8 in putf by using PROGMEM, PSTR
>> and friends, I had to add some PROGMEM related definitions to arm.h
>> and cm3.h
Ole> I had to add toolchain.h as include to putf.c, otherwise the
Ole> PROGMEM definde was not found.
Ole> I've just checked in the patch. Have you used PROGMEM at any other
Ole> place as well?
Not yet. But using progmem in nut/dev for printf, memcpy and friends will
free RAM on AVR8.
I think it is worth to do so. Feedback welcome!
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion
mailing list