inital commit working

This commit is contained in:
IMback 2018-11-26 22:30:39 +01:00
commit 63ff73a066
13 changed files with 644 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 *port, const unsigned char pin, const bool state);
void setBit( volatile unsigned char *reg, const unsigned char bit, bool value );
void setDirection( volatile unsigned char *portDirReg, const unsigned char pin, bool makeOutput );
bool readPin( volatile unsigned char *inPort, const unsigned char pin);
#endif