Revert "magic PROGMEM defines to avoid hundreds of wrong GCC warnings"

This reverts commit 3682d9bd5b.
This commit is contained in:
MaikStohn
2012-05-04 12:24:07 +02:00
parent d188ae4c9d
commit b657a18449
2 changed files with 7 additions and 14 deletions

View File

@@ -20,13 +20,6 @@
#include <avr/wdt.h>
#include <avr/interrupt.h>
//do some magic defines in order to prevent hundreds of wrong warnings in gcc
//more info here: http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=646359
typedef short prog_short PROGMEM;
#undef PROGMEM
#define PROGMEM __attribute__(( section(".progmem.data") ))
#undef PSTR
#define PSTR(s) (__extension__({static prog_char __c[] PROGMEM = (s); &__c[0];}))
#include "fastio.h"
#include "Configuration.h"