HAL_AVR: fixed warnings on all PSTR() usage

This commit is contained in:
Andrew Tridgell 2012-12-07 09:50:42 +11:00
parent 857c0b69e5
commit b1856bc17e

View File

@ -14,6 +14,9 @@ typedef struct {
char c; char c;
} prog_char_t; } prog_char_t;
#undef PROGMEM
#define PROGMEM __attribute__(( section(".progmem.data") ))
#undef PSTR #undef PSTR
/* Need const type for progmem - new for avr-gcc 4.6 */ /* Need const type for progmem - new for avr-gcc 4.6 */
#if __AVR__ && __GNUC__ == 4 && __GNUC_MINOR__ > 5 #if __AVR__ && __GNUC__ == 4 && __GNUC_MINOR__ > 5