{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/5356","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/5356/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/5356/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/5356/events","html_url":"https://github.com/ARMmbed/mbed-os/pull/5356","id":267329614,"number":5356,"title":"Interface for alternative stdio retargeting","user":{"login":"0x6d61726b","id":25281946,"avatar_url":"https://avatars3.githubusercontent.com/u/25281946?v=4","gravatar_id":"","url":"https://api.github.com/users/0x6d61726b","html_url":"https://github.com/0x6d61726b","followers_url":"https://api.github.com/users/0x6d61726b/followers","following_url":"https://api.github.com/users/0x6d61726b/following{/other_user}","gists_url":"https://api.github.com/users/0x6d61726b/gists{/gist_id}","starred_url":"https://api.github.com/users/0x6d61726b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x6d61726b/subscriptions","organizations_url":"https://api.github.com/users/0x6d61726b/orgs","repos_url":"https://api.github.com/users/0x6d61726b/repos","events_url":"https://api.github.com/users/0x6d61726b/events{/privacy}","received_events_url":"https://api.github.com/users/0x6d61726b/received_events","type":"User","site_admin":false},"labels":[{"id":147112891,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/needs:%20review","name":"needs: review","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-10-20T23:28:08Z","updated_at":"2017-10-29T07:37:56Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/5356","html_url":"https://github.com/ARMmbed/mbed-os/pull/5356","diff_url":"https://github.com/ARMmbed/mbed-os/pull/5356.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/5356.patch"},"body":"## Description\r\nThis changes implement the `mbed_retarget_alt.h` interface that allows using an alternative/custom stdin/stdout/stderr interface other than the default serial port.\r\nBy setting `MBED_CONF_RETARGET_STDIO_ALT = 1` the custom interface will be enabled.\r\nAn example implementation can be found in the [0x6d61726b/mbed-os-retarget-segger-rtt](https://github.com/0x6d61726b/mbed-os-retarget-segger-rtt) repository.\r\n\r\n\r\n## Todos\r\n- [?] Documentation\r\n- what else?\r\n\r\n\r\n## Deploy notes\r\n?\r\n\r\n\r\n\r\n\r\n## Steps to test or reproduce\r\nThe following test program can be used for testing general functionality:\r\n\r\n```\r\n#include <stdio.h>\r\nint main() {\r\n    printf(\"-------------------------------------------------------------------------------\\n\");\r\n    printf(\"Segger Real-Time Terminal ECHO program (type '.' to exit)\\n\");\r\n    char c;\r\n    while ((c = getchar()) != '.') {\r\n        putchar(c);\r\n    }\r\n    \r\n    printf(\"\\n\\nExit!\\n\");\r\n    while (true);\r\n}\r\n```\r\n\r\nResult (when typing `Hello World!.`):\r\n\r\n![demo](https://user-images.githubusercontent.com/25281946/31844602-fdd77e7c-b5f9-11e7-9ae7-0be45cad5486.png)\r\n"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/340243440","html_url":"https://github.com/ARMmbed/mbed-os/pull/5356#issuecomment-340243440","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/5356","id":340243440,"user":{"login":"0x6d61726b","id":25281946,"avatar_url":"https://avatars3.githubusercontent.com/u/25281946?v=4","gravatar_id":"","url":"https://api.github.com/users/0x6d61726b","html_url":"https://github.com/0x6d61726b","followers_url":"https://api.github.com/users/0x6d61726b/followers","following_url":"https://api.github.com/users/0x6d61726b/following{/other_user}","gists_url":"https://api.github.com/users/0x6d61726b/gists{/gist_id}","starred_url":"https://api.github.com/users/0x6d61726b/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0x6d61726b/subscriptions","organizations_url":"https://api.github.com/users/0x6d61726b/orgs","repos_url":"https://api.github.com/users/0x6d61726b/repos","events_url":"https://api.github.com/users/0x6d61726b/events{/privacy}","received_events_url":"https://api.github.com/users/0x6d61726b/received_events","type":"User","site_admin":false},"created_at":"2017-10-29T07:37:56Z","updated_at":"2017-10-29T07:37:56Z","author_association":"CONTRIBUTOR","body":"> Where is the JLINK implementaiton?\r\n\r\n@sg- the sample implementation is here: [0x6d61726b/mbed-os-retarget-segger-rtt](https://github.com/0x6d61726b/mbed-os-retarget-segger-rtt)"}}
{"actor":{"display_login":"0x6d61726b"}}