Feature Request RTT: SEGGER_RTT_TerminalOutBuffer()

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • Feature Request RTT: SEGGER_RTT_TerminalOutBuffer()

      Hi!

      The current RTT APIs provide a SEGGER_RTT_TerminalOut() function. That function requires a null-terminated string.

      The current debug logging APIs have a function of the following form:
      size_t write(const char * buffer, size_t size);

      Would it be possible to add a SEGGER_RTT_TerminalOutBuffer() function?

      Here's a draft diff based on RTT version 6.60d:\
      github.com/henrygab/Adafruit_n…2d7c0b79b9773b165f8f8ea01

      In combination with the implementation of SEGGER_RTT_Peek() (requested earlier), these two functions would simplify drop-in replacement use of RTT.

      Thank you for considering this simple proposal.

      Henry

      [edit: for avoidance of doubt, the changes in both those diffs is given to the public domain]