App: Change printf to tfm_log_printf
Implement stdio output of NS USART and change the 'printf' in
non-secure App to 'tfm_log_printf'. Use 'tfm_log_printf' from
'interface' folder for the substitute.
Change-Id: I871ea999adb525879cc2f1e3183036feb6d1a671
Signed-off-by: Mingyang Sun <mingyang.sun@arm.com>
diff --git a/app/uart_stdout.h b/app/uart_stdout.h
new file mode 100644
index 0000000..7c69c71
--- /dev/null
+++ b/app/uart_stdout.h
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2019, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#ifndef __UART_STDOUT_H__
+#define __UART_STDOUT_H__
+
+#include <stdint.h>
+
+/**
+ * \brief Output buffer by STDIO.
+ */
+int stdio_output_string(const unsigned char *str, uint32_t len);
+
+#endif /* __UART_STDOUT_H__ */