refactor: 清理UART调试代码并保留RTT诊断

This commit is contained in:
2026-03-31 22:28:41 +08:00
parent 0f4f89eae4
commit e5fffaccdf
13 changed files with 448 additions and 88 deletions
+2 -1
View File
@@ -21,6 +21,7 @@
*/
/* Includes */
#include "main.h"
#include <sys/stat.h>
#include <stdlib.h>
#include <errno.h>
@@ -61,7 +62,7 @@ int _kill(int pid, int sig)
void _exit (int status)
{
_kill(status, -1);
while (1) {} /* Make sure we hang here */
Debug_TrapWithRttHint("_exit");
}
__attribute__((weak)) int _read(int file, char *ptr, int len)