1 #define power_serial_enable() power_usart0_enable();
6 #define SPI_PORT PORTB // SPI port definition
8 #define SPI_MISO PORTB4
9 #define SPI_MOSI PORTB3
10 #define SPI_SCLK PORTB5
15 #define backupPwrRegs() uint8_t xPrr = PRR; PRR = 0xFF;
16 #define recoverPwrRegs() PRR = xPrr;
17 #define offBrownOut() MCUCR = (1<<BODS)|(1<<BODSE); MCUCR = (1<<BODS);
22 #define AVR_BANDGAP_VOLTAGE 1100UL // band gap reference for Atmega328p