• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is part of the openHiTLS project.
3  *
4  * openHiTLS is licensed under the Mulan PSL v2.
5  * You can use this software according to the terms and conditions of the Mulan PSL v2.
6  * You may obtain a copy of Mulan PSL v2 at:
7  *
8  *     http://license.coscl.org.cn/MulanPSL2
9  *
10  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
11  * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
12  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
13  * See the Mulan PSL v2 for more details.
14  */
15 
16 /**
17  * @defgroup bsl_init
18  * @ingroup bsl
19  * @brief initialization
20  */
21 
22 #ifndef BSL_INIT_H
23 #define BSL_INIT_H
24 
25 #include <stdint.h>
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 /**
32  * @ingroup bsl_init
33  * @brief Initialize the BSL module.
34  *
35  * The user must call this interface to initialize.
36  *
37  * @attention None.
38  * @retval #BSL_SUCCESS, error code module is successfully initialized.
39  * @retval #BSL_MALLOC_FAIL, memory space is insufficient and thread lock space cannot be applied for.
40  * @retval #BSL_SAL_ERR_UNKNOWN, thread lock initialization failed.
41  */
42 int32_t BSL_GLOBAL_Init(void);
43 
44 /**
45  * @ingroup bsl_init
46  * @brief Deinitialize the BSL module.
47  *
48  * The user calls this interface when the process exits.
49  *
50  * @attention None
51  */
52 int32_t BSL_GLOBAL_DeInit(void);
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif // BSL_INIT_H