chipKIT® Development Platform

Inspired by Arduino™

avr/pgspace.h

Created Sun, 18 Mar 2012 11:20:26 +0000 by knChip


knChip

Sun, 18 Mar 2012 11:20:26 +0000

Hi, WhenI refer to the chipkit wiki at [url]http://www.chipkit.cc/wiki/index.php?title=Header_Files[/url] it is mentioned to add the PROGMEM specific definition if the processor is PIC32MX. Are they suggestiing to modify the avr/pgspace.h? What would happen if we upgrade the MPIDE at later stage, will this not get over written? Would it be good to have this taken care by MPIDE when the processor selection is PIC32?

Thanks, Narayanan


Jacob Christ

Sat, 24 Mar 2012 06:01:46 +0000

You can mod avr/pgrspace.h, but you don't need to. You can just not include it and add the macro's to your code...

If you did modify avr/pgrspace.h, it would be good to try to submit this as an upstream fix for avr/pgspace.h so that, as you say, if you upgrade you will have to fix this again and again.

Jacob


knChip

Sat, 24 Mar 2012 15:54:26 +0000

Hi Jacob, Thanks for the info. Regards, KN


Verdris

Wed, 28 Mar 2012 22:19:05 +0000

What about avr/io.h?


Jacob Christ

Thu, 29 Mar 2012 06:54:20 +0000

What about avr/io.h?

I don't know about that, sorry...

Jacob