From f5a9c9eac28371623d8196b8715432cad3c3f52e Mon Sep 17 00:00:00 2001 From: Siegfried Kienzle Date: Tue, 25 Apr 2017 07:36:03 +0200 Subject: [PATCH] move defines to header-file --- project/gpio.c | 3 +-- project/gpio.h | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/project/gpio.c b/project/gpio.c index 2e2345b..eae9a47 100644 --- a/project/gpio.c +++ b/project/gpio.c @@ -4,9 +4,8 @@ #include #include #include +#include "gpio.h" -#define BASEPATH "/sys/class/gpio/" -#define GPIO_FOLDER "gpio%s/" void writeFile(char *filename, char *buffer, size_t count) { diff --git a/project/gpio.h b/project/gpio.h index 8b4ac73..656ac0b 100644 --- a/project/gpio.h +++ b/project/gpio.h @@ -2,6 +2,9 @@ #ifndef GPIO_H_ #define GPIO_H_ +#define BASEPATH "/sys/class/gpio/" +#define GPIO_FOLDER "gpio%s/" + void writeFile(char *filename, char *buffer, size_t count); void registerPin(char *pin); void freePin(char *pin);