1 #define power_serial_enable() power_usb_enable(); pinOutput(DDRB, PINB0); // pin output, otherwise USB will not work
6 #define SPI_PORT PORTB // SPI port definition
8 #define SPI_MISO PORTB3
9 #define SPI_MOSI PORTB2
10 #define SPI_SCLK PORTB1
15 #define backupPwrRegs() uint8_t xPrr0 = PRR0; uint8_t xPrr1 = PRR1; PRR0 = PRR1= 0xFF;
16 #define recoverPwrRegs() PRR0 = xPrr0; PRR1 = xPrr1;
17 #define offBrownOut() //MCUCR = (1<<BODS)|(1<<BODSE); MCUCR = (1<<BODS);
22 #define AVR_BANDGAP_VOLTAGE 1100UL // band gap reference for Atmega328p