| 658 | } |
| 659 | |
| 660 | void 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 | } |
nothing calls this directly
no test coverage detected