make serialice running
Change-Id: Ia8305c47473390bdd5249afeec064da3d82a65bc
This commit is contained in:
parent
ae0f552f57
commit
97a9680238
|
@ -80,24 +80,3 @@ void console_write_line(uint8_t *buffer, size_t number_of_bytes)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#if CONFIG_GDB_STUB && (ENV_ROMSTAGE || ENV_RAMSTAGE)
|
|
||||||
void gdb_hw_init(void)
|
|
||||||
{
|
|
||||||
__gdb_hw_init();
|
|
||||||
}
|
|
||||||
|
|
||||||
void gdb_tx_byte(unsigned char byte)
|
|
||||||
{
|
|
||||||
__gdb_tx_byte(byte);
|
|
||||||
}
|
|
||||||
|
|
||||||
void gdb_tx_flush(void)
|
|
||||||
{
|
|
||||||
__gdb_tx_flush();
|
|
||||||
}
|
|
||||||
|
|
||||||
unsigned char gdb_rx_byte(void)
|
|
||||||
{
|
|
||||||
return __gdb_rx_byte();
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
|
@ -61,14 +61,10 @@ static int uart8250_can_rx_byte(unsigned base_port)
|
||||||
|
|
||||||
static unsigned char uart8250_rx_byte(unsigned base_port)
|
static unsigned char uart8250_rx_byte(unsigned base_port)
|
||||||
{
|
{
|
||||||
unsigned long int i = SINGLE_CHAR_TIMEOUT;
|
while (!uart8250_can_rx_byte(base_port))
|
||||||
while (i && !uart8250_can_rx_byte(base_port))
|
;
|
||||||
i--;
|
|
||||||
|
|
||||||
if (i)
|
return inb(base_port + UART8250_RBR);
|
||||||
return inb(base_port + UART8250_RBR);
|
|
||||||
else
|
|
||||||
return 0x0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void uart8250_init(unsigned base_port, unsigned divisor)
|
static void uart8250_init(unsigned base_port, unsigned divisor)
|
||||||
|
|
|
@ -17,10 +17,10 @@
|
||||||
#include <console/usb.h>
|
#include <console/usb.h>
|
||||||
#include <debug-com.h>
|
#include <debug-com.h>
|
||||||
|
|
||||||
#define CONFIG_UART_FOR_GDB 0
|
#define CONFIG_UART_FOR_GDB 1
|
||||||
#define USB_PIPE_FOR_GDB 0
|
#define USB_PIPE_FOR_GDB 0
|
||||||
|
|
||||||
#define CONFIG_UART_FOR_SERIALICE 0
|
#define CONFIG_UART_FOR_SERIALICE 1
|
||||||
#define USB_PIPE_FOR_SERIALICE 0
|
#define USB_PIPE_FOR_SERIALICE 0
|
||||||
|
|
||||||
/* Configure functions to use GDB arguments */
|
/* Configure functions to use GDB arguments */
|
||||||
|
|
Loading…
Reference in New Issue