优化中断
This commit is contained in:
+3
-4
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user