#define selectorA PA0 #define selectorB PA1 #define selectorC PA2 #define selectorD PA3 #define flashdetect PB2 #define statusled PA4 #define fireled PA5 #define selectorDDR DDRA #define selectorport PORTA #define selectorpin PINA #define flashdetectDDR DDRB #define flashdetectport PORTB #define statusledDDR DDRA #define statusledport PORTA #define fireledDDR DDRA #define fireledport PORTA // Function prototypes /*------------------------------------------------------------------*/ void init(); // Set the ports and DDRs int main(); // the main void signal(uint8_t counter); // Feedback void fire(void); // Release slave-flash uint8_t getneededflashes(void); // read in hex-switch /*------------------------------------------------------------------*/ // global Variables uint8_t flashcount, flashesneeded;