summaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/posix/makefile1
-rw-r--r--ports/posix/src/port.h15
-rw-r--r--ports/posix/src/stream_stdio.c6
3 files changed, 21 insertions, 1 deletions
diff --git a/ports/posix/makefile b/ports/posix/makefile
index 9031b76..91e0792 100644
--- a/ports/posix/makefile
+++ b/ports/posix/makefile
@@ -6,6 +6,7 @@ LDFLAGS = $(LIBDIR) $(LIBS)
C_INCLUDES += \
-Ilib/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/ \
+-Iports/posix/src/
C_SOURCES += \
lib/FreeRTOS/FreeRTOS/Source/portable/ThirdParty/GCC/Posix/port.c \
diff --git a/ports/posix/src/port.h b/ports/posix/src/port.h
new file mode 100644
index 0000000..01d1fb1
--- /dev/null
+++ b/ports/posix/src/port.h
@@ -0,0 +1,15 @@
+/**
+ *
+ * @brief Port specific includes go in this file
+ *
+*/
+
+#ifndef __PORT_H
+#define __PORT_H
+
+#include <pthread.h>
+#include <mqueue.h>
+#include <stdint.h>
+#include <errno.h>
+
+#endif
diff --git a/ports/posix/src/stream_stdio.c b/ports/posix/src/stream_stdio.c
index efa4b13..ed83e7b 100644
--- a/ports/posix/src/stream_stdio.c
+++ b/ports/posix/src/stream_stdio.c
@@ -13,6 +13,10 @@ int stdio_read(uint8_t* buf, size_t count, void **vptr, void *sptr)
int stdio_write(uint8_t* buf, size_t count, void **vptr, void *sptr)
{
- printf("%s\n", buf);
+ int x;
+ for (x = 0; x < count; x++) {
+ printf("%x", buf[x]);
+ }
+ printf("\n");
return 0;
}