bsp,am,integrate-am-apps: destroy thread when calling halt()

This commit is contained in:
Zihao Yu 2024-01-14 12:21:05 +08:00
parent dea61ce9d9
commit 6761ddf7f8
2 changed files with 18 additions and 1 deletions

View file

@ -1160,4 +1160,9 @@ rt_err_t rt_thread_get_name(rt_thread_t thread, char *name, rt_uint8_t name_size
}
RTM_EXPORT(rt_thread_get_name);
void rt_thread_exit(void) {
_thread_exit();
}
RTM_EXPORT(rt_thread_exit);
/**@}*/