⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 arch_dbg_console.c

📁 newos is new operation system
💻 C
字号:
/* ** Copyright 2001, Travis Geiselbrecht. All rights reserved.** Distributed under the terms of the NewOS License.*/#include <kernel/kernel.h>#include <boot/stage2.h>#include <kernel/arch/dbg_console.h>int arch_dbg_con_init(kernel_args *ka){	return 0;}char arch_dbg_con_read(){	return 0;}/* Flush all FIFO'd bytes out of the serial port buffer */static void arch_dbg_con_flush(){}static void _arch_dbg_con_putch(const char c){}char arch_dbg_con_putch(const char c){	if (c == '\n') {		_arch_dbg_con_putch('\r');		_arch_dbg_con_putch('\n');	} else if (c != '\r')		_arch_dbg_con_putch(c);	return c;}void arch_dbg_con_puts(const char *s){	while(*s != '\0') {		arch_dbg_con_putch(*s);		s++;	}}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -