📄 nios_gdb_stub_io.c
字号:
// file: nios_gdb_stub_IO.c
//
// Single character I/O for Nios GDB Stub
#include "nios.h"
#include "nios_gdb_stub.h"
#ifdef nasys_debug_uart
#define GDB_UART nasys_debug_uart
#endif
char GDBGetChar(void)
{
char c = 0;
#ifdef GDB_UART
while( (c = (char)nr_uart_rxchar(GDB_UART)) < 0 )
;
#endif
return c;
}
void GDBPutChar(char c)
{
#ifdef GDB_UART
nr_uart_txchar(c, GDB_UART);
#endif
}
// End of file
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -