{"action":"created","comment":{"url":"https://api.github.com/repos/piodabro/WPro58/pulls/comments/167400600","pull_request_review_id":95623990,"id":167400600,"diff_hunk":"@@ -131,7 +131,74 @@ void MX_GPIO_Init(void)\n }\n \n /* USER CODE BEGIN 2 */\n+#else\n+void MX_GPIO_Init(void)\n+{\n+\n+  GPIO_InitTypeDef GPIO_InitStruct;\n+\n+  /* GPIO Ports Clock Enable */\n+  __HAL_RCC_GPIOC_CLK_ENABLE();\n+  __HAL_RCC_GPIOD_CLK_ENABLE();\n+  __HAL_RCC_GPIOA_CLK_ENABLE();\n+  __HAL_RCC_GPIOB_CLK_ENABLE();\n+\n+  /*Configure GPIO pin Output Level */\n+  HAL_GPIO_WritePin(RECEIVER_SW_GPIO_Port, RECEIVER_SW_Pin, GPIO_PIN_RESET);\n+\n+  /*Configure GPIO pin Output Level */\n+  HAL_GPIO_WritePin(GPIOB, LED_B_Pin|SPI_SLAVE_SELECT_B_Pin|SPI_SLAVE_SELECT_A_Pin, GPIO_PIN_SET);\n \n+  /*Configure GPIO pin Output Level */\n+  HAL_GPIO_WritePin(GPIOB, SPI_DATA_Pin|SPI_CLOCK_Pin, GPIO_PIN_RESET);\n+\n+  /*Configure GPIO pin Output Level */\n+  HAL_GPIO_WritePin(LED_A_GPIO_Port, LED_A_Pin, GPIO_PIN_SET);\n+\n+  /*Configure GPIO pin : PtPin */\n+  GPIO_InitStruct.Pin = RECEIVER_SW_Pin;\n+  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;\n+  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;\n+  HAL_GPIO_Init(RECEIVER_SW_GPIO_Port, &GPIO_InitStruct);\n+\n+  /*Configure GPIO pin : PtPin */\n+  GPIO_InitStruct.Pin = LED_B_Pin;\n+  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;\n+  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;\n+  HAL_GPIO_Init(LED_B_GPIO_Port, &GPIO_InitStruct);\n+\n+  /*Configure GPIO pin : PtPin */\n+  GPIO_InitStruct.Pin = LED_A_Pin;\n+  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;\n+  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_MEDIUM;\n+  HAL_GPIO_Init(LED_A_GPIO_Port, &GPIO_InitStruct);\n+\n+  /*Configure GPIO pins : PBPin PBPin PBPin PBPin */\n+  GPIO_InitStruct.Pin = SPI_SLAVE_SELECT_B_Pin|SPI_SLAVE_SELECT_A_Pin|SPI_DATA_Pin|SPI_CLOCK_Pin;\n+  GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;\n+  GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH;\n+  HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);\n+\n+  /*Configure GPIO pins : PAPin PAPin */\n+  GPIO_InitStruct.Pin = BUTTON_DOWN_Pin|BUTTON_MODE_Pin|BUTTON_UP_Pin;\n+  GPIO_InitStruct.Mode = GPIO_MODE_INPUT;\n+  GPIO_InitStruct.Pull = GPIO_PULLUP;\n+  HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);\n+\n+//  /*Configure GPIO pins : PBPin PBPin */","path":"PRO58/Src/gpio.c","position":67,"original_position":67,"commit_id":"f7383fca2e7c01c8dcbd957e0121abd959244c78","original_commit_id":"f7383fca2e7c01c8dcbd957e0121abd959244c78","user":{"login":"mihero","id":1123758,"avatar_url":"https://avatars0.githubusercontent.com/u/1123758?v=4","gravatar_id":"","url":"https://api.github.com/users/mihero","html_url":"https://github.com/mihero","followers_url":"https://api.github.com/users/mihero/followers","following_url":"https://api.github.com/users/mihero/following{/other_user}","gists_url":"https://api.github.com/users/mihero/gists{/gist_id}","starred_url":"https://api.github.com/users/mihero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihero/subscriptions","organizations_url":"https://api.github.com/users/mihero/orgs","repos_url":"https://api.github.com/users/mihero/repos","events_url":"https://api.github.com/users/mihero/events{/privacy}","received_events_url":"https://api.github.com/users/mihero/received_events","type":"User","site_admin":false},"body":"not needed to have commented out code in version control","created_at":"2018-02-10T14:42:26Z","updated_at":"2018-02-10T14:42:26Z","html_url":"https://github.com/piodabro/WPro58/pull/20#discussion_r167400600","pull_request_url":"https://api.github.com/repos/piodabro/WPro58/pulls/20","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/piodabro/WPro58/pulls/comments/167400600"},"html":{"href":"https://github.com/piodabro/WPro58/pull/20#discussion_r167400600"},"pull_request":{"href":"https://api.github.com/repos/piodabro/WPro58/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/piodabro/WPro58/pulls/20","id":167947973,"html_url":"https://github.com/piodabro/WPro58/pull/20","diff_url":"https://github.com/piodabro/WPro58/pull/20.diff","patch_url":"https://github.com/piodabro/WPro58/pull/20.patch","issue_url":"https://api.github.com/repos/piodabro/WPro58/issues/20","number":20,"state":"closed","locked":false,"title":"Hw/hb5808 support","user":{"login":"piodabro","id":20957116,"avatar_url":"https://avatars2.githubusercontent.com/u/20957116?v=4","gravatar_id":"","url":"https://api.github.com/users/piodabro","html_url":"https://github.com/piodabro","followers_url":"https://api.github.com/users/piodabro/followers","following_url":"https://api.github.com/users/piodabro/following{/other_user}","gists_url":"https://api.github.com/users/piodabro/gists{/gist_id}","starred_url":"https://api.github.com/users/piodabro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piodabro/subscriptions","organizations_url":"https://api.github.com/users/piodabro/orgs","repos_url":"https://api.github.com/users/piodabro/repos","events_url":"https://api.github.com/users/piodabro/events{/privacy}","received_events_url":"https://api.github.com/users/piodabro/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-08T11:39:50Z","updated_at":"2018-02-10T14:42:26Z","closed_at":"2018-02-08T11:40:22Z","merged_at":"2018-02-08T11:40:22Z","merge_commit_sha":"b9efa4ff58e0a070b8d2bd465194023ecf8f715a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/piodabro/WPro58/pulls/20/commits","review_comments_url":"https://api.github.com/repos/piodabro/WPro58/pulls/20/comments","review_comment_url":"https://api.github.com/repos/piodabro/WPro58/pulls/comments{/number}","comments_url":"https://api.github.com/repos/piodabro/WPro58/issues/20/comments","statuses_url":"https://api.github.com/repos/piodabro/WPro58/statuses/f7383fca2e7c01c8dcbd957e0121abd959244c78","head":{"label":"piodabro:hw/hb5808_support","ref":"hw/hb5808_support","sha":"f7383fca2e7c01c8dcbd957e0121abd959244c78","user":{"login":"piodabro","id":20957116,"avatar_url":"https://avatars2.githubusercontent.com/u/20957116?v=4","gravatar_id":"","url":"https://api.github.com/users/piodabro","html_url":"https://github.com/piodabro","followers_url":"https://api.github.com/users/piodabro/followers","following_url":"https://api.github.com/users/piodabro/following{/other_user}","gists_url":"https://api.github.com/users/piodabro/gists{/gist_id}","starred_url":"https://api.github.com/users/piodabro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piodabro/subscriptions","organizations_url":"https://api.github.com/users/piodabro/orgs","repos_url":"https://api.github.com/users/piodabro/repos","events_url":"https://api.github.com/users/piodabro/events{/privacy}","received_events_url":"https://api.github.com/users/piodabro/received_events","type":"User","site_admin":false},"repo":{"id":100890632,"name":"WPro58","full_name":"piodabro/WPro58","owner":{"login":"piodabro","id":20957116,"avatar_url":"https://avatars2.githubusercontent.com/u/20957116?v=4","gravatar_id":"","url":"https://api.github.com/users/piodabro","html_url":"https://github.com/piodabro","followers_url":"https://api.github.com/users/piodabro/followers","following_url":"https://api.github.com/users/piodabro/following{/other_user}","gists_url":"https://api.github.com/users/piodabro/gists{/gist_id}","starred_url":"https://api.github.com/users/piodabro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piodabro/subscriptions","organizations_url":"https://api.github.com/users/piodabro/orgs","repos_url":"https://api.github.com/users/piodabro/repos","events_url":"https://api.github.com/users/piodabro/events{/privacy}","received_events_url":"https://api.github.com/users/piodabro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/piodabro/WPro58","description":"Eachine PRO58 module open-source firmware","fork":false,"url":"https://api.github.com/repos/piodabro/WPro58","forks_url":"https://api.github.com/repos/piodabro/WPro58/forks","keys_url":"https://api.github.com/repos/piodabro/WPro58/keys{/key_id}","collaborators_url":"https://api.github.com/repos/piodabro/WPro58/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/piodabro/WPro58/teams","hooks_url":"https://api.github.com/repos/piodabro/WPro58/hooks","issue_events_url":"https://api.github.com/repos/piodabro/WPro58/issues/events{/number}","events_url":"https://api.github.com/repos/piodabro/WPro58/events","assignees_url":"https://api.github.com/repos/piodabro/WPro58/assignees{/user}","branches_url":"https://api.github.com/repos/piodabro/WPro58/branches{/branch}","tags_url":"https://api.github.com/repos/piodabro/WPro58/tags","blobs_url":"https://api.github.com/repos/piodabro/WPro58/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/piodabro/WPro58/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/piodabro/WPro58/git/refs{/sha}","trees_url":"https://api.github.com/repos/piodabro/WPro58/git/trees{/sha}","statuses_url":"https://api.github.com/repos/piodabro/WPro58/statuses/{sha}","languages_url":"https://api.github.com/repos/piodabro/WPro58/languages","stargazers_url":"https://api.github.com/repos/piodabro/WPro58/stargazers","contributors_url":"https://api.github.com/repos/piodabro/WPro58/contributors","subscribers_url":"https://api.github.com/repos/piodabro/WPro58/subscribers","subscription_url":"https://api.github.com/repos/piodabro/WPro58/subscription","commits_url":"https://api.github.com/repos/piodabro/WPro58/commits{/sha}","git_commits_url":"https://api.github.com/repos/piodabro/WPro58/git/commits{/sha}","comments_url":"https://api.github.com/repos/piodabro/WPro58/comments{/number}","issue_comment_url":"https://api.github.com/repos/piodabro/WPro58/issues/comments{/number}","contents_url":"https://api.github.com/repos/piodabro/WPro58/contents/{+path}","compare_url":"https://api.github.com/repos/piodabro/WPro58/compare/{base}...{head}","merges_url":"https://api.github.com/repos/piodabro/WPro58/merges","archive_url":"https://api.github.com/repos/piodabro/WPro58/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/piodabro/WPro58/downloads","issues_url":"https://api.github.com/repos/piodabro/WPro58/issues{/number}","pulls_url":"https://api.github.com/repos/piodabro/WPro58/pulls{/number}","milestones_url":"https://api.github.com/repos/piodabro/WPro58/milestones{/number}","notifications_url":"https://api.github.com/repos/piodabro/WPro58/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/piodabro/WPro58/labels{/name}","releases_url":"https://api.github.com/repos/piodabro/WPro58/releases{/id}","deployments_url":"https://api.github.com/repos/piodabro/WPro58/deployments","created_at":"2017-08-20T21:49:09Z","updated_at":"2018-02-07T14:19:36Z","pushed_at":"2018-02-10T14:06:11Z","git_url":"git://github.com/piodabro/WPro58.git","ssh_url":"git@github.com:piodabro/WPro58.git","clone_url":"https://github.com/piodabro/WPro58.git","svn_url":"https://github.com/piodabro/WPro58","homepage":"","size":1572,"stargazers_count":14,"watchers_count":14,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":9,"open_issues":5,"watchers":14,"default_branch":"master"}},"base":{"label":"piodabro:master","ref":"master","sha":"e61a346e1975d360cf50e808576ed0e94409d661","user":{"login":"piodabro","id":20957116,"avatar_url":"https://avatars2.githubusercontent.com/u/20957116?v=4","gravatar_id":"","url":"https://api.github.com/users/piodabro","html_url":"https://github.com/piodabro","followers_url":"https://api.github.com/users/piodabro/followers","following_url":"https://api.github.com/users/piodabro/following{/other_user}","gists_url":"https://api.github.com/users/piodabro/gists{/gist_id}","starred_url":"https://api.github.com/users/piodabro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piodabro/subscriptions","organizations_url":"https://api.github.com/users/piodabro/orgs","repos_url":"https://api.github.com/users/piodabro/repos","events_url":"https://api.github.com/users/piodabro/events{/privacy}","received_events_url":"https://api.github.com/users/piodabro/received_events","type":"User","site_admin":false},"repo":{"id":100890632,"name":"WPro58","full_name":"piodabro/WPro58","owner":{"login":"piodabro","id":20957116,"avatar_url":"https://avatars2.githubusercontent.com/u/20957116?v=4","gravatar_id":"","url":"https://api.github.com/users/piodabro","html_url":"https://github.com/piodabro","followers_url":"https://api.github.com/users/piodabro/followers","following_url":"https://api.github.com/users/piodabro/following{/other_user}","gists_url":"https://api.github.com/users/piodabro/gists{/gist_id}","starred_url":"https://api.github.com/users/piodabro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piodabro/subscriptions","organizations_url":"https://api.github.com/users/piodabro/orgs","repos_url":"https://api.github.com/users/piodabro/repos","events_url":"https://api.github.com/users/piodabro/events{/privacy}","received_events_url":"https://api.github.com/users/piodabro/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/piodabro/WPro58","description":"Eachine PRO58 module open-source firmware","fork":false,"url":"https://api.github.com/repos/piodabro/WPro58","forks_url":"https://api.github.com/repos/piodabro/WPro58/forks","keys_url":"https://api.github.com/repos/piodabro/WPro58/keys{/key_id}","collaborators_url":"https://api.github.com/repos/piodabro/WPro58/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/piodabro/WPro58/teams","hooks_url":"https://api.github.com/repos/piodabro/WPro58/hooks","issue_events_url":"https://api.github.com/repos/piodabro/WPro58/issues/events{/number}","events_url":"https://api.github.com/repos/piodabro/WPro58/events","assignees_url":"https://api.github.com/repos/piodabro/WPro58/assignees{/user}","branches_url":"https://api.github.com/repos/piodabro/WPro58/branches{/branch}","tags_url":"https://api.github.com/repos/piodabro/WPro58/tags","blobs_url":"https://api.github.com/repos/piodabro/WPro58/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/piodabro/WPro58/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/piodabro/WPro58/git/refs{/sha}","trees_url":"https://api.github.com/repos/piodabro/WPro58/git/trees{/sha}","statuses_url":"https://api.github.com/repos/piodabro/WPro58/statuses/{sha}","languages_url":"https://api.github.com/repos/piodabro/WPro58/languages","stargazers_url":"https://api.github.com/repos/piodabro/WPro58/stargazers","contributors_url":"https://api.github.com/repos/piodabro/WPro58/contributors","subscribers_url":"https://api.github.com/repos/piodabro/WPro58/subscribers","subscription_url":"https://api.github.com/repos/piodabro/WPro58/subscription","commits_url":"https://api.github.com/repos/piodabro/WPro58/commits{/sha}","git_commits_url":"https://api.github.com/repos/piodabro/WPro58/git/commits{/sha}","comments_url":"https://api.github.com/repos/piodabro/WPro58/comments{/number}","issue_comment_url":"https://api.github.com/repos/piodabro/WPro58/issues/comments{/number}","contents_url":"https://api.github.com/repos/piodabro/WPro58/contents/{+path}","compare_url":"https://api.github.com/repos/piodabro/WPro58/compare/{base}...{head}","merges_url":"https://api.github.com/repos/piodabro/WPro58/merges","archive_url":"https://api.github.com/repos/piodabro/WPro58/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/piodabro/WPro58/downloads","issues_url":"https://api.github.com/repos/piodabro/WPro58/issues{/number}","pulls_url":"https://api.github.com/repos/piodabro/WPro58/pulls{/number}","milestones_url":"https://api.github.com/repos/piodabro/WPro58/milestones{/number}","notifications_url":"https://api.github.com/repos/piodabro/WPro58/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/piodabro/WPro58/labels{/name}","releases_url":"https://api.github.com/repos/piodabro/WPro58/releases{/id}","deployments_url":"https://api.github.com/repos/piodabro/WPro58/deployments","created_at":"2017-08-20T21:49:09Z","updated_at":"2018-02-07T14:19:36Z","pushed_at":"2018-02-10T14:06:11Z","git_url":"git://github.com/piodabro/WPro58.git","ssh_url":"git@github.com:piodabro/WPro58.git","clone_url":"https://github.com/piodabro/WPro58.git","svn_url":"https://github.com/piodabro/WPro58","homepage":"","size":1572,"stargazers_count":14,"watchers_count":14,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":5,"license":null,"forks":9,"open_issues":5,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/piodabro/WPro58/pulls/20"},"html":{"href":"https://github.com/piodabro/WPro58/pull/20"},"issue":{"href":"https://api.github.com/repos/piodabro/WPro58/issues/20"},"comments":{"href":"https://api.github.com/repos/piodabro/WPro58/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/piodabro/WPro58/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/piodabro/WPro58/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/piodabro/WPro58/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/piodabro/WPro58/statuses/f7383fca2e7c01c8dcbd957e0121abd959244c78"}},"author_association":"OWNER"}}
{"actor":{"display_login":"mihero"}}