You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
323 B
18 lines
323 B
/**
|
|
* Progmem support
|
|
*/
|
|
|
|
#ifndef UFB_PROGMEM_H
|
|
#define UFB_PROGMEM_H
|
|
|
|
|
|
// if built for AVR, uncommend the include and comment the fake defines:
|
|
// #define IS_AVR 1
|
|
// #include <avr/pgmspace.h>
|
|
|
|
#define IS_AVR 0
|
|
#define PROGMEM
|
|
#define pgm_read_byte(adr) (*adr)
|
|
#define pgm_read_dword(adr) (*adr)
|
|
|
|
#endif //UFB_PROGMEM_H
|
|
|