Make code compile
[matches/MCTX3420.git] / server / gpio.h
index 1da8470..b4ded0c 100644 (file)
 #include <sched.h>
 #include <stdint.h>
 
-#define exportPath             "/sys/class/gpio/export";
-#define unexportPath   "/sys/class/gpio/unexport";
-#define valuePath              "/sys/class/gpio/gpio";
-#define directionPath  "/sys/class/gpio/gpio";
-#define ADCPath                "/sys/devices/platform/tsc/ain";
+#include "common.h"
+
+#define exportPath             "/sys/class/gpio/export"
+#define unexportPath   "/sys/class/gpio/unexport"
+#define valuePath              "/sys/class/gpio/gpio"
+#define directionPath  "/sys/class/gpio/gpio"
+#define ADCPath                "/sys/devices/platform/tsc/ain"
 
 void pinExport(int GPIOPin);
 void pinDirection(int GPIOPin, int io);
 void pinSet(double value, int GPIOPin);
 void pinUnexport(int GPIOPin);
 int pinRead(int GPIOPin);
-int ADCRead(int adc_num);
\ No newline at end of file
+int ADCRead(int adc_num);

UCC git Repository :: git.ucc.asn.au