{"action":"closed","number":101,"pull_request":{"url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/pulls/101","id":43250183,"html_url":"https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/101","diff_url":"https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/101.diff","patch_url":"https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/101.patch","issue_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/issues/101","number":101,"state":"closed","locked":false,"title":"Pin map in flash","user":{"login":"victorpv","id":11166017,"avatar_url":"https://avatars.githubusercontent.com/u/11166017?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpv","html_url":"https://github.com/victorpv","followers_url":"https://api.github.com/users/victorpv/followers","following_url":"https://api.github.com/users/victorpv/following{/other_user}","gists_url":"https://api.github.com/users/victorpv/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpv/subscriptions","organizations_url":"https://api.github.com/users/victorpv/orgs","repos_url":"https://api.github.com/users/victorpv/repos","events_url":"https://api.github.com/users/victorpv/events{/privacy}","received_events_url":"https://api.github.com/users/victorpv/received_events","type":"User","site_admin":false},"body":"This should bring pin_map to flash.\r\nI haven't tested this commit extensively, but I did was first resync back to you, and then copy over the changes from a folder that had pin_map in flash and I have used it for several months with timers, adc, etc all working, so should work right away.\r\nIf you get any error let me know and I go comparing files again to make sure I didn't leave anything behind.\r\n\r\nNow, little trick. If in boards.cpp, you define pin map with this attribute:\r\nextern const stm32_pin_info __attribute__ ((section (\".data\"))) PIN_MAP[BOARD_NR_GPIO_PINS] = {\r\n\r\nyou are forcing pin_map back to RAM, but still having it completely initialized before any code is run. So you get the speed improvement of RAM, but with the advantage of a table fully populated from start, which should help with any constructor trying to use it.","created_at":"2015-08-25T05:09:41Z","updated_at":"2015-08-29T11:21:59Z","closed_at":"2015-08-29T11:21:59Z","merged_at":"2015-08-29T11:21:59Z","merge_commit_sha":"e1691926f402a328e66f9a3c54797d5fcdef18d3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/pulls/101/commits","review_comments_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/pulls/101/comments","review_comment_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/issues/101/comments","statuses_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/statuses/75648306693f439123bd4ce51fa07b08c3b5b961","head":{"label":"victorpv:PIN-MAP-in-flash","ref":"PIN-MAP-in-flash","sha":"75648306693f439123bd4ce51fa07b08c3b5b961","user":{"login":"victorpv","id":11166017,"avatar_url":"https://avatars.githubusercontent.com/u/11166017?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpv","html_url":"https://github.com/victorpv","followers_url":"https://api.github.com/users/victorpv/followers","following_url":"https://api.github.com/users/victorpv/following{/other_user}","gists_url":"https://api.github.com/users/victorpv/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpv/subscriptions","organizations_url":"https://api.github.com/users/victorpv/orgs","repos_url":"https://api.github.com/users/victorpv/repos","events_url":"https://api.github.com/users/victorpv/events{/privacy}","received_events_url":"https://api.github.com/users/victorpv/received_events","type":"User","site_admin":false},"repo":{"id":36049581,"name":"Arduino_STM32","full_name":"victorpv/Arduino_STM32","owner":{"login":"victorpv","id":11166017,"avatar_url":"https://avatars.githubusercontent.com/u/11166017?v=3","gravatar_id":"","url":"https://api.github.com/users/victorpv","html_url":"https://github.com/victorpv","followers_url":"https://api.github.com/users/victorpv/followers","following_url":"https://api.github.com/users/victorpv/following{/other_user}","gists_url":"https://api.github.com/users/victorpv/gists{/gist_id}","starred_url":"https://api.github.com/users/victorpv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorpv/subscriptions","organizations_url":"https://api.github.com/users/victorpv/orgs","repos_url":"https://api.github.com/users/victorpv/repos","events_url":"https://api.github.com/users/victorpv/events{/privacy}","received_events_url":"https://api.github.com/users/victorpv/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/victorpv/Arduino_STM32","description":"Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.6.x including LeafLabs Maple and other generic STM32F103 boards","fork":true,"url":"https://api.github.com/repos/victorpv/Arduino_STM32","forks_url":"https://api.github.com/repos/victorpv/Arduino_STM32/forks","keys_url":"https://api.github.com/repos/victorpv/Arduino_STM32/keys{/key_id}","collaborators_url":"https://api.github.com/repos/victorpv/Arduino_STM32/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/victorpv/Arduino_STM32/teams","hooks_url":"https://api.github.com/repos/victorpv/Arduino_STM32/hooks","issue_events_url":"https://api.github.com/repos/victorpv/Arduino_STM32/issues/events{/number}","events_url":"https://api.github.com/repos/victorpv/Arduino_STM32/events","assignees_url":"https://api.github.com/repos/victorpv/Arduino_STM32/assignees{/user}","branches_url":"https://api.github.com/repos/victorpv/Arduino_STM32/branches{/branch}","tags_url":"https://api.github.com/repos/victorpv/Arduino_STM32/tags","blobs_url":"https://api.github.com/repos/victorpv/Arduino_STM32/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/victorpv/Arduino_STM32/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/victorpv/Arduino_STM32/git/refs{/sha}","trees_url":"https://api.github.com/repos/victorpv/Arduino_STM32/git/trees{/sha}","statuses_url":"https://api.github.com/repos/victorpv/Arduino_STM32/statuses/{sha}","languages_url":"https://api.github.com/repos/victorpv/Arduino_STM32/languages","stargazers_url":"https://api.github.com/repos/victorpv/Arduino_STM32/stargazers","contributors_url":"https://api.github.com/repos/victorpv/Arduino_STM32/contributors","subscribers_url":"https://api.github.com/repos/victorpv/Arduino_STM32/subscribers","subscription_url":"https://api.github.com/repos/victorpv/Arduino_STM32/subscription","commits_url":"https://api.github.com/repos/victorpv/Arduino_STM32/commits{/sha}","git_commits_url":"https://api.github.com/repos/victorpv/Arduino_STM32/git/commits{/sha}","comments_url":"https://api.github.com/repos/victorpv/Arduino_STM32/comments{/number}","issue_comment_url":"https://api.github.com/repos/victorpv/Arduino_STM32/issues/comments{/number}","contents_url":"https://api.github.com/repos/victorpv/Arduino_STM32/contents/{+path}","compare_url":"https://api.github.com/repos/victorpv/Arduino_STM32/compare/{base}...{head}","merges_url":"https://api.github.com/repos/victorpv/Arduino_STM32/merges","archive_url":"https://api.github.com/repos/victorpv/Arduino_STM32/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/victorpv/Arduino_STM32/downloads","issues_url":"https://api.github.com/repos/victorpv/Arduino_STM32/issues{/number}","pulls_url":"https://api.github.com/repos/victorpv/Arduino_STM32/pulls{/number}","milestones_url":"https://api.github.com/repos/victorpv/Arduino_STM32/milestones{/number}","notifications_url":"https://api.github.com/repos/victorpv/Arduino_STM32/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/victorpv/Arduino_STM32/labels{/name}","releases_url":"https://api.github.com/repos/victorpv/Arduino_STM32/releases{/id}","created_at":"2015-05-22T03:08:51Z","updated_at":"2015-05-22T03:08:55Z","pushed_at":"2015-08-25T05:03:12Z","git_url":"git://github.com/victorpv/Arduino_STM32.git","ssh_url":"git@github.com:victorpv/Arduino_STM32.git","clone_url":"https://github.com/victorpv/Arduino_STM32.git","svn_url":"https://github.com/victorpv/Arduino_STM32","homepage":"","size":55156,"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":"rogerclarkmelbourne:master","ref":"master","sha":"d8996970ed97ee17c1ae2787b249faa407710f91","user":{"login":"rogerclarkmelbourne","id":6146984,"avatar_url":"https://avatars.githubusercontent.com/u/6146984?v=3","gravatar_id":"","url":"https://api.github.com/users/rogerclarkmelbourne","html_url":"https://github.com/rogerclarkmelbourne","followers_url":"https://api.github.com/users/rogerclarkmelbourne/followers","following_url":"https://api.github.com/users/rogerclarkmelbourne/following{/other_user}","gists_url":"https://api.github.com/users/rogerclarkmelbourne/gists{/gist_id}","starred_url":"https://api.github.com/users/rogerclarkmelbourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogerclarkmelbourne/subscriptions","organizations_url":"https://api.github.com/users/rogerclarkmelbourne/orgs","repos_url":"https://api.github.com/users/rogerclarkmelbourne/repos","events_url":"https://api.github.com/users/rogerclarkmelbourne/events{/privacy}","received_events_url":"https://api.github.com/users/rogerclarkmelbourne/received_events","type":"User","site_admin":false},"repo":{"id":25947175,"name":"Arduino_STM32","full_name":"rogerclarkmelbourne/Arduino_STM32","owner":{"login":"rogerclarkmelbourne","id":6146984,"avatar_url":"https://avatars.githubusercontent.com/u/6146984?v=3","gravatar_id":"","url":"https://api.github.com/users/rogerclarkmelbourne","html_url":"https://github.com/rogerclarkmelbourne","followers_url":"https://api.github.com/users/rogerclarkmelbourne/followers","following_url":"https://api.github.com/users/rogerclarkmelbourne/following{/other_user}","gists_url":"https://api.github.com/users/rogerclarkmelbourne/gists{/gist_id}","starred_url":"https://api.github.com/users/rogerclarkmelbourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogerclarkmelbourne/subscriptions","organizations_url":"https://api.github.com/users/rogerclarkmelbourne/orgs","repos_url":"https://api.github.com/users/rogerclarkmelbourne/repos","events_url":"https://api.github.com/users/rogerclarkmelbourne/events{/privacy}","received_events_url":"https://api.github.com/users/rogerclarkmelbourne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rogerclarkmelbourne/Arduino_STM32","description":"Arduino STM32. Hardware files to support STM32 boards, on Arduino IDE 1.6.x including LeafLabs Maple and other generic STM32F103 boards","fork":false,"url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32","forks_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/forks","keys_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/teams","hooks_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/hooks","issue_events_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/issues/events{/number}","events_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/events","assignees_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/assignees{/user}","branches_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/branches{/branch}","tags_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/tags","blobs_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/git/refs{/sha}","trees_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/statuses/{sha}","languages_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/languages","stargazers_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/stargazers","contributors_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/contributors","subscribers_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/subscribers","subscription_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/subscription","commits_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/commits{/sha}","git_commits_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/git/commits{/sha}","comments_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/comments{/number}","issue_comment_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/issues/comments{/number}","contents_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/contents/{+path}","compare_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/merges","archive_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/downloads","issues_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/issues{/number}","pulls_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/pulls{/number}","milestones_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/milestones{/number}","notifications_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/labels{/name}","releases_url":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/releases{/id}","created_at":"2014-10-30T00:09:14Z","updated_at":"2015-08-25T08:36:51Z","pushed_at":"2015-08-29T11:21:59Z","git_url":"git://github.com/rogerclarkmelbourne/Arduino_STM32.git","ssh_url":"git@github.com:rogerclarkmelbourne/Arduino_STM32.git","clone_url":"https://github.com/rogerclarkmelbourne/Arduino_STM32.git","svn_url":"https://github.com/rogerclarkmelbourne/Arduino_STM32","homepage":"","size":32860,"stargazers_count":105,"watchers_count":105,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":47,"mirror_url":null,"open_issues_count":13,"forks":47,"open_issues":13,"watchers":105,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/pulls/101"},"html":{"href":"https://github.com/rogerclarkmelbourne/Arduino_STM32/pull/101"},"issue":{"href":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/issues/101"},"comments":{"href":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/issues/101/comments"},"review_comments":{"href":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/pulls/101/comments"},"review_comment":{"href":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/pulls/101/commits"},"statuses":{"href":"https://api.github.com/repos/rogerclarkmelbourne/Arduino_STM32/statuses/75648306693f439123bd4ce51fa07b08c3b5b961"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"rogerclarkmelbourne","id":6146984,"avatar_url":"https://avatars.githubusercontent.com/u/6146984?v=3","gravatar_id":"","url":"https://api.github.com/users/rogerclarkmelbourne","html_url":"https://github.com/rogerclarkmelbourne","followers_url":"https://api.github.com/users/rogerclarkmelbourne/followers","following_url":"https://api.github.com/users/rogerclarkmelbourne/following{/other_user}","gists_url":"https://api.github.com/users/rogerclarkmelbourne/gists{/gist_id}","starred_url":"https://api.github.com/users/rogerclarkmelbourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rogerclarkmelbourne/subscriptions","organizations_url":"https://api.github.com/users/rogerclarkmelbourne/orgs","repos_url":"https://api.github.com/users/rogerclarkmelbourne/repos","events_url":"https://api.github.com/users/rogerclarkmelbourne/events{/privacy}","received_events_url":"https://api.github.com/users/rogerclarkmelbourne/received_events","type":"User","site_admin":false},"comments":3,"review_comments":0,"commits":2,"additions":111,"deletions":95,"changed_files":7}}