MCPcopy Create free account
hub / github.com/SmingHub/Sming / showPrompt

Function showPrompt

samples/LiveDebug/app/application.cpp:83–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81}
82
83void showPrompt()
84{
85 switch(gdb_present()) {
86 case eGDB_Attached:
87 Serial.print(_F("\r(Attached) "));
88 break;
89 case eGDB_Detached:
90 Serial.print(_F("\r(Detached) "));
91 break;
92 case eGDB_NotPresent:
93 default:
94 Serial.print(_F("\r(Non-GDB) "));
95 }
96}
97
98void onDataReceived(Stream& source, char arrivedChar, unsigned short availableCharsCount)
99{

Callers 2

onDataReceivedFunction · 0.70
readConsoleFunction · 0.70

Calls 2

gdb_presentFunction · 0.50
printMethod · 0.45

Tested by

no test coverage detected