Keyboard firmwares for Atmel AVR and Cortex-M
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

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