inital commit

This commit is contained in:
2019-05-06 19:06:49 +02:00
commit 51a5e6fc28
10 changed files with 489 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>
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