I'm using atmel studio 6.1 with a code containing but on compilation conpiler gives error as mentioned above and after googling error,I found that this variable progmem has been depriciated,but no solution for fixing it. so anyone can plz help me? I'm writing this code for ATmega32 to control GLCD JHD12864E. excerpt of code
#ifndef _FONT_H_
#define _FONT_H_
#define __PROG_TYPES_COMPAT__
#include "avr/pgmspace.h"
#include "types.h"
//Constants
#define FONT_OFFSET_WIDTH 2
#define FONT_OFFSET_HEIGHT 3
#define FONT_OFFSET_FIRSTCHAR 4
#define FONT_OFFSET_CHARCOUNT 5
#define FONT_OFFSET_WTABLE 6
//Main Selected Font
const __progmem__ *font;
//Functions
void __GFXInitFont();
UINT8 GFXGetFontHeight();
UINT8 __GFXReadFontData(UINT16 add);
UINT8 __GFXReadPGM(const __progmem__ *ptr);
void GFXSetFont(const __progmem__ *new_font);
#endif
__progmem__
. Perhaps there is a header file which defines__progmem__
. – Kaz Aug 30 '13 at 6:30void
oruint8_t
would do depending on how the library is written. – PeterJ Aug 30 '13 at 6:58<avr/pgmspace.h>
. It looks likePGM_P
is the data type you are looking for. – Hanno Binder Aug 30 '13 at 8:42