]> git.friedersdorff.com Git - max/tmk_keyboard.git/blob - tmk_core/common/progmem.h
Merge pull request #36 from squarefrog/colemak
[max/tmk_keyboard.git] / tmk_core / common / progmem.h
1 #ifndef PROGMEM_H
2 #define PROGMEM_H 1
3
4 #if defined(__AVR__)
5 #   include <avr/pgmspace.h>
6 #elif defined(__arm__)
7 #   define PROGMEM
8 #   define pgm_read_byte(p)     *((unsigned char*)p)
9 #   define pgm_read_word(p)     *((uint16_t*)p)
10 #endif
11
12 #endif