nios_gdb_stub_io.c
来自「ALTERA的NIOS处理器!文件直接可以打开直接选择器件重新编译!」· C语言 代码 · 共 32 行
C
32 行
// 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 + =
减小字号Ctrl + -
显示快捷键?