Inital Commit
This commit is contained in:
14
writepin.h
Normal file
14
writepin.h
Normal 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
|
Reference in New Issue
Block a user