Added all Ports + Inputs

This commit is contained in:
Max Brüggemann
2021-08-09 22:42:44 +02:00
parent 8e260f0247
commit 32fca4ba84
3 changed files with 1575 additions and 76 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,9 +1,16 @@
extern uint32_t outStates;
extern volatile uint32_t outStates;
extern volatile uint32_t inStates;
void setOuts(void);
void readPins(void);
void ioConf(void);
// hier definieren weclher pin auf welchem Bit liegen soll
//Outputs
//Pin | Bit in outStates
#define BitPB0 13
#define BitPB1 12
//Inputs
//Pin | Bit in inStates
#define BitPinC1 0
#define BitPinC5 1

1
main.c
View File

@@ -7,6 +7,7 @@ outStates=0xFFFFFFFF;
while(1) {
setOuts();
readPins();
}
}