refactor: 清理UART调试代码并保留RTT诊断
This commit is contained in:
+2
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user