gpio_set(1, 1);
}
+void susp_gpio()
+{
+ 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);
+}
+
void gpio_set(unsigned char n, unsigned char on)
{
if (on) {