优化中断

This commit is contained in:
2026-05-28 21:55:51 +08:00
parent 9f38c6ea75
commit 0516210c95
8 changed files with 219 additions and 311 deletions
+3 -4
View File
@@ -20,7 +20,7 @@
*
******************************************************************************
*/
#ifdef defined (__GNUC__)
#if defined (__GNUC__)
/* Includes */
#include "Bsp.h"
@@ -69,7 +69,7 @@ __attribute__((weak)) int _write(int file, char *ptr, int len)
*/
PUTCHAR_PROTOTYPE
{
UsartSendChar(TTY_COM, ch); //阻塞式无限等待
ComSendChar(TTY_COM, ch); //阻塞式无限等待
return ch;
}
@@ -83,8 +83,7 @@ PUTCHAR_PROTOTYPE
GETCHAR_PROTOTYPE
{
uint8_t ch = 0;
ch = UsartReceiveChar(TTY_COM);
ch = ComReceiveChar(TTY_COM);
return ch;
}