You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
avrIOhelper/io-helper.h

19 lines
444 B
C

extern volatile uint8_t outStates[4];
extern volatile uint8_t inStates[4];
void ioHelperSetOuts(void);
void ioHelperReadPins(void);
void ioHelperIoConf(void);
void ioHelperSetBit(volatile uint8_t *list, uint8_t nr, uint8_t state);
unsigned char ioHelperReadBit(volatile uint8_t *list, uint8_t nr);
//Outputs
//Pin | Bit in outStates
#define BitPB0 13
#define BitPB1 12
//Inputs
//Pin | Bit in inStates
#define BitPinC1 0
#define BitPinC5 1