15 lines
458 B
C
15 lines
458 B
C
#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
|