{"action":"created","comment":{"url":"https://api.github.com/repos/forGGe/theCore/pulls/comments/61225404","id":61225404,"diff_hunk":"@@ -496,6 +510,40 @@ constexpr auto i2c_bus< i2c_config >::pick_rcc_fn()\n }\n \n template< class i2c_config >\n+void i2c_bus< i2c_config >::receive_byte(size_t count)\n+{\n+    constexpr auto i2c = pick_i2c();\n+\n+    if (!m_rx || !m_rx_left) {\n+        return;\n+    }\n+\n+    for (size_t i = 0; i < count && m_rx_left; i++) {\n+        m_rx[m_rx_size - m_rx_left] = I2C_ReceiveData(i2c);\n+        m_rx_left--;\n+    }\n+\n+    return;\n+}\n+\n+template< class i2c_config >\n+void i2c_bus< i2c_config >::send_byte(size_t count)\n+{\n+    constexpr auto i2c = pick_i2c();\n+\n+    if (!m_tx || !m_tx_left) {\n+        return;\n+    }\n+\n+    for (size_t i = 0; i < count && m_tx_left; i++) {\n+        I2C_SendData(i2c, m_tx[m_tx_size - m_tx_left]);\n+        m_tx_left--;\n+    }\n+\n+    return;","path":"platform/stm32f4xx/export/platform/i2c_bus.hpp","position":543,"original_position":158,"commit_id":"4aa74f1f01d2dc34c23eaa136c1f35a395ab7ca0","original_commit_id":"4aa74f1f01d2dc34c23eaa136c1f35a395ab7ca0","user":{"login":"forGGe","id":5261821,"avatar_url":"https://avatars.githubusercontent.com/u/5261821?v=3","gravatar_id":"","url":"https://api.github.com/users/forGGe","html_url":"https://github.com/forGGe","followers_url":"https://api.github.com/users/forGGe/followers","following_url":"https://api.github.com/users/forGGe/following{/other_user}","gists_url":"https://api.github.com/users/forGGe/gists{/gist_id}","starred_url":"https://api.github.com/users/forGGe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forGGe/subscriptions","organizations_url":"https://api.github.com/users/forGGe/orgs","repos_url":"https://api.github.com/users/forGGe/repos","events_url":"https://api.github.com/users/forGGe/events{/privacy}","received_events_url":"https://api.github.com/users/forGGe/received_events","type":"User","site_admin":false},"body":"Not needed","created_at":"2016-04-27T09:04:55Z","updated_at":"2016-04-27T09:04:55Z","html_url":"https://github.com/forGGe/theCore/pull/18#discussion_r61225404","pull_request_url":"https://api.github.com/repos/forGGe/theCore/pulls/18","_links":{"self":{"href":"https://api.github.com/repos/forGGe/theCore/pulls/comments/61225404"},"html":{"href":"https://github.com/forGGe/theCore/pull/18#discussion_r61225404"},"pull_request":{"href":"https://api.github.com/repos/forGGe/theCore/pulls/18"}}},"pull_request":{"url":"https://api.github.com/repos/forGGe/theCore/pulls/18","id":67659949,"html_url":"https://github.com/forGGe/theCore/pull/18","diff_url":"https://github.com/forGGe/theCore/pull/18.diff","patch_url":"https://github.com/forGGe/theCore/pull/18.patch","issue_url":"https://api.github.com/repos/forGGe/theCore/issues/18","number":18,"state":"open","locked":false,"title":"I2C bus implementation","user":{"login":"vadimol","id":5074479,"avatar_url":"https://avatars.githubusercontent.com/u/5074479?v=3","gravatar_id":"","url":"https://api.github.com/users/vadimol","html_url":"https://github.com/vadimol","followers_url":"https://api.github.com/users/vadimol/followers","following_url":"https://api.github.com/users/vadimol/following{/other_user}","gists_url":"https://api.github.com/users/vadimol/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimol/subscriptions","organizations_url":"https://api.github.com/users/vadimol/orgs","repos_url":"https://api.github.com/users/vadimol/repos","events_url":"https://api.github.com/users/vadimol/events{/privacy}","received_events_url":"https://api.github.com/users/vadimol/received_events","type":"User","site_admin":false},"body":"1) I2C bus platform implementation\r\n2) Small fixes","created_at":"2016-04-25T02:35:59Z","updated_at":"2016-04-27T09:04:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b5c8241ac1b8ff94f965729839e47d887023ecb2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/forGGe/theCore/pulls/18/commits","review_comments_url":"https://api.github.com/repos/forGGe/theCore/pulls/18/comments","review_comment_url":"https://api.github.com/repos/forGGe/theCore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/forGGe/theCore/issues/18/comments","statuses_url":"https://api.github.com/repos/forGGe/theCore/statuses/4aa74f1f01d2dc34c23eaa136c1f35a395ab7ca0","head":{"label":"vadimol:i2c_bus_implementation","ref":"i2c_bus_implementation","sha":"4aa74f1f01d2dc34c23eaa136c1f35a395ab7ca0","user":{"login":"vadimol","id":5074479,"avatar_url":"https://avatars.githubusercontent.com/u/5074479?v=3","gravatar_id":"","url":"https://api.github.com/users/vadimol","html_url":"https://github.com/vadimol","followers_url":"https://api.github.com/users/vadimol/followers","following_url":"https://api.github.com/users/vadimol/following{/other_user}","gists_url":"https://api.github.com/users/vadimol/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimol/subscriptions","organizations_url":"https://api.github.com/users/vadimol/orgs","repos_url":"https://api.github.com/users/vadimol/repos","events_url":"https://api.github.com/users/vadimol/events{/privacy}","received_events_url":"https://api.github.com/users/vadimol/received_events","type":"User","site_admin":false},"repo":{"id":56065495,"name":"theCore","full_name":"vadimol/theCore","owner":{"login":"vadimol","id":5074479,"avatar_url":"https://avatars.githubusercontent.com/u/5074479?v=3","gravatar_id":"","url":"https://api.github.com/users/vadimol","html_url":"https://github.com/vadimol","followers_url":"https://api.github.com/users/vadimol/followers","following_url":"https://api.github.com/users/vadimol/following{/other_user}","gists_url":"https://api.github.com/users/vadimol/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimol/subscriptions","organizations_url":"https://api.github.com/users/vadimol/orgs","repos_url":"https://api.github.com/users/vadimol/repos","events_url":"https://api.github.com/users/vadimol/events{/privacy}","received_events_url":"https://api.github.com/users/vadimol/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vadimol/theCore","description":"The Core is highly configurable, straightforward C++ embedded framework with minimum set of development dependencies.","fork":true,"url":"https://api.github.com/repos/vadimol/theCore","forks_url":"https://api.github.com/repos/vadimol/theCore/forks","keys_url":"https://api.github.com/repos/vadimol/theCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vadimol/theCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vadimol/theCore/teams","hooks_url":"https://api.github.com/repos/vadimol/theCore/hooks","issue_events_url":"https://api.github.com/repos/vadimol/theCore/issues/events{/number}","events_url":"https://api.github.com/repos/vadimol/theCore/events","assignees_url":"https://api.github.com/repos/vadimol/theCore/assignees{/user}","branches_url":"https://api.github.com/repos/vadimol/theCore/branches{/branch}","tags_url":"https://api.github.com/repos/vadimol/theCore/tags","blobs_url":"https://api.github.com/repos/vadimol/theCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vadimol/theCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vadimol/theCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/vadimol/theCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vadimol/theCore/statuses/{sha}","languages_url":"https://api.github.com/repos/vadimol/theCore/languages","stargazers_url":"https://api.github.com/repos/vadimol/theCore/stargazers","contributors_url":"https://api.github.com/repos/vadimol/theCore/contributors","subscribers_url":"https://api.github.com/repos/vadimol/theCore/subscribers","subscription_url":"https://api.github.com/repos/vadimol/theCore/subscription","commits_url":"https://api.github.com/repos/vadimol/theCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/vadimol/theCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/vadimol/theCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/vadimol/theCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/vadimol/theCore/contents/{+path}","compare_url":"https://api.github.com/repos/vadimol/theCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vadimol/theCore/merges","archive_url":"https://api.github.com/repos/vadimol/theCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vadimol/theCore/downloads","issues_url":"https://api.github.com/repos/vadimol/theCore/issues{/number}","pulls_url":"https://api.github.com/repos/vadimol/theCore/pulls{/number}","milestones_url":"https://api.github.com/repos/vadimol/theCore/milestones{/number}","notifications_url":"https://api.github.com/repos/vadimol/theCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vadimol/theCore/labels{/name}","releases_url":"https://api.github.com/repos/vadimol/theCore/releases{/id}","deployments_url":"https://api.github.com/repos/vadimol/theCore/deployments","created_at":"2016-04-12T13:30:04Z","updated_at":"2016-04-12T13:30:07Z","pushed_at":"2016-04-27T02:03:50Z","git_url":"git://github.com/vadimol/theCore.git","ssh_url":"git@github.com:vadimol/theCore.git","clone_url":"https://github.com/vadimol/theCore.git","svn_url":"https://github.com/vadimol/theCore","homepage":null,"size":5054,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"forGGe:develop","ref":"develop","sha":"9c18414d81d31b04f1e44678d166e20fcfb244b2","user":{"login":"forGGe","id":5261821,"avatar_url":"https://avatars.githubusercontent.com/u/5261821?v=3","gravatar_id":"","url":"https://api.github.com/users/forGGe","html_url":"https://github.com/forGGe","followers_url":"https://api.github.com/users/forGGe/followers","following_url":"https://api.github.com/users/forGGe/following{/other_user}","gists_url":"https://api.github.com/users/forGGe/gists{/gist_id}","starred_url":"https://api.github.com/users/forGGe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forGGe/subscriptions","organizations_url":"https://api.github.com/users/forGGe/orgs","repos_url":"https://api.github.com/users/forGGe/repos","events_url":"https://api.github.com/users/forGGe/events{/privacy}","received_events_url":"https://api.github.com/users/forGGe/received_events","type":"User","site_admin":false},"repo":{"id":56009055,"name":"theCore","full_name":"forGGe/theCore","owner":{"login":"forGGe","id":5261821,"avatar_url":"https://avatars.githubusercontent.com/u/5261821?v=3","gravatar_id":"","url":"https://api.github.com/users/forGGe","html_url":"https://github.com/forGGe","followers_url":"https://api.github.com/users/forGGe/followers","following_url":"https://api.github.com/users/forGGe/following{/other_user}","gists_url":"https://api.github.com/users/forGGe/gists{/gist_id}","starred_url":"https://api.github.com/users/forGGe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/forGGe/subscriptions","organizations_url":"https://api.github.com/users/forGGe/orgs","repos_url":"https://api.github.com/users/forGGe/repos","events_url":"https://api.github.com/users/forGGe/events{/privacy}","received_events_url":"https://api.github.com/users/forGGe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/forGGe/theCore","description":"The Core is highly configurable, straightforward C++ embedded framework with minimum set of development dependencies.","fork":false,"url":"https://api.github.com/repos/forGGe/theCore","forks_url":"https://api.github.com/repos/forGGe/theCore/forks","keys_url":"https://api.github.com/repos/forGGe/theCore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/forGGe/theCore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/forGGe/theCore/teams","hooks_url":"https://api.github.com/repos/forGGe/theCore/hooks","issue_events_url":"https://api.github.com/repos/forGGe/theCore/issues/events{/number}","events_url":"https://api.github.com/repos/forGGe/theCore/events","assignees_url":"https://api.github.com/repos/forGGe/theCore/assignees{/user}","branches_url":"https://api.github.com/repos/forGGe/theCore/branches{/branch}","tags_url":"https://api.github.com/repos/forGGe/theCore/tags","blobs_url":"https://api.github.com/repos/forGGe/theCore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/forGGe/theCore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/forGGe/theCore/git/refs{/sha}","trees_url":"https://api.github.com/repos/forGGe/theCore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/forGGe/theCore/statuses/{sha}","languages_url":"https://api.github.com/repos/forGGe/theCore/languages","stargazers_url":"https://api.github.com/repos/forGGe/theCore/stargazers","contributors_url":"https://api.github.com/repos/forGGe/theCore/contributors","subscribers_url":"https://api.github.com/repos/forGGe/theCore/subscribers","subscription_url":"https://api.github.com/repos/forGGe/theCore/subscription","commits_url":"https://api.github.com/repos/forGGe/theCore/commits{/sha}","git_commits_url":"https://api.github.com/repos/forGGe/theCore/git/commits{/sha}","comments_url":"https://api.github.com/repos/forGGe/theCore/comments{/number}","issue_comment_url":"https://api.github.com/repos/forGGe/theCore/issues/comments{/number}","contents_url":"https://api.github.com/repos/forGGe/theCore/contents/{+path}","compare_url":"https://api.github.com/repos/forGGe/theCore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/forGGe/theCore/merges","archive_url":"https://api.github.com/repos/forGGe/theCore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/forGGe/theCore/downloads","issues_url":"https://api.github.com/repos/forGGe/theCore/issues{/number}","pulls_url":"https://api.github.com/repos/forGGe/theCore/pulls{/number}","milestones_url":"https://api.github.com/repos/forGGe/theCore/milestones{/number}","notifications_url":"https://api.github.com/repos/forGGe/theCore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/forGGe/theCore/labels{/name}","releases_url":"https://api.github.com/repos/forGGe/theCore/releases{/id}","deployments_url":"https://api.github.com/repos/forGGe/theCore/deployments","created_at":"2016-04-11T21:29:56Z","updated_at":"2016-04-25T15:31:08Z","pushed_at":"2016-04-27T02:03:50Z","git_url":"git://github.com/forGGe/theCore.git","ssh_url":"git@github.com:forGGe/theCore.git","clone_url":"https://github.com/forGGe/theCore.git","svn_url":"https://github.com/forGGe/theCore","homepage":null,"size":5064,"stargazers_count":7,"watchers_count":7,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":12,"forks":5,"open_issues":12,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/forGGe/theCore/pulls/18"},"html":{"href":"https://github.com/forGGe/theCore/pull/18"},"issue":{"href":"https://api.github.com/repos/forGGe/theCore/issues/18"},"comments":{"href":"https://api.github.com/repos/forGGe/theCore/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/forGGe/theCore/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/forGGe/theCore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/forGGe/theCore/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/forGGe/theCore/statuses/4aa74f1f01d2dc34c23eaa136c1f35a395ab7ca0"}}}}