mirror of
git://projects.qi-hardware.com/nn-usb-fpga.git
synced 2025-04-21 12:27:27 +03:00
Adding lm32 demo to SAKC project
This commit is contained in:
23
lm32/logic/sakc/firmware/gdb-test/gdb_uart.c
Normal file
23
lm32/logic/sakc/firmware/gdb-test/gdb_uart.c
Normal file
@@ -0,0 +1,23 @@
|
||||
#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));*/
|
||||
}
|
||||
Reference in New Issue
Block a user