diff options
Diffstat (limited to 'src/avr/gpio.c')
-rw-r--r-- | src/avr/gpio.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/avr/gpio.c b/src/avr/gpio.c index 03d6aff5..c749c4f1 100644 --- a/src/avr/gpio.c +++ b/src/avr/gpio.c @@ -18,6 +18,9 @@ DECL_ENUMERATION_RANGE("pin", "PA0", GPIO('A', 0), 8); DECL_ENUMERATION_RANGE("pin", "PB0", GPIO('B', 0), 8); DECL_ENUMERATION_RANGE("pin", "PC0", GPIO('C', 0), 8); DECL_ENUMERATION_RANGE("pin", "PD0", GPIO('D', 0), 8); +#ifdef CONFIG_MACH_atmega328p +DECL_ENUMERATION_RANGE("pin", "PE0", GPIO('E', 0), 8); +#endif #ifdef PINE DECL_ENUMERATION_RANGE("pin", "PE0", GPIO('E', 0), 8); DECL_ENUMERATION_RANGE("pin", "PF0", GPIO('F', 0), 8); @@ -37,6 +40,9 @@ volatile uint8_t * const digital_regs[] PROGMEM = { NULL, #endif &PINB, &PINC, &PIND, +#ifdef CONFIG_MACH_atmega328p + &_SFR_IO8(0x0C), // PINE on atmega328pb +#endif #ifdef PINE &PINE, &PINF, #endif |