add deinit func in sal wrapper and ec20

This commit is contained in:
mculover666
2020-08-11 19:20:25 +08:00
parent 5656dca3ad
commit 96b0c8c37c
4 changed files with 34 additions and 5 deletions

View File

@@ -551,3 +551,18 @@ int ec20_sal_init(hal_uart_port_t uart_port)
return 0;
}
int ec20_sal_deinit()
{
int id = 0;
for (id = 0; id < AT_DATA_CHANNEL_NUM; ++id) {
tos_sal_module_close(id);
}
tos_sal_module_register_default();
tos_at_deinit();
return 0;
}