1 /*
2  * Copyright (c) 2020, Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 
8 #ifndef __TFM_HAL_SP_LOGDEV_H__
9 #define __TFM_HAL_SP_LOGDEV_H__
10 
11 #include <stdint.h>
12 #include <stddef.h>
13 
14 /**
15  * \brief HAL API for Secure Partition(SP) log system
16  *
17  * \param[in]  str       The string to output
18  * \param[in]  len       Length of the string in bytes
19  *
20  * \retval >= 0          Number of chars output.
21  * \retval < 0           TF-M HAL error code.
22  */
23 int32_t tfm_hal_output_sp_log(const unsigned char *str, size_t len);
24 
25 #endif /* __TFM_HAL_SP_LOGDEV_H__ */
26