repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update spec to support normal io pins
[mTask.git]
/
client
/
interface.h
diff --git
a/client/interface.h
b/client/interface.h
index
24e5c37
..
e6b14db
100644
(file)
--- a/
client/interface.h
+++ b/
client/interface.h
@@
-10,43
+10,35
@@
extern "C" {
#include <stdarg.h>
#ifdef LINUX
#include <stdarg.h>
#ifdef LINUX
-#define
N
APINS 128
-#define
N
DPINS 128
+#define APINS 128
+#define DPINS 128
#define STACKSIZE 1024
#define MEMSIZE 1024
#define HAVELED 1
#define STACKSIZE 1024
#define MEMSIZE 1024
#define HAVELED 1
-#define HAVEAIO 1
-#define HAVEDIO 1
extern int gargc;
extern char **gargv;
#elif defined STM
extern int gargc;
extern char **gargv;
#elif defined STM
-#define
N
APINS 128
-#define
N
DPINS 128
+#define APINS 128
+#define DPINS 128
#define STACKSIZE 1024
#define MEMSIZE 1024
#define HAVELED 1
#define STACKSIZE 1024
#define MEMSIZE 1024
#define HAVELED 1
-#define HAVEAIO 1
-#define HAVEDIO 1
#elif defined ARDUINO_ESP8266_NODEMCU
#elif defined ARDUINO_ESP8266_NODEMCU
-#define
N
APINS 128
-#define
N
DPINS 128
+#define APINS 128
+#define DPINS 128
#define STACKSIZE 1024
#define MEMSIZE 1024
#define HAVELED 0
#define STACKSIZE 1024
#define MEMSIZE 1024
#define HAVELED 0
-#define HAVEAIO 0
-#define HAVEDIO 0
#elif defined ARDUINO_AVR_UNO
#elif defined ARDUINO_AVR_UNO
-#define
N
APINS 128
-#define
N
DPINS 128
+#define APINS 128
+#define DPINS 128
#define STACKSIZE 64
#define MEMSIZE 256
#define HAVELED 0
#define STACKSIZE 64
#define MEMSIZE 256
#define HAVELED 0
-#define HAVEAIO 0
-#define HAVEDIO 0
#else
//Add you device here
#endif
#else
//Add you device here
#endif
@@
-61,11
+53,11
@@
uint8_t read_byte(void);
void write_byte(uint8_t b);
/* Analog and digital pins */
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
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
void write_apin(uint8_t i, uint8_t a);
uint8_t read_apin(uint8_t i);
#endif