Go to the documentation of this file.
13 #ifdef __AVR_ATmega8__
20 #define _P_REGS(addr) \
21 uint8_t _i=3*(4-(adr>>3)); \
22 uint8_t *pin __attribute__((unused)) = (uint8_t *)(0x2D+_i); \
23 uint8_t *ddr __attribute__((unused)) = (uint8_t *)(0x2D+_i+1); \
24 uint8_t *port __attribute__((unused)) = (uint8_t *)(0x2D+_i+2);
36 #define _P_REGS(addr) \
37 uint8_t _i=3*(adr>>3); \
38 uint8_t *pin __attribute__((unused)) = (uint8_t *)(0x20+_i); \
39 uint8_t *ddr __attribute__((unused)) = (uint8_t *)(0x20+_i+1); \
40 uint8_t *port __attribute__((unused)) = (uint8_t *)(0x20+_i+2);