qmk-firmware/tmk_core/common/progmem.h

14 lines
278 B
C
Raw Normal View History

#ifndef PROGMEM_H
#define PROGMEM_H 1
#if defined(__AVR__)
2019-08-31 02:19:03 +08:00
# include <avr/pgmspace.h>
2017-06-17 02:43:36 +08:00
#else
2019-08-31 02:19:03 +08:00
# define PROGMEM
# define pgm_read_byte(p) *((unsigned char*)(p))
# define pgm_read_word(p) *((uint16_t*)(p))
# define pgm_read_dword(p) *((uint32_t*)(p))
#endif
#endif