{"action":"created","comment":{"url":"https://api.github.com/repos/adamgreig/stm32-rs/pulls/comments/219409394","pull_request_review_id":157577771,"id":219409394,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxOTQwOTM5NA==","diff_hunk":"@@ -0,0 +1,35 @@\n+# Common base for 16bit and 32bit TIM2 peripheral\n+\n+\"TIM[23]\":\n+  CR1:\n+    CKD:\n+      NotDivided: [0, \"CK_INT not divided\"]\n+      DividedBy2: [1, \"CK_INT divided by 2\"]\n+      DividedBy4: [2, \"CK_INT divided by 4\"]\n+    CMS:\n+      Edge: [0, \"The counter counts up or down depending on th direction bit (DIR)\"]\n+      CenterDown: [1, \"The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting down\"]\n+      CenterUp: [2, \"The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting up\"]\n+      CenterBoth: [3, \"The counter counts up and down alternatively. Output compare interrupt flags are set only when the counter is counting up or down\"]\n+    DIR:\n+      Up: [0, \"Counter used as upcounter\"]\n+      Down: [1, \"Counter used as downcounter\"]\n+    OPM:\n+      NotStopped: [0, \"Counter is not stopped at update event\"]\n+      Stopped: [1, \"Counter stops counting at the next update event\"]\n+  CR2:\n+    TI1S:\n+      Normal: [0, \"The TIMx_CH1 pin is connected to TI1 input\"]\n+      XOR: [1, \"The TIMx_CH1, CH2, CH3 pins are connected to TI1 input\"]\n+    MMS:\n+      Reset: [0, \"The UG bit from the TIMx_EGR register is used as trigger output\"]\n+      Enable: [1, \"The counter enable signal, CNT_EN, is used as trigger output\"]\n+      Update: [2, \"The update event is selected as trigger output\"]\n+      ComparePulse: [3, \"The trigger output send a positive pulse when the CC1IF flag it to be set, as soon as a capture or a compare match occurred\"]\n+      CompareOC1: [4, \"OC1REF signal is used as trigger output\"]\n+      CompareOC2: [5, \"OC2REF signal is used as trigger output\"] \n+      CompareOC3: [6, \"OC3REF signal is used as trigger output\"]\n+      CompareOC4: [7, \"OC4REF signal is used as trigger output\"]\n+    CCDS:\n+      OnCCx: [0, \"CCx DMA request sent when CCx event occurs\"]\n+      OnUpdate: [1, \"CCx DMA request sent when update event occurs\"]","path":"peripherals/tim/tim2_common.yaml","position":35,"original_position":35,"commit_id":"6e9963f5ea7baaf39245bf83231c37af537cd206","original_commit_id":"6e9963f5ea7baaf39245bf83231c37af537cd206","user":{"login":"octronics","id":43217372,"node_id":"MDQ6VXNlcjQzMjE3Mzcy","avatar_url":"https://avatars0.githubusercontent.com/u/43217372?v=4","gravatar_id":"","url":"https://api.github.com/users/octronics","html_url":"https://github.com/octronics","followers_url":"https://api.github.com/users/octronics/followers","following_url":"https://api.github.com/users/octronics/following{/other_user}","gists_url":"https://api.github.com/users/octronics/gists{/gist_id}","starred_url":"https://api.github.com/users/octronics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octronics/subscriptions","organizations_url":"https://api.github.com/users/octronics/orgs","repos_url":"https://api.github.com/users/octronics/repos","events_url":"https://api.github.com/users/octronics/events{/privacy}","received_events_url":"https://api.github.com/users/octronics/received_events","type":"User","site_admin":false},"body":"Perhaps is OnCompare better than OnCCx?","created_at":"2018-09-21T07:44:58Z","updated_at":"2018-09-21T07:46:11Z","html_url":"https://github.com/adamgreig/stm32-rs/pull/57#discussion_r219409394","pull_request_url":"https://api.github.com/repos/adamgreig/stm32-rs/pulls/57","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/adamgreig/stm32-rs/pulls/comments/219409394"},"html":{"href":"https://github.com/adamgreig/stm32-rs/pull/57#discussion_r219409394"},"pull_request":{"href":"https://api.github.com/repos/adamgreig/stm32-rs/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/adamgreig/stm32-rs/pulls/57","id":216108636,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MTA4NjM2","html_url":"https://github.com/adamgreig/stm32-rs/pull/57","diff_url":"https://github.com/adamgreig/stm32-rs/pull/57.diff","patch_url":"https://github.com/adamgreig/stm32-rs/pull/57.patch","issue_url":"https://api.github.com/repos/adamgreig/stm32-rs/issues/57","number":57,"state":"open","locked":false,"title":"Documents some Timer peripherals","user":{"login":"octronics","id":43217372,"node_id":"MDQ6VXNlcjQzMjE3Mzcy","avatar_url":"https://avatars0.githubusercontent.com/u/43217372?v=4","gravatar_id":"","url":"https://api.github.com/users/octronics","html_url":"https://github.com/octronics","followers_url":"https://api.github.com/users/octronics/followers","following_url":"https://api.github.com/users/octronics/following{/other_user}","gists_url":"https://api.github.com/users/octronics/gists{/gist_id}","starred_url":"https://api.github.com/users/octronics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octronics/subscriptions","organizations_url":"https://api.github.com/users/octronics/orgs","repos_url":"https://api.github.com/users/octronics/repos","events_url":"https://api.github.com/users/octronics/events{/privacy}","received_events_url":"https://api.github.com/users/octronics/received_events","type":"User","site_admin":false},"body":"Describes some common fields on basic TIM.\r\nDescribes TIM16 peripheral (apply on TIM17).\r\nDescribes TIM6 peripheral (apply on TIM7).\r\nAdd TIM16 to all devices that has this hardware.\r\nAdd TIM6 to all devices that has this hardware.\r\nAdd basic_timer on the STM32F0 family.\r\nDescribes some fields of TIM2 peripheral.\r\nAdd 32bit TIM2 peripheral to all devices that has it (all except F1 and L1).\r\nAdd 16bit TIM2 peripheral to all devices that has it (F1 and L1 family).","created_at":"2018-09-17T20:42:26Z","updated_at":"2018-09-21T07:46:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"276088f8b2cb0aaea1fc50e554e18d50bd0572c7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/adamgreig/stm32-rs/pulls/57/commits","review_comments_url":"https://api.github.com/repos/adamgreig/stm32-rs/pulls/57/comments","review_comment_url":"https://api.github.com/repos/adamgreig/stm32-rs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/adamgreig/stm32-rs/issues/57/comments","statuses_url":"https://api.github.com/repos/adamgreig/stm32-rs/statuses/6e9963f5ea7baaf39245bf83231c37af537cd206","head":{"label":"octronics:timer","ref":"timer","sha":"6e9963f5ea7baaf39245bf83231c37af537cd206","user":{"login":"octronics","id":43217372,"node_id":"MDQ6VXNlcjQzMjE3Mzcy","avatar_url":"https://avatars0.githubusercontent.com/u/43217372?v=4","gravatar_id":"","url":"https://api.github.com/users/octronics","html_url":"https://github.com/octronics","followers_url":"https://api.github.com/users/octronics/followers","following_url":"https://api.github.com/users/octronics/following{/other_user}","gists_url":"https://api.github.com/users/octronics/gists{/gist_id}","starred_url":"https://api.github.com/users/octronics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octronics/subscriptions","organizations_url":"https://api.github.com/users/octronics/orgs","repos_url":"https://api.github.com/users/octronics/repos","events_url":"https://api.github.com/users/octronics/events{/privacy}","received_events_url":"https://api.github.com/users/octronics/received_events","type":"User","site_admin":false},"repo":{"id":148522819,"node_id":"MDEwOlJlcG9zaXRvcnkxNDg1MjI4MTk=","name":"stm32-rs","full_name":"octronics/stm32-rs","private":false,"owner":{"login":"octronics","id":43217372,"node_id":"MDQ6VXNlcjQzMjE3Mzcy","avatar_url":"https://avatars0.githubusercontent.com/u/43217372?v=4","gravatar_id":"","url":"https://api.github.com/users/octronics","html_url":"https://github.com/octronics","followers_url":"https://api.github.com/users/octronics/followers","following_url":"https://api.github.com/users/octronics/following{/other_user}","gists_url":"https://api.github.com/users/octronics/gists{/gist_id}","starred_url":"https://api.github.com/users/octronics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/octronics/subscriptions","organizations_url":"https://api.github.com/users/octronics/orgs","repos_url":"https://api.github.com/users/octronics/repos","events_url":"https://api.github.com/users/octronics/events{/privacy}","received_events_url":"https://api.github.com/users/octronics/received_events","type":"User","site_admin":false},"html_url":"https://github.com/octronics/stm32-rs","description":"Embedded rust device crates for STM32 microcontrollers","fork":true,"url":"https://api.github.com/repos/octronics/stm32-rs","forks_url":"https://api.github.com/repos/octronics/stm32-rs/forks","keys_url":"https://api.github.com/repos/octronics/stm32-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/octronics/stm32-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/octronics/stm32-rs/teams","hooks_url":"https://api.github.com/repos/octronics/stm32-rs/hooks","issue_events_url":"https://api.github.com/repos/octronics/stm32-rs/issues/events{/number}","events_url":"https://api.github.com/repos/octronics/stm32-rs/events","assignees_url":"https://api.github.com/repos/octronics/stm32-rs/assignees{/user}","branches_url":"https://api.github.com/repos/octronics/stm32-rs/branches{/branch}","tags_url":"https://api.github.com/repos/octronics/stm32-rs/tags","blobs_url":"https://api.github.com/repos/octronics/stm32-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/octronics/stm32-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/octronics/stm32-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/octronics/stm32-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/octronics/stm32-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/octronics/stm32-rs/languages","stargazers_url":"https://api.github.com/repos/octronics/stm32-rs/stargazers","contributors_url":"https://api.github.com/repos/octronics/stm32-rs/contributors","subscribers_url":"https://api.github.com/repos/octronics/stm32-rs/subscribers","subscription_url":"https://api.github.com/repos/octronics/stm32-rs/subscription","commits_url":"https://api.github.com/repos/octronics/stm32-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/octronics/stm32-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/octronics/stm32-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/octronics/stm32-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/octronics/stm32-rs/contents/{+path}","compare_url":"https://api.github.com/repos/octronics/stm32-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/octronics/stm32-rs/merges","archive_url":"https://api.github.com/repos/octronics/stm32-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/octronics/stm32-rs/downloads","issues_url":"https://api.github.com/repos/octronics/stm32-rs/issues{/number}","pulls_url":"https://api.github.com/repos/octronics/stm32-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/octronics/stm32-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/octronics/stm32-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/octronics/stm32-rs/labels{/name}","releases_url":"https://api.github.com/repos/octronics/stm32-rs/releases{/id}","deployments_url":"https://api.github.com/repos/octronics/stm32-rs/deployments","created_at":"2018-09-12T18:19:00Z","updated_at":"2018-09-19T07:04:18Z","pushed_at":"2018-09-21T06:14:45Z","git_url":"git://github.com/octronics/stm32-rs.git","ssh_url":"git@github.com:octronics/stm32-rs.git","clone_url":"https://github.com/octronics/stm32-rs.git","svn_url":"https://github.com/octronics/stm32-rs","homepage":"https://stm32.agg.io/rs","size":7821,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"adamgreig:master","ref":"master","sha":"2c96729a024b0d514b30275062f28d177259a316","user":{"login":"adamgreig","id":47219,"node_id":"MDQ6VXNlcjQ3MjE5","avatar_url":"https://avatars2.githubusercontent.com/u/47219?v=4","gravatar_id":"","url":"https://api.github.com/users/adamgreig","html_url":"https://github.com/adamgreig","followers_url":"https://api.github.com/users/adamgreig/followers","following_url":"https://api.github.com/users/adamgreig/following{/other_user}","gists_url":"https://api.github.com/users/adamgreig/gists{/gist_id}","starred_url":"https://api.github.com/users/adamgreig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamgreig/subscriptions","organizations_url":"https://api.github.com/users/adamgreig/orgs","repos_url":"https://api.github.com/users/adamgreig/repos","events_url":"https://api.github.com/users/adamgreig/events{/privacy}","received_events_url":"https://api.github.com/users/adamgreig/received_events","type":"User","site_admin":false},"repo":{"id":92896971,"node_id":"MDEwOlJlcG9zaXRvcnk5Mjg5Njk3MQ==","name":"stm32-rs","full_name":"adamgreig/stm32-rs","private":false,"owner":{"login":"adamgreig","id":47219,"node_id":"MDQ6VXNlcjQ3MjE5","avatar_url":"https://avatars2.githubusercontent.com/u/47219?v=4","gravatar_id":"","url":"https://api.github.com/users/adamgreig","html_url":"https://github.com/adamgreig","followers_url":"https://api.github.com/users/adamgreig/followers","following_url":"https://api.github.com/users/adamgreig/following{/other_user}","gists_url":"https://api.github.com/users/adamgreig/gists{/gist_id}","starred_url":"https://api.github.com/users/adamgreig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adamgreig/subscriptions","organizations_url":"https://api.github.com/users/adamgreig/orgs","repos_url":"https://api.github.com/users/adamgreig/repos","events_url":"https://api.github.com/users/adamgreig/events{/privacy}","received_events_url":"https://api.github.com/users/adamgreig/received_events","type":"User","site_admin":false},"html_url":"https://github.com/adamgreig/stm32-rs","description":"Embedded rust device crates for STM32 microcontrollers","fork":false,"url":"https://api.github.com/repos/adamgreig/stm32-rs","forks_url":"https://api.github.com/repos/adamgreig/stm32-rs/forks","keys_url":"https://api.github.com/repos/adamgreig/stm32-rs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/adamgreig/stm32-rs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/adamgreig/stm32-rs/teams","hooks_url":"https://api.github.com/repos/adamgreig/stm32-rs/hooks","issue_events_url":"https://api.github.com/repos/adamgreig/stm32-rs/issues/events{/number}","events_url":"https://api.github.com/repos/adamgreig/stm32-rs/events","assignees_url":"https://api.github.com/repos/adamgreig/stm32-rs/assignees{/user}","branches_url":"https://api.github.com/repos/adamgreig/stm32-rs/branches{/branch}","tags_url":"https://api.github.com/repos/adamgreig/stm32-rs/tags","blobs_url":"https://api.github.com/repos/adamgreig/stm32-rs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/adamgreig/stm32-rs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/adamgreig/stm32-rs/git/refs{/sha}","trees_url":"https://api.github.com/repos/adamgreig/stm32-rs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/adamgreig/stm32-rs/statuses/{sha}","languages_url":"https://api.github.com/repos/adamgreig/stm32-rs/languages","stargazers_url":"https://api.github.com/repos/adamgreig/stm32-rs/stargazers","contributors_url":"https://api.github.com/repos/adamgreig/stm32-rs/contributors","subscribers_url":"https://api.github.com/repos/adamgreig/stm32-rs/subscribers","subscription_url":"https://api.github.com/repos/adamgreig/stm32-rs/subscription","commits_url":"https://api.github.com/repos/adamgreig/stm32-rs/commits{/sha}","git_commits_url":"https://api.github.com/repos/adamgreig/stm32-rs/git/commits{/sha}","comments_url":"https://api.github.com/repos/adamgreig/stm32-rs/comments{/number}","issue_comment_url":"https://api.github.com/repos/adamgreig/stm32-rs/issues/comments{/number}","contents_url":"https://api.github.com/repos/adamgreig/stm32-rs/contents/{+path}","compare_url":"https://api.github.com/repos/adamgreig/stm32-rs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/adamgreig/stm32-rs/merges","archive_url":"https://api.github.com/repos/adamgreig/stm32-rs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/adamgreig/stm32-rs/downloads","issues_url":"https://api.github.com/repos/adamgreig/stm32-rs/issues{/number}","pulls_url":"https://api.github.com/repos/adamgreig/stm32-rs/pulls{/number}","milestones_url":"https://api.github.com/repos/adamgreig/stm32-rs/milestones{/number}","notifications_url":"https://api.github.com/repos/adamgreig/stm32-rs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/adamgreig/stm32-rs/labels{/name}","releases_url":"https://api.github.com/repos/adamgreig/stm32-rs/releases{/id}","deployments_url":"https://api.github.com/repos/adamgreig/stm32-rs/deployments","created_at":"2017-05-31T02:43:32Z","updated_at":"2018-09-19T15:00:59Z","pushed_at":"2018-09-21T06:14:47Z","git_url":"git://github.com/adamgreig/stm32-rs.git","ssh_url":"git@github.com:adamgreig/stm32-rs.git","clone_url":"https://github.com/adamgreig/stm32-rs.git","svn_url":"https://github.com/adamgreig/stm32-rs","homepage":"https://stm32.agg.io/rs","size":7797,"stargazers_count":55,"watchers_count":55,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"archived":false,"open_issues_count":15,"license":{"key":"other","name":"Other","spdx_id":null,"url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":16,"open_issues":15,"watchers":55,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/adamgreig/stm32-rs/pulls/57"},"html":{"href":"https://github.com/adamgreig/stm32-rs/pull/57"},"issue":{"href":"https://api.github.com/repos/adamgreig/stm32-rs/issues/57"},"comments":{"href":"https://api.github.com/repos/adamgreig/stm32-rs/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/adamgreig/stm32-rs/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/adamgreig/stm32-rs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/adamgreig/stm32-rs/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/adamgreig/stm32-rs/statuses/6e9963f5ea7baaf39245bf83231c37af537cd206"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"octronics"}}