集成cmbacktrace && fatfs分离硬件接口

This commit is contained in:
zhangzheng
2025-03-17 00:35:42 +08:00
parent 137382205e
commit 3ecafaed24
73 changed files with 3024 additions and 204 deletions

View File

@@ -46,4 +46,13 @@ int shell_float_test(int argc, char *argv[])
return 0;
}
SHELL_EXPORT_CMD(SHELL_CMD_PERMISSION(0) | SHELL_CMD_TYPE(SHELL_TYPE_CMD_MAIN), ftest, shell_float_test, ftest command);
int shell_div0(int argc, char *argv[])
{
int a=1,b=0;
*((char *)(0)) = 0;
printf("%d\n", a/b);
return 0;
}
SHELL_EXPORT_CMD(SHELL_CMD_PERMISSION(0) | SHELL_CMD_TYPE(SHELL_TYPE_CMD_MAIN), div0, shell_div0, div0 command);
#endif