summaryrefslogtreecommitdiffstats
path: root/Src/osmocombb/src/target/firmware/display/display.c
diff options
context:
space:
mode:
Diffstat (limited to 'Src/osmocombb/src/target/firmware/display/display.c')
-rw-r--r--Src/osmocombb/src/target/firmware/display/display.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/Src/osmocombb/src/target/firmware/display/display.c b/Src/osmocombb/src/target/firmware/display/display.c
new file mode 100644
index 0000000..1c8f1fb
--- /dev/null
+++ b/Src/osmocombb/src/target/firmware/display/display.c
@@ -0,0 +1,20 @@
+
+#include <stdint.h>
+
+#include <display.h>
+
+struct display_driver *display;
+
+int display_puts(const char *str)
+{
+ char c;
+
+ if (display->puts)
+ display->puts(str);
+ else {
+ while ((c = *str++))
+ display_putchar(c);
+ }
+
+ return 0;
+}