- DDRB &= ~(_BV(PB0) | _BV(PB2)); // LED4, LED5
- PORTB &=~ (_BV(PB0) | _BV(PB2));
-
- DDRA &= ~(_BV(PA3) | _BV(PA4)); // LED6, LED7
- PORTA &=~ (_BV(PA3) | _BV(PA4));
-}
-
-void gpio_before_poweroff()
-{
- DDRA |= _BV(PA4);
- PORTA |= _BV(PA4);
+ PORTB &= ~(_BV(PB0) | _BV(PB2) | _BV(PB4) | _BV(PB6));
+ DDRB |= _BV(PB0) | _BV(PB2) | _BV(PB4) | _BV(PB6);