aboutsummaryrefslogtreecommitdiff
path: root/platform/ext/common
diff options
context:
space:
mode:
authorShawn Shan <shawn.shan@arm.com>2020-05-18 18:10:43 +0800
committerKen Liu <ken.liu@arm.com>2020-08-28 10:07:45 +0000
commitdee2b21bdb3852c2e1afefc632629076527f18b1 (patch)
tree1a4d565b825133e6df0ce8436e0786000f3974f0 /platform/ext/common
parentdf7a14cc62fc8a253c7aaaff69b2498dd2ee4b67 (diff)
SPM: Add header file for SPM log system
Add header file 'tfm_spm_log.h' and 'tfm_hal_spm_logdev.h' for SPM log system. Change-Id: I55ffa54b75fd2f9f14e557ba7a176c2234c0197b Signed-off-by: Shawn Shan <shawn.shan@arm.com>
Diffstat (limited to 'platform/ext/common')
-rw-r--r--platform/ext/common/tfm_hal_spm_logdev.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/platform/ext/common/tfm_hal_spm_logdev.h b/platform/ext/common/tfm_hal_spm_logdev.h
new file mode 100644
index 000000000..9715263d5
--- /dev/null
+++ b/platform/ext/common/tfm_hal_spm_logdev.h
@@ -0,0 +1,24 @@
+/*
+ * Copyright (c) 2020, Arm Limited. All rights reserved.
+ *
+ * SPDX-License-Identifier: BSD-3-Clause
+ *
+ */
+
+#ifndef __TFM_HAL_SPM_LOGDEV_H__
+#define __TFM_HAL_SPM_LOGDEV_H__
+
+#include <stdint.h>
+
+/**
+ * \brief HAL API for SPM log system
+ *
+ * \param[in] str The string to output
+ * \param[in] len Length of the string in bytes
+ *
+ * \retval >=0 Number of chars output.
+ * \retval <0 TFM HAL error code.
+ */
+int32_t tfm_hal_output_spm_log(const unsigned char *str, uint32_t len);
+
+#endif /* __TFM_HAL_SPM_LOGDEV_H__ */