14 lines
412 B
C
14 lines
412 B
C
#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
|