Inital Commit

This commit is contained in:
2021-06-12 15:49:16 +02:00
commit 192a4775c5
28 changed files with 8257 additions and 0 deletions

14
writepin.h Normal file
View File

@ -0,0 +1,14 @@
#ifndef WRITEPIN_H
#define WRITEPIN_H
#include <avr/io.h>
#include <stdbool.h>
void writePin(volatile unsigned char * const port, const unsigned char pin, const bool state);
void setBit( volatile unsigned char * const reg, const unsigned char bit, const bool value );
void setDirection( volatile unsigned char * const portDirReg, const unsigned char pin, const bool makeOutput );
bool readPin( volatile const unsigned char * const inPort, const unsigned char pin);
#endif