gdbuart.h File Reference
#include "gdbstub.h"
Include dependency graph for gdbuart.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

bool gdb_uart_init ()
 
int gdbReceiveChar ()
 
size_t gdbSendData (const void *data, size_t length)
 
size_t gdbSendChar (char c)
 
size_t ATTR_GDBEXTERNFN gdbWriteConsole (const char *data, size_t length)
 Write a block of data to the GDB console. More...
 
size_t gdbSendUserData ()
 Send some user data from the user_uart TX buffer to the GDB serial port, packetising it if necessary. More...
 
void gdbFlushUserData ()
 Ensure all user data has been written to serial port. More...
 

Function Documentation

◆ gdb_uart_init()

bool gdb_uart_init ( )

◆ gdbFlushUserData()

void gdbFlushUserData ( )

Ensure all user data has been written to serial port.

◆ gdbReceiveChar()

int gdbReceiveChar ( )

◆ gdbSendChar()

size_t gdbSendChar ( char  c)

◆ gdbSendData()

size_t gdbSendData ( const void *  data,
size_t  length 
)

◆ gdbSendUserData()

size_t gdbSendUserData ( )

Send some user data from the user_uart TX buffer to the GDB serial port, packetising it if necessary.

Return values
size_tNumber of characters still remaining in buffer
Note
Data flows from user uart TX buffer to UART0 either during uart_write() call (via notify callback) or via task callback queued from ISR. We don't do this inside the ISR as all the code (including packetising) would need to be in IRAM.

◆ gdbWriteConsole()

size_t ATTR_GDBEXTERNFN gdbWriteConsole ( const char *  data,
size_t  length 
)

Write a block of data to the GDB console.

Parameters
data
length
Return values
size_tAlways returns length
Note
Data is encoded as a single 'O' packet. Should only be used when GDB is attached.