outsourcing of gpio-code
This commit is contained in:
12
project/gpio.h
Normal file
12
project/gpio.h
Normal file
@@ -0,0 +1,12 @@
|
||||
/*gpio.h*/
|
||||
#ifndef GPIO_H_
|
||||
#define GPIO_H_
|
||||
|
||||
void writeFile(char *filename, char *buffer, size_t count);
|
||||
void registerPin(char *pin);
|
||||
void freePin(char *pin);
|
||||
void setDirection(char *pin, char *direction, int dirlen);
|
||||
void registerOutput(char *pin);
|
||||
void writeOutput(char *pin, int state);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user