修复中断临界区保护的bug

This commit is contained in:
zhangzheng
2023-10-05 23:10:18 +08:00
parent 069de6b956
commit d72ab16d80
34 changed files with 877 additions and 75 deletions

View File

@@ -26,7 +26,8 @@ static void print_raw(const char *str)
{
for (int i = 0; str[i]; i++)
{
xputc(str[i]);
// xputc(str[i]);
uart_putc(uart_get_global(), str[i]);
}
}
/**
@@ -36,7 +37,8 @@ static void print_raw(const char *str)
*/
void putc(int c)
{
xputc(c);
// xputc(c);
uart_putc(uart_get_global(), c);
}
int getc(void)
{