mangle titlepage
[msc-thesis1617.git] / listings / interface.h
index 1903941..7faaab2 100644 (file)
@@ -6,11 +6,11 @@
 #include <stdarg.h>
 
 #ifdef LINUX
+#define APINS 7
+#define DPINS 14
 #define STACKSIZE 1024
 #define MEMSIZE 1024
 #define HAVELED 1
-#define HAVEAIO 1
-#define HAVEDIO 1
 #elif defined STM
 ...
 #endif
@@ -21,11 +21,11 @@ uint8_t read_byte(void);
 void write_byte(uint8_t b);
 
 /* Analog and digital pins */
-#if HAVEDIO == 1
+#if DPINS > 0
 void write_dpin(uint8_t i, bool b);
 bool read_dpin(uint8_t i);
 #endif
-#if HAVEAIO == 1
+#if APINS > 0
 void write_apin(uint8_t i, uint8_t a);
 uint8_t read_apin(uint8_t i);
 #endif