diff --git a/.cproject b/.cproject
index 8681942..e5f71f4 100644
--- a/.cproject
+++ b/.cproject
@@ -26,18 +26,18 @@
-
+
-
-
+
+
@@ -45,14 +45,14 @@
-
+
-
+
@@ -94,10 +94,10 @@
-
+
@@ -105,8 +105,8 @@
-
-
+
+
@@ -121,7 +121,7 @@
-
+
@@ -165,10 +165,10 @@
-
+
@@ -176,8 +176,8 @@
-
-
+
+
@@ -192,7 +192,7 @@
-
+
diff --git a/.settings/language.settings.xml b/.settings/language.settings.xml
index 5f8b75b..06bad72 100644
--- a/.settings/language.settings.xml
+++ b/.settings/language.settings.xml
@@ -10,7 +10,7 @@
-
+
diff --git a/src/serial.c b/src/serial.c
index 63c7fc9..8600bec 100644
--- a/src/serial.c
+++ b/src/serial.c
@@ -19,8 +19,13 @@
#include "LPC214x.h"
#include
+#include
#include "serial.h"
+#ifdef __NEWLIB__
+#define __sys_write _write
+#endif
+
static void uart_putc(char thebyte) {
if (thebyte == '\n')
uart_putc('\r');
@@ -45,4 +50,7 @@ void Serial_Init(void) {
U0DLL = 1; // Minimum allowed when running fractional brg is 3 according to UM10120 but this works just fine!
U0DLM = 0;
U0LCR &= ~0x80; // Divisor load done
+#ifdef __NEWLIB__
+ setbuf(stdout, NULL); // Needed to get rid of default line-buffering in newlib not present in redlib
+#endif
}