#include #if 1 #include #else typedef unsigned char bool; #endif bool bPower; bool bLanyard; bool bPowerSwitch; bool test(void) { bLanyard = ((~PINE) & _BV(PE7)); bPowerSwitch = ((~PINE) & _BV(PE6)); bPower = bPowerSwitch | bLanyard; return bPower; }