{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6538","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6538/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6538/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6538/events","html_url":"https://github.com/ARMmbed/mbed-os/pull/6538","id":311235385,"number":6538,"title":"STM32 I2C: Replace call to wait_us by a sw loop","user":{"login":"bcostm","id":5803932,"avatar_url":"https://avatars3.githubusercontent.com/u/5803932?v=4","gravatar_id":"","url":"https://api.github.com/users/bcostm","html_url":"https://github.com/bcostm","followers_url":"https://api.github.com/users/bcostm/followers","following_url":"https://api.github.com/users/bcostm/following{/other_user}","gists_url":"https://api.github.com/users/bcostm/gists{/gist_id}","starred_url":"https://api.github.com/users/bcostm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcostm/subscriptions","organizations_url":"https://api.github.com/users/bcostm/orgs","repos_url":"https://api.github.com/users/bcostm/repos","events_url":"https://api.github.com/users/bcostm/events{/privacy}","received_events_url":"https://api.github.com/users/bcostm/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":9,"created_at":"2018-04-04T13:42:40Z","updated_at":"2018-04-06T13:07:27Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/6538","html_url":"https://github.com/ARMmbed/mbed-os/pull/6538","diff_url":"https://github.com/ARMmbed/mbed-os/pull/6538.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/6538.patch"},"body":"### Description\r\n\r\nReplace the call to `wait_us()` with a sw loop using us_ticker_read. \r\n\r\nThis has been already done in PR #6069 but canceled due to another fix.\r\n\r\nTested OK with I2C ci-tests on different boards \r\n[report_CISHIELD_fix_i2c_wait.txt](https://github.com/ARMmbed/mbed-os/files/1875961/report_CISHIELD_fix_i2c_wait.txt)\r\n\r\n\r\ncc @RobMeades Maybe verify it also on your platforms ?\r\ncc @LMESTM \r\n\r\n### Pull request type\r\n\r\n[X] Fix  \r\n[ ] Refactor  \r\n[ ] New target  \r\n[ ] Feature  \r\n[ ] Breaking change\r\n"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/379247598","html_url":"https://github.com/ARMmbed/mbed-os/pull/6538#issuecomment-379247598","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6538","id":379247598,"user":{"login":"LMESTM","id":17590297,"avatar_url":"https://avatars2.githubusercontent.com/u/17590297?v=4","gravatar_id":"","url":"https://api.github.com/users/LMESTM","html_url":"https://github.com/LMESTM","followers_url":"https://api.github.com/users/LMESTM/followers","following_url":"https://api.github.com/users/LMESTM/following{/other_user}","gists_url":"https://api.github.com/users/LMESTM/gists{/gist_id}","starred_url":"https://api.github.com/users/LMESTM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LMESTM/subscriptions","organizations_url":"https://api.github.com/users/LMESTM/orgs","repos_url":"https://api.github.com/users/LMESTM/repos","events_url":"https://api.github.com/users/LMESTM/events{/privacy}","received_events_url":"https://api.github.com/users/LMESTM/received_events","type":"User","site_admin":false},"created_at":"2018-04-06T13:07:27Z","updated_at":"2018-04-06T13:07:27Z","author_association":"CONTRIBUTOR","body":"@0xc0170  @bcostm \r\nI think that it would be great to make wait_loop part of the HAL API so that other drivers can use it as well, what do you think ? \r\nIt just happens that I need about the same :-)  \r\n"}}
{"actor":{"display_login":"LMESTM"}}