summaryrefslogtreecommitdiff
path: root/include/uart.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uart.h')
-rw-r--r--include/uart.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/uart.h b/include/uart.h
index 2f0bc8bd8c..6128962726 100644
--- a/include/uart.h
+++ b/include/uart.h
@@ -227,6 +227,17 @@ void uart_deepsleep_interrupt(enum gpio_signal signal);
#define uart_deepsleep_interrupt NULL
#endif
+#ifdef CONFIG_UART_INPUT_FILTER
+/**
+ * Application-specific input filter, which takes the next input character as
+ * a parameter.
+ *
+ * Return 0 to allow the character to be handled by the console, non-zero if
+ * the character was handled by the filter.
+ */
+int uart_input_filter(int c);
+#endif
+
/*
* COMx functions
*/