Keyboard firmwares for Atmel AVR and Cortex-M
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.

progmem.h 247B

123456789101112
  1. #ifndef PROGMEM_H
  2. #define PROGMEM_H 1
  3. #if defined(__AVR__)
  4. # include <avr/pgmspace.h>
  5. #elif defined(__arm__)
  6. # define PROGMEM
  7. # define pgm_read_byte(p) *((unsigned char*)p)
  8. # define pgm_read_word(p) *((uint16_t*)p)
  9. #endif
  10. #endif