add deinit func in sal wrapper and ec20
This commit is contained in:
@@ -12,6 +12,13 @@ int tos_sal_module_register(sal_module_t *module)
|
||||
return -1;
|
||||
}
|
||||
|
||||
int tos_sal_module_register_default()
|
||||
{
|
||||
g_sal_module = NULL;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int tos_sal_module_init(void)
|
||||
{
|
||||
if (g_sal_module && g_sal_module->init) {
|
||||
|
@@ -63,6 +63,17 @@ typedef struct sal_module_st {
|
||||
*/
|
||||
int tos_sal_module_register(sal_module_t *module);
|
||||
|
||||
/**
|
||||
* @brief Register a default sal module.
|
||||
*
|
||||
* @attention None
|
||||
*
|
||||
* @param[in] None
|
||||
*
|
||||
* @return errcode
|
||||
*/
|
||||
int tos_sal_module_register_default(void);
|
||||
|
||||
/**
|
||||
* @brief Initialize the module.
|
||||
*
|
||||
|
Reference in New Issue
Block a user