summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/console.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h
index 839ec17e50..a6737c8581 100644
--- a/include/console.h
+++ b/include/console.h
@@ -83,4 +83,10 @@ unsigned console_get_active(struct console_device *cdev);
int console_set_baudrate(struct console_device *cdev, unsigned baudrate);
unsigned console_get_baudrate(struct console_device *cdev);
+#ifdef CONFIG_PBL_CONSOLE
+void pbl_set_putc(void (*putcf)(void *ctx, int c), void *ctx);
+#else
+static inline void pbl_set_putc(void (*putcf)(void *ctx, int c), void *ctx) {}
+#endif
+
#endif