1
0
mirror of git://projects.qi-hardware.com/nn-usb-fpga.git synced 2025-01-09 22:50:14 +02:00
nn-usb-fpga/lm32/logic/sakc/firmware/gdb-test/gdb_uart.c
2010-05-25 21:49:58 -05:00

24 lines
451 B
C

#include "soc-hw.h"
/* Write a single character to debug host */
void
_gdb_write_char (char c)
{
uart_putchar(c);
}
/* Read and return a single character from debug host */
char
_gdb_read_char (void)
{
return uart_getchar();
}
/* Acknowledge specified interrupt that caused CPU to enter debug mode */
void
_gdb_ack_interrupt (void)
{
/* ACK interrupt */
/*__asm__ ("wcsr\tIA, %0" : : "d" (1 << interrupt));*/
}