{"action":"opened","number":353,"pull_request":{"url":"https://api.github.com/repos/openthread/openthread/pulls/353","id":80729646,"html_url":"https://github.com/openthread/openthread/pull/353","diff_url":"https://github.com/openthread/openthread/pull/353.diff","patch_url":"https://github.com/openthread/openthread/pull/353.patch","issue_url":"https://api.github.com/repos/openthread/openthread/issues/353","number":353,"state":"open","locked":false,"title":"CC2538 non-volatile settings implementation","user":{"login":"luwannest","id":19200149,"avatar_url":"https://avatars.githubusercontent.com/u/19200149?v=3","gravatar_id":"","url":"https://api.github.com/users/luwannest","html_url":"https://github.com/luwannest","followers_url":"https://api.github.com/users/luwannest/followers","following_url":"https://api.github.com/users/luwannest/following{/other_user}","gists_url":"https://api.github.com/users/luwannest/gists{/gist_id}","starred_url":"https://api.github.com/users/luwannest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luwannest/subscriptions","organizations_url":"https://api.github.com/users/luwannest/orgs","repos_url":"https://api.github.com/users/luwannest/repos","events_url":"https://api.github.com/users/luwannest/events{/privacy}","received_events_url":"https://api.github.com/users/luwannest/received_events","type":"User","site_admin":false},"body":"The flash is divided into blocks. One block stores one setting.\r\nThe blocks are managed by linked lists. Settings of the same key are managed by one linked list.\r\nThe management data structure in RAM is initialized when bringing up via reading block headers.\r\n\r\nThe flash would not be erased before all spaces have been used. If there is no space left, the flash space would be erased and reordered.\r\n\r\nThe maximum block number is 256.\r\nThe flash space is 5 pages (10KBs).\r\nThe user can stage 32 commits (16 add and 16 delete) at one time.\r\n\r\nThere is a test function which includes the following test cases:\r\n- flash wipe\r\n- setting add\r\n- setting delete\r\n- setting set\r\n- stage commit (add, set, delete)\r\n- reordering flash\r\n\r\n\r\n","created_at":"2016-08-10T03:35:37Z","updated_at":"2016-08-10T03:35:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openthread/openthread/pulls/353/commits","review_comments_url":"https://api.github.com/repos/openthread/openthread/pulls/353/comments","review_comment_url":"https://api.github.com/repos/openthread/openthread/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openthread/openthread/issues/353/comments","statuses_url":"https://api.github.com/repos/openthread/openthread/statuses/f396a30f842b614d0c4acba13a845590949976a6","head":{"label":"luwannest:pr/cc2538_flash_settings","ref":"pr/cc2538_flash_settings","sha":"f396a30f842b614d0c4acba13a845590949976a6","user":{"login":"luwannest","id":19200149,"avatar_url":"https://avatars.githubusercontent.com/u/19200149?v=3","gravatar_id":"","url":"https://api.github.com/users/luwannest","html_url":"https://github.com/luwannest","followers_url":"https://api.github.com/users/luwannest/followers","following_url":"https://api.github.com/users/luwannest/following{/other_user}","gists_url":"https://api.github.com/users/luwannest/gists{/gist_id}","starred_url":"https://api.github.com/users/luwannest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luwannest/subscriptions","organizations_url":"https://api.github.com/users/luwannest/orgs","repos_url":"https://api.github.com/users/luwannest/repos","events_url":"https://api.github.com/users/luwannest/events{/privacy}","received_events_url":"https://api.github.com/users/luwannest/received_events","type":"User","site_admin":false},"repo":{"id":58849333,"name":"openthread","full_name":"luwannest/openthread","owner":{"login":"luwannest","id":19200149,"avatar_url":"https://avatars.githubusercontent.com/u/19200149?v=3","gravatar_id":"","url":"https://api.github.com/users/luwannest","html_url":"https://github.com/luwannest","followers_url":"https://api.github.com/users/luwannest/followers","following_url":"https://api.github.com/users/luwannest/following{/other_user}","gists_url":"https://api.github.com/users/luwannest/gists{/gist_id}","starred_url":"https://api.github.com/users/luwannest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luwannest/subscriptions","organizations_url":"https://api.github.com/users/luwannest/orgs","repos_url":"https://api.github.com/users/luwannest/repos","events_url":"https://api.github.com/users/luwannest/events{/privacy}","received_events_url":"https://api.github.com/users/luwannest/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luwannest/openthread","description":"OpenThread is an open-source implementation of the Thread networking protocol","fork":true,"url":"https://api.github.com/repos/luwannest/openthread","forks_url":"https://api.github.com/repos/luwannest/openthread/forks","keys_url":"https://api.github.com/repos/luwannest/openthread/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luwannest/openthread/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luwannest/openthread/teams","hooks_url":"https://api.github.com/repos/luwannest/openthread/hooks","issue_events_url":"https://api.github.com/repos/luwannest/openthread/issues/events{/number}","events_url":"https://api.github.com/repos/luwannest/openthread/events","assignees_url":"https://api.github.com/repos/luwannest/openthread/assignees{/user}","branches_url":"https://api.github.com/repos/luwannest/openthread/branches{/branch}","tags_url":"https://api.github.com/repos/luwannest/openthread/tags","blobs_url":"https://api.github.com/repos/luwannest/openthread/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luwannest/openthread/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luwannest/openthread/git/refs{/sha}","trees_url":"https://api.github.com/repos/luwannest/openthread/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luwannest/openthread/statuses/{sha}","languages_url":"https://api.github.com/repos/luwannest/openthread/languages","stargazers_url":"https://api.github.com/repos/luwannest/openthread/stargazers","contributors_url":"https://api.github.com/repos/luwannest/openthread/contributors","subscribers_url":"https://api.github.com/repos/luwannest/openthread/subscribers","subscription_url":"https://api.github.com/repos/luwannest/openthread/subscription","commits_url":"https://api.github.com/repos/luwannest/openthread/commits{/sha}","git_commits_url":"https://api.github.com/repos/luwannest/openthread/git/commits{/sha}","comments_url":"https://api.github.com/repos/luwannest/openthread/comments{/number}","issue_comment_url":"https://api.github.com/repos/luwannest/openthread/issues/comments{/number}","contents_url":"https://api.github.com/repos/luwannest/openthread/contents/{+path}","compare_url":"https://api.github.com/repos/luwannest/openthread/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luwannest/openthread/merges","archive_url":"https://api.github.com/repos/luwannest/openthread/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luwannest/openthread/downloads","issues_url":"https://api.github.com/repos/luwannest/openthread/issues{/number}","pulls_url":"https://api.github.com/repos/luwannest/openthread/pulls{/number}","milestones_url":"https://api.github.com/repos/luwannest/openthread/milestones{/number}","notifications_url":"https://api.github.com/repos/luwannest/openthread/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luwannest/openthread/labels{/name}","releases_url":"https://api.github.com/repos/luwannest/openthread/releases{/id}","deployments_url":"https://api.github.com/repos/luwannest/openthread/deployments","created_at":"2016-05-15T07:27:25Z","updated_at":"2016-05-15T07:27:27Z","pushed_at":"2016-08-10T03:27:09Z","git_url":"git://github.com/luwannest/openthread.git","ssh_url":"git@github.com:luwannest/openthread.git","clone_url":"https://github.com/luwannest/openthread.git","svn_url":"https://github.com/luwannest/openthread","homepage":"","size":90919,"stargazers_count":0,"watchers_count":0,"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":0,"default_branch":"master"}},"base":{"label":"openthread:master","ref":"master","sha":"66dce223d64131acc3a084abf40ebd75b6c069f1","user":{"login":"openthread","id":16142269,"avatar_url":"https://avatars.githubusercontent.com/u/16142269?v=3","gravatar_id":"","url":"https://api.github.com/users/openthread","html_url":"https://github.com/openthread","followers_url":"https://api.github.com/users/openthread/followers","following_url":"https://api.github.com/users/openthread/following{/other_user}","gists_url":"https://api.github.com/users/openthread/gists{/gist_id}","starred_url":"https://api.github.com/users/openthread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openthread/subscriptions","organizations_url":"https://api.github.com/users/openthread/orgs","repos_url":"https://api.github.com/users/openthread/repos","events_url":"https://api.github.com/users/openthread/events{/privacy}","received_events_url":"https://api.github.com/users/openthread/received_events","type":"Organization","site_admin":false},"repo":{"id":55808787,"name":"openthread","full_name":"openthread/openthread","owner":{"login":"openthread","id":16142269,"avatar_url":"https://avatars.githubusercontent.com/u/16142269?v=3","gravatar_id":"","url":"https://api.github.com/users/openthread","html_url":"https://github.com/openthread","followers_url":"https://api.github.com/users/openthread/followers","following_url":"https://api.github.com/users/openthread/following{/other_user}","gists_url":"https://api.github.com/users/openthread/gists{/gist_id}","starred_url":"https://api.github.com/users/openthread/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openthread/subscriptions","organizations_url":"https://api.github.com/users/openthread/orgs","repos_url":"https://api.github.com/users/openthread/repos","events_url":"https://api.github.com/users/openthread/events{/privacy}","received_events_url":"https://api.github.com/users/openthread/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openthread/openthread","description":"OpenThread released by Nest is an open-source implementation of the Thread networking protocol","fork":false,"url":"https://api.github.com/repos/openthread/openthread","forks_url":"https://api.github.com/repos/openthread/openthread/forks","keys_url":"https://api.github.com/repos/openthread/openthread/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openthread/openthread/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openthread/openthread/teams","hooks_url":"https://api.github.com/repos/openthread/openthread/hooks","issue_events_url":"https://api.github.com/repos/openthread/openthread/issues/events{/number}","events_url":"https://api.github.com/repos/openthread/openthread/events","assignees_url":"https://api.github.com/repos/openthread/openthread/assignees{/user}","branches_url":"https://api.github.com/repos/openthread/openthread/branches{/branch}","tags_url":"https://api.github.com/repos/openthread/openthread/tags","blobs_url":"https://api.github.com/repos/openthread/openthread/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openthread/openthread/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openthread/openthread/git/refs{/sha}","trees_url":"https://api.github.com/repos/openthread/openthread/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openthread/openthread/statuses/{sha}","languages_url":"https://api.github.com/repos/openthread/openthread/languages","stargazers_url":"https://api.github.com/repos/openthread/openthread/stargazers","contributors_url":"https://api.github.com/repos/openthread/openthread/contributors","subscribers_url":"https://api.github.com/repos/openthread/openthread/subscribers","subscription_url":"https://api.github.com/repos/openthread/openthread/subscription","commits_url":"https://api.github.com/repos/openthread/openthread/commits{/sha}","git_commits_url":"https://api.github.com/repos/openthread/openthread/git/commits{/sha}","comments_url":"https://api.github.com/repos/openthread/openthread/comments{/number}","issue_comment_url":"https://api.github.com/repos/openthread/openthread/issues/comments{/number}","contents_url":"https://api.github.com/repos/openthread/openthread/contents/{+path}","compare_url":"https://api.github.com/repos/openthread/openthread/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openthread/openthread/merges","archive_url":"https://api.github.com/repos/openthread/openthread/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openthread/openthread/downloads","issues_url":"https://api.github.com/repos/openthread/openthread/issues{/number}","pulls_url":"https://api.github.com/repos/openthread/openthread/pulls{/number}","milestones_url":"https://api.github.com/repos/openthread/openthread/milestones{/number}","notifications_url":"https://api.github.com/repos/openthread/openthread/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openthread/openthread/labels{/name}","releases_url":"https://api.github.com/repos/openthread/openthread/releases{/id}","deployments_url":"https://api.github.com/repos/openthread/openthread/deployments","created_at":"2016-04-08T20:47:41Z","updated_at":"2016-08-08T21:41:07Z","pushed_at":"2016-08-10T03:35:37Z","git_url":"git://github.com/openthread/openthread.git","ssh_url":"git@github.com:openthread/openthread.git","clone_url":"https://github.com/openthread/openthread.git","svn_url":"https://github.com/openthread/openthread","homepage":"","size":271189,"stargazers_count":951,"watchers_count":951,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":191,"mirror_url":null,"open_issues_count":26,"forks":191,"open_issues":26,"watchers":951,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openthread/openthread/pulls/353"},"html":{"href":"https://github.com/openthread/openthread/pull/353"},"issue":{"href":"https://api.github.com/repos/openthread/openthread/issues/353"},"comments":{"href":"https://api.github.com/repos/openthread/openthread/issues/353/comments"},"review_comments":{"href":"https://api.github.com/repos/openthread/openthread/pulls/353/comments"},"review_comment":{"href":"https://api.github.com/repos/openthread/openthread/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openthread/openthread/pulls/353/commits"},"statuses":{"href":"https://api.github.com/repos/openthread/openthread/statuses/f396a30f842b614d0c4acba13a845590949976a6"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1090,"deletions":1,"changed_files":5}}
{"actor":{"display_login":"luwannest"}}