summaryrefslogtreecommitdiff
path: root/zephyr/test/uart_printf/include/printf.h
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/test/uart_printf/include/printf.h')
-rw-r--r--zephyr/test/uart_printf/include/printf.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/zephyr/test/uart_printf/include/printf.h b/zephyr/test/uart_printf/include/printf.h
new file mode 100644
index 0000000000..b6fcf6337d
--- /dev/null
+++ b/zephyr/test/uart_printf/include/printf.h
@@ -0,0 +1,23 @@
+/* Copyright 2022 The ChromiumOS Authors
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef ZEPHYR_TEST_UART_PRINTF_INCLUDE_PRINTF_H_
+#define ZEPHYR_TEST_UART_PRINTF_INCLUDE_PRINTF_H_
+
+#include <zephyr/fff.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef int (*vfnprintf_addchar_t)(void *, int);
+DECLARE_FAKE_VALUE_FUNC(int, vfnprintf, vfnprintf_addchar_t, void *,
+ const char *, va_list);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* ZEPHYR_TEST_UART_PRINTF_INCLUDE_PRINTF_H_ */