gdbuart.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * gdbuart.h
8  *
9  ****/
10 
11 #pragma once
12 
13 #include "gdbstub.h"
14 
15 bool gdb_uart_init();
16 
17 /*
18  * Receive a char from the uart. Uses polling and feeds the watchdog.
19  */
20 int gdbReceiveChar();
21 
22 /*
23  * Send a block of data to the uart
24  */
25 size_t gdbSendData(const void* data, size_t length);
26 
27 /*
28  * Send a char to the uart
29  */
30 size_t gdbSendChar(char c);
31 
39 size_t ATTR_GDBEXTERNFN gdbWriteConsole(const char* data, size_t length);
40 
49 size_t gdbSendUserData();
50 
54 void gdbFlushUserData();
bool gdb_uart_init()
size_t ATTR_GDBEXTERNFN gdbWriteConsole(const char *data, size_t length)
Write a block of data to the GDB console.
void gdbFlushUserData()
Ensure all user data has been written to serial port.
size_t gdbSendData(const void *data, size_t length)
int gdbReceiveChar()
#define ATTR_GDBEXTERNFN
size_t gdbSendUserData()
Send some user data from the user_uart TX buffer to the GDB serial port, packetising it if necessary...
size_t gdbSendChar(char c)