MCPcopy Create free account
hub / github.com/SmingHub/Sming / GDB_IRAM_ATTR init

Function GDB_IRAM_ATTR init

samples/LiveDebug/app/application.cpp:660–680  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658}
659
660void GDB_IRAM_ATTR init()
661{
662 Serial.begin(SERIAL_BAUD_RATE);
663 Serial.onDataReceived(onDataReceived);
664 Serial.systemDebugOutput(true);
665
666 Serial.println(_F("LiveDebug sample\r\n"
667 "Explore some capabilities of the GDB debugger.\r\n"));
668
669 // Install a debug output hook to monitor OS debug messages
670 osMessageInterceptor.begin(onOsMessage);
671
672 if(gdb_present() != eGDB_Attached) {
673 System.onReady(showPrompt);
674 }
675
676 pinMode(LED_PIN, OUTPUT);
677 procTimer.initializeMs<BLINK_INTERVAL_MS>(blink).start();
678
679 printTimerDetails();
680}

Callers

nothing calls this directly

Calls 9

printTimerDetailsFunction · 0.85
onDataReceivedMethod · 0.80
systemDebugOutputMethod · 0.80
printlnMethod · 0.80
onReadyMethod · 0.80
gdb_presentFunction · 0.50
pinModeFunction · 0.50
beginMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected