{"action":"created","comment":{"url":"https://api.github.com/repos/libopencm3/libopencm3/pulls/comments/73791987","id":73791987,"diff_hunk":"@@ -0,0 +1,814 @@\n+/*\n+ * STM32F4 DSI Host Defines\n+ *\n+ * Copyright (C) 2016, Chuck McManis <cmcmanis@mcmanis.com>\n+ *\n+ * This file is part of the libopencm3 project.\n+ *\n+ * This library is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU Lesser General Public License as published by\n+ * the Free Software Foundation, either version 3 of the License, or\n+ * (at your option) any later version.\n+ *\n+ * This library is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n+ * GNU Lesser General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Lesser General Public License\n+ * along with this library.  If not, see <http://www.gnu.org/licenses/>.\n+ *\n+ */\n+\n+#include <libopencm3/cm3/common.h>\n+#include <libopencm3/stm32/memorymap.h>\n+\n+#ifndef DSI_H\n+#define DSI_H\n+\n+/*\n+ * A couple of helper macros to avoid copy pasta code\n+ * For multi-bit fields we can use these macros to create\n+ * a unified SET_<reg>_<field> version and a GET_<reg_<field> version.\n+ */\n+#define DSI_GET(reg, field, x) \\\n+    (((x) >> DSI_ ## reg ## _ ## field ##_SHIFT) & DSI_ ## reg ##_ ## field ##_MASK)\n+\n+#define DSI_SET(reg, field, x) \\\n+    (((x) & DSI_ ## reg ##_## field ##_MASK) << DSI_## reg ##_## field ##_SHIFT)\n+\n+#define DSI_MASK(reg, field) \\\n+    ((DSI_ ## reg ##_## field ##_MASK) << DSI_## reg ##_## field ##_SHIFT)","path":"include/libopencm3/stm32/f4/dsi.h","position":41,"original_position":41,"commit_id":"7a499fdb98ad08ee715409e4b97338220ce1a7d1","original_commit_id":"7a499fdb98ad08ee715409e4b97338220ce1a7d1","user":{"login":"ChuckM","id":532407,"avatar_url":"https://avatars.githubusercontent.com/u/532407?v=3","gravatar_id":"","url":"https://api.github.com/users/ChuckM","html_url":"https://github.com/ChuckM","followers_url":"https://api.github.com/users/ChuckM/followers","following_url":"https://api.github.com/users/ChuckM/following{/other_user}","gists_url":"https://api.github.com/users/ChuckM/gists{/gist_id}","starred_url":"https://api.github.com/users/ChuckM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChuckM/subscriptions","organizations_url":"https://api.github.com/users/ChuckM/orgs","repos_url":"https://api.github.com/users/ChuckM/repos","events_url":"https://api.github.com/users/ChuckM/events{/privacy}","received_events_url":"https://api.github.com/users/ChuckM/received_events","type":"User","site_admin":false},"body":"Except that if you take the examples which would potentially follow this commit into the examples repo there would be number of files showing how they are used. I'm inclined to leave them in rather than repeat them in example after example.","created_at":"2016-08-06T21:03:57Z","updated_at":"2016-08-06T21:03:57Z","html_url":"https://github.com/libopencm3/libopencm3/pull/680#discussion_r73791987","pull_request_url":"https://api.github.com/repos/libopencm3/libopencm3/pulls/680","_links":{"self":{"href":"https://api.github.com/repos/libopencm3/libopencm3/pulls/comments/73791987"},"html":{"href":"https://github.com/libopencm3/libopencm3/pull/680#discussion_r73791987"},"pull_request":{"href":"https://api.github.com/repos/libopencm3/libopencm3/pulls/680"}}},"pull_request":{"url":"https://api.github.com/repos/libopencm3/libopencm3/pulls/680","id":80317907,"html_url":"https://github.com/libopencm3/libopencm3/pull/680","diff_url":"https://github.com/libopencm3/libopencm3/pull/680.diff","patch_url":"https://github.com/libopencm3/libopencm3/pull/680.patch","issue_url":"https://api.github.com/repos/libopencm3/libopencm3/issues/680","number":680,"state":"open","locked":false,"title":"stm32/f4: dsi: DSI Peripheral include file","user":{"login":"ChuckM","id":532407,"avatar_url":"https://avatars.githubusercontent.com/u/532407?v=3","gravatar_id":"","url":"https://api.github.com/users/ChuckM","html_url":"https://github.com/ChuckM","followers_url":"https://api.github.com/users/ChuckM/followers","following_url":"https://api.github.com/users/ChuckM/following{/other_user}","gists_url":"https://api.github.com/users/ChuckM/gists{/gist_id}","starred_url":"https://api.github.com/users/ChuckM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChuckM/subscriptions","organizations_url":"https://api.github.com/users/ChuckM/orgs","repos_url":"https://api.github.com/users/ChuckM/repos","events_url":"https://api.github.com/users/ChuckM/events{/privacy}","received_events_url":"https://api.github.com/users/ChuckM/received_events","type":"User","site_admin":false},"body":"Adds the dsi.h file to the f4 path of the library.","created_at":"2016-08-05T22:54:40Z","updated_at":"2016-08-06T21:03:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2723d62b53df3af274ab8f0552402ce4ef09b7c9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/libopencm3/libopencm3/pulls/680/commits","review_comments_url":"https://api.github.com/repos/libopencm3/libopencm3/pulls/680/comments","review_comment_url":"https://api.github.com/repos/libopencm3/libopencm3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/libopencm3/libopencm3/issues/680/comments","statuses_url":"https://api.github.com/repos/libopencm3/libopencm3/statuses/7a499fdb98ad08ee715409e4b97338220ce1a7d1","head":{"label":"ChuckM:new-dsi-file","ref":"new-dsi-file","sha":"7a499fdb98ad08ee715409e4b97338220ce1a7d1","user":{"login":"ChuckM","id":532407,"avatar_url":"https://avatars.githubusercontent.com/u/532407?v=3","gravatar_id":"","url":"https://api.github.com/users/ChuckM","html_url":"https://github.com/ChuckM","followers_url":"https://api.github.com/users/ChuckM/followers","following_url":"https://api.github.com/users/ChuckM/following{/other_user}","gists_url":"https://api.github.com/users/ChuckM/gists{/gist_id}","starred_url":"https://api.github.com/users/ChuckM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChuckM/subscriptions","organizations_url":"https://api.github.com/users/ChuckM/orgs","repos_url":"https://api.github.com/users/ChuckM/repos","events_url":"https://api.github.com/users/ChuckM/events{/privacy}","received_events_url":"https://api.github.com/users/ChuckM/received_events","type":"User","site_admin":false},"repo":{"id":11395720,"name":"libopencm3-stm32f429-changes","full_name":"ChuckM/libopencm3-stm32f429-changes","owner":{"login":"ChuckM","id":532407,"avatar_url":"https://avatars.githubusercontent.com/u/532407?v=3","gravatar_id":"","url":"https://api.github.com/users/ChuckM","html_url":"https://github.com/ChuckM","followers_url":"https://api.github.com/users/ChuckM/followers","following_url":"https://api.github.com/users/ChuckM/following{/other_user}","gists_url":"https://api.github.com/users/ChuckM/gists{/gist_id}","starred_url":"https://api.github.com/users/ChuckM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChuckM/subscriptions","organizations_url":"https://api.github.com/users/ChuckM/orgs","repos_url":"https://api.github.com/users/ChuckM/repos","events_url":"https://api.github.com/users/ChuckM/events{/privacy}","received_events_url":"https://api.github.com/users/ChuckM/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ChuckM/libopencm3-stm32f429-changes","description":"Open Source ARM cortex m microcontroller library","fork":true,"url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes","forks_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/forks","keys_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/teams","hooks_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/hooks","issue_events_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/issues/events{/number}","events_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/events","assignees_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/assignees{/user}","branches_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/branches{/branch}","tags_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/tags","blobs_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/git/refs{/sha}","trees_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/statuses/{sha}","languages_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/languages","stargazers_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/stargazers","contributors_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/contributors","subscribers_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/subscribers","subscription_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/subscription","commits_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/commits{/sha}","git_commits_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/git/commits{/sha}","comments_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/comments{/number}","issue_comment_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/issues/comments{/number}","contents_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/contents/{+path}","compare_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/merges","archive_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/downloads","issues_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/issues{/number}","pulls_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/pulls{/number}","milestones_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/milestones{/number}","notifications_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/labels{/name}","releases_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/releases{/id}","deployments_url":"https://api.github.com/repos/ChuckM/libopencm3-stm32f429-changes/deployments","created_at":"2013-07-13T23:33:24Z","updated_at":"2015-02-23T01:16:32Z","pushed_at":"2016-08-05T22:54:15Z","git_url":"git://github.com/ChuckM/libopencm3-stm32f429-changes.git","ssh_url":"git@github.com:ChuckM/libopencm3-stm32f429-changes.git","clone_url":"https://github.com/ChuckM/libopencm3-stm32f429-changes.git","svn_url":"https://github.com/ChuckM/libopencm3-stm32f429-changes","homepage":"http://libopencm3.org/","size":4781,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"libopencm3:master","ref":"master","sha":"0cb1db09674cdf1413da696462f161142a98ec3b","user":{"login":"libopencm3","id":1656279,"avatar_url":"https://avatars.githubusercontent.com/u/1656279?v=3","gravatar_id":"","url":"https://api.github.com/users/libopencm3","html_url":"https://github.com/libopencm3","followers_url":"https://api.github.com/users/libopencm3/followers","following_url":"https://api.github.com/users/libopencm3/following{/other_user}","gists_url":"https://api.github.com/users/libopencm3/gists{/gist_id}","starred_url":"https://api.github.com/users/libopencm3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libopencm3/subscriptions","organizations_url":"https://api.github.com/users/libopencm3/orgs","repos_url":"https://api.github.com/users/libopencm3/repos","events_url":"https://api.github.com/users/libopencm3/events{/privacy}","received_events_url":"https://api.github.com/users/libopencm3/received_events","type":"Organization","site_admin":false},"repo":{"id":4065980,"name":"libopencm3","full_name":"libopencm3/libopencm3","owner":{"login":"libopencm3","id":1656279,"avatar_url":"https://avatars.githubusercontent.com/u/1656279?v=3","gravatar_id":"","url":"https://api.github.com/users/libopencm3","html_url":"https://github.com/libopencm3","followers_url":"https://api.github.com/users/libopencm3/followers","following_url":"https://api.github.com/users/libopencm3/following{/other_user}","gists_url":"https://api.github.com/users/libopencm3/gists{/gist_id}","starred_url":"https://api.github.com/users/libopencm3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/libopencm3/subscriptions","organizations_url":"https://api.github.com/users/libopencm3/orgs","repos_url":"https://api.github.com/users/libopencm3/repos","events_url":"https://api.github.com/users/libopencm3/events{/privacy}","received_events_url":"https://api.github.com/users/libopencm3/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/libopencm3/libopencm3","description":"Open Source ARM cortex m microcontroller library","fork":false,"url":"https://api.github.com/repos/libopencm3/libopencm3","forks_url":"https://api.github.com/repos/libopencm3/libopencm3/forks","keys_url":"https://api.github.com/repos/libopencm3/libopencm3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/libopencm3/libopencm3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/libopencm3/libopencm3/teams","hooks_url":"https://api.github.com/repos/libopencm3/libopencm3/hooks","issue_events_url":"https://api.github.com/repos/libopencm3/libopencm3/issues/events{/number}","events_url":"https://api.github.com/repos/libopencm3/libopencm3/events","assignees_url":"https://api.github.com/repos/libopencm3/libopencm3/assignees{/user}","branches_url":"https://api.github.com/repos/libopencm3/libopencm3/branches{/branch}","tags_url":"https://api.github.com/repos/libopencm3/libopencm3/tags","blobs_url":"https://api.github.com/repos/libopencm3/libopencm3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/libopencm3/libopencm3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/libopencm3/libopencm3/git/refs{/sha}","trees_url":"https://api.github.com/repos/libopencm3/libopencm3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/libopencm3/libopencm3/statuses/{sha}","languages_url":"https://api.github.com/repos/libopencm3/libopencm3/languages","stargazers_url":"https://api.github.com/repos/libopencm3/libopencm3/stargazers","contributors_url":"https://api.github.com/repos/libopencm3/libopencm3/contributors","subscribers_url":"https://api.github.com/repos/libopencm3/libopencm3/subscribers","subscription_url":"https://api.github.com/repos/libopencm3/libopencm3/subscription","commits_url":"https://api.github.com/repos/libopencm3/libopencm3/commits{/sha}","git_commits_url":"https://api.github.com/repos/libopencm3/libopencm3/git/commits{/sha}","comments_url":"https://api.github.com/repos/libopencm3/libopencm3/comments{/number}","issue_comment_url":"https://api.github.com/repos/libopencm3/libopencm3/issues/comments{/number}","contents_url":"https://api.github.com/repos/libopencm3/libopencm3/contents/{+path}","compare_url":"https://api.github.com/repos/libopencm3/libopencm3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/libopencm3/libopencm3/merges","archive_url":"https://api.github.com/repos/libopencm3/libopencm3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/libopencm3/libopencm3/downloads","issues_url":"https://api.github.com/repos/libopencm3/libopencm3/issues{/number}","pulls_url":"https://api.github.com/repos/libopencm3/libopencm3/pulls{/number}","milestones_url":"https://api.github.com/repos/libopencm3/libopencm3/milestones{/number}","notifications_url":"https://api.github.com/repos/libopencm3/libopencm3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/libopencm3/libopencm3/labels{/name}","releases_url":"https://api.github.com/repos/libopencm3/libopencm3/releases{/id}","deployments_url":"https://api.github.com/repos/libopencm3/libopencm3/deployments","created_at":"2012-04-18T16:51:38Z","updated_at":"2016-07-28T04:34:29Z","pushed_at":"2016-08-05T22:54:40Z","git_url":"git://github.com/libopencm3/libopencm3.git","ssh_url":"git@github.com:libopencm3/libopencm3.git","clone_url":"https://github.com/libopencm3/libopencm3.git","svn_url":"https://github.com/libopencm3/libopencm3","homepage":"http://libopencm3.org/","size":7069,"stargazers_count":473,"watchers_count":473,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":313,"mirror_url":null,"open_issues_count":163,"forks":313,"open_issues":163,"watchers":473,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/libopencm3/libopencm3/pulls/680"},"html":{"href":"https://github.com/libopencm3/libopencm3/pull/680"},"issue":{"href":"https://api.github.com/repos/libopencm3/libopencm3/issues/680"},"comments":{"href":"https://api.github.com/repos/libopencm3/libopencm3/issues/680/comments"},"review_comments":{"href":"https://api.github.com/repos/libopencm3/libopencm3/pulls/680/comments"},"review_comment":{"href":"https://api.github.com/repos/libopencm3/libopencm3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/libopencm3/libopencm3/pulls/680/commits"},"statuses":{"href":"https://api.github.com/repos/libopencm3/libopencm3/statuses/7a499fdb98ad08ee715409e4b97338220ce1a7d1"}}}}
{"actor":{"display_login":"ChuckM"}}