repositories
/
mTask.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added debug statements, dynamic allocation is working for tasks
[mTask.git]
/
client
/
interface.h
diff --git
a/client/interface.h
b/client/interface.h
index
0982d4c
..
9e16292
100644
(file)
--- a/
client/interface.h
+++ b/
client/interface.h
@@
-1,6
+1,10
@@
#ifndef INTERFACE_H
#define INTERFACE_H
#ifndef INTERFACE_H
#define INTERFACE_H
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdbool.h>
#include <stdint.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdarg.h>
@@
-59,13
+63,16
@@
void led_off(uint8_t i);
#endif
/* Delay and communication */
#endif
/* Delay and communication */
-long getmillis(void);
-void msdelay(long ms);
+
unsigned
long getmillis(void);
+void msdelay(
unsigned
long ms);
/* Auxilliary */
/* Auxilliary */
-void setup(void);
+void
real_
setup(void);
void debug(char *fmt, ...);
void pdie(char *s);
void die(char *fmt, ...);
void debug(char *fmt, ...);
void pdie(char *s);
void die(char *fmt, ...);
+#ifdef __cplusplus
+}
+#endif
#endif
#endif