{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3842","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3842/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3842/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3842/events","html_url":"https://github.com/ARMmbed/mbed-os/pull/3842","id":210489051,"number":3842,"title":"TARGET_NRF: corrected spi_init() to properly handle re-initialization…","user":{"login":"anangl","id":16913290,"avatar_url":"https://avatars0.githubusercontent.com/u/16913290?v=3","gravatar_id":"","url":"https://api.github.com/users/anangl","html_url":"https://github.com/anangl","followers_url":"https://api.github.com/users/anangl/followers","following_url":"https://api.github.com/users/anangl/following{/other_user}","gists_url":"https://api.github.com/users/anangl/gists{/gist_id}","starred_url":"https://api.github.com/users/anangl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anangl/subscriptions","organizations_url":"https://api.github.com/users/anangl/orgs","repos_url":"https://api.github.com/users/anangl/repos","events_url":"https://api.github.com/users/anangl/events{/privacy}","received_events_url":"https://api.github.com/users/anangl/received_events","type":"User","site_admin":false},"labels":[{"id":390046351,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/needs:%20CI","name":"needs: CI","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-02-27T13:52:06Z","updated_at":"2017-03-06T22:01:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/3842","html_url":"https://github.com/ARMmbed/mbed-os/pull/3842","diff_url":"https://github.com/ARMmbed/mbed-os/pull/3842.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/3842.patch"},"body":"… on the same pins + minor editorial corrections.\r\n\r\n## Description\r\nEach spi_init() call resulted in initialization of another SPI peripheral instance, whereas a previously used one should be utilized if initialization was done with the same pin assignments. Otherwise, code like [tests-api-spi](https://github.com/ARMmbed/ci-test-shield/blob/master/TESTS/API/SPI/SPI.cpp) (with local SPI object created several times) has no chance to run correctly, at least unless SPI destructor calls spi_free().\r\n\r\n## Status\r\n**READY**\r\n\r\n\r\n## Migrations\r\nNO\r\n"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/284547867","html_url":"https://github.com/ARMmbed/mbed-os/pull/3842#issuecomment-284547867","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3842","id":284547867,"user":{"login":"mbed-bot","id":12690234,"avatar_url":"https://avatars2.githubusercontent.com/u/12690234?v=3","gravatar_id":"","url":"https://api.github.com/users/mbed-bot","html_url":"https://github.com/mbed-bot","followers_url":"https://api.github.com/users/mbed-bot/followers","following_url":"https://api.github.com/users/mbed-bot/following{/other_user}","gists_url":"https://api.github.com/users/mbed-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/mbed-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbed-bot/subscriptions","organizations_url":"https://api.github.com/users/mbed-bot/orgs","repos_url":"https://api.github.com/users/mbed-bot/repos","events_url":"https://api.github.com/users/mbed-bot/events{/privacy}","received_events_url":"https://api.github.com/users/mbed-bot/received_events","type":"User","site_admin":false},"created_at":"2017-03-06T22:01:58Z","updated_at":"2017-03-06T22:01:58Z","body":"# [Result: SUCCESS](http://mbed-ci-master-2.austin.arm.com:8081/job/pr_pipeline/1644/)\n\nYour command has finished executing! Here's what you wrote!\n\n> /morph test\n\n## Output\n\n[mbed Build Number: 1644](http://mbedosci.cloudapp.net/results/pr/3842/1644)\n\nAll builds and test passed!"}}
{"actor":{"display_login":"mbed-bot"}}