{"action":"created","comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments/170684209","pull_request_review_id":99407634,"id":170684209,"diff_hunk":"@@ -0,0 +1,926 @@\n+/*\n+ * Copyright (c) 2018 ARM Limited. All rights reserved.\n+ * SPDX-License-Identifier: Apache-2.0\n+ * Licensed under the Apache License, Version 2.0 (the License); you may\n+ * not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ * http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an AS IS BASIS, WITHOUT\n+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+\n+// ----------------------------------------------------------- Includes -----------------------------------------------------------\n+\n+#include \"nvstore.h\"\n+\n+#if NVSTORE_ENABLED\n+\n+#include \"FlashIAP.h\"\n+#include \"mbed_critical.h\"\n+#include \"mbed_assert.h\"\n+#ifdef MBED_CONF_RTOS_PRESENT\n+#include \"Thread.h\"\n+#endif\n+#include <algorithm>\n+#include <string.h>\n+#include <stdio.h>\n+\n+// --------------------------------------------------------- Definitions ----------------------------------------------------------\n+\n+static const uint16_t delete_item_flag = 0x8000;\n+static const uint16_t set_once_flag    = 0x4000;\n+static const uint16_t header_flag_mask = 0xF000;\n+\n+static const uint16_t master_record_key = 0xFFE;\n+static const uint16_t no_key            = 0xFFF;\n+static const uint16_t last_reserved_key = master_record_key;\n+\n+typedef struct\n+{\n+    uint16_t key_and_flags;\n+    uint16_t size;\n+    uint32_t crc;\n+} nvstore_record_header_t;\n+\n+static const uint32_t offs_by_key_area_mask     = 0x80000000UL;\n+static const uint32_t offs_by_key_set_once_mask = 0x40000000UL;\n+static const uint32_t offs_by_key_flag_mask     = 0xC0000000UL;\n+static const unsigned int offs_by_key_area_bit_pos     = 31;\n+static const unsigned int offs_by_key_set_once_bit_pos = 30;\n+\n+typedef struct {\n+    uint16_t version;\n+    uint16_t reserved1;\n+    uint32_t reserved2;\n+} master_record_data_t;\n+\n+static const uint32_t min_area_size = 4096;\n+\n+static const int num_write_retries = 16;\n+\n+static const uint8_t blank_flash_val = 0xFF;\n+\n+// See whether any of these defines are given (by config files)\n+// If so, this means that that area configuration is given by the user\n+#if defined(NVSTORE_AREA_1_ADDRESS) || defined(NVSTORE_AREA_1_SIZE) ||\\\n+    defined(NVSTORE_AREA_2_ADDRESS) || defined(NVSTORE_AREA_2_SIZE)\n+\n+// Require all area configuration parameters if any one of them is present\n+#if !defined(NVSTORE_AREA_1_ADDRESS) || !defined(NVSTORE_AREA_1_SIZE) ||\\\n+    !defined(NVSTORE_AREA_2_ADDRESS) || !defined(NVSTORE_AREA_2_SIZE)\n+#error Incomplete NVStore area configuration\n+#endif\n+#if (NVSTORE_AREA_1_SIZE == 0) || (NVSTORE_AREA_2_SIZE == 0)\n+#error NVStore area size cannot be 0\n+#endif\n+\n+NVStore::nvstore_area_data_t NVStore::initial_area_params[] = {{NVSTORE_AREA_1_ADDRESS, NVSTORE_AREA_1_SIZE},\n+                                                               {NVSTORE_AREA_2_ADDRESS, NVSTORE_AREA_2_SIZE}};\n+#else\n+NVStore::nvstore_area_data_t NVStore::initial_area_params[] = {{0, 0},\n+                                                               {0, 0}};\n+#endif\n+\n+typedef enum {\n+    NVSTORE_AREA_STATE_NONE = 0,\n+    NVSTORE_AREA_STATE_EMPTY,\n+    NVSTORE_AREA_STATE_VALID,\n+} area_state_e;\n+\n+static const uint32_t initial_crc = 0xFFFFFFFF;\n+\n+\n+// -------------------------------------------------- Local Functions Declaration ----------------------------------------------------\n+\n+// -------------------------------------------------- Functions Implementation ----------------------------------------------------\n+\n+// Align a value to a specified size.\n+// Parameters :\n+// val           - [IN]   Value.\n+// size          - [IN]   Size.\n+// Return        : Aligned value.\n+static inline uint32_t align_up(uint32_t val, uint32_t size)\n+{\n+    return (((val - 1) / size) + 1) * size;\n+}\n+\n+// CRC32 calculation. Supports \"rolling\" calculation (using the initial value).\n+// Parameters :\n+// init_crc      - [IN]   Initial CRC.\n+// data_size      - [IN]   Buffer's data size.\n+// data_buf      - [IN]   Data buffer.\n+// Return        : CRC.\n+static uint32_t crc32(uint32_t init_crc, uint32_t data_size, uint8_t *data_buf)\n+{\n+    uint32_t i, j;\n+    uint32_t crc, mask;\n+\n+    crc = init_crc;\n+    for (i = 0; i < data_size; i++) {\n+        crc = crc ^ (uint32_t) (data_buf[i]);\n+        for (j = 0; j < 8; j++) {\n+          mask = -(crc & 1);\n+          crc = (crc >> 1) ^ (0xEDB88320 & mask);\n+        }\n+    }\n+    return crc;\n+}\n+\n+NVStore::NVStore() : _init_done(0), _init_attempts(0), _active_area(0), _max_keys(NVSTORE_MAX_KEYS),\n+      _active_area_version(0), _free_space_offset(0), _size(0), _mutex(0), _offset_by_key(0), _flash(0),\n+      _min_prog_size(0), _page_buf(0)\n+{\n+}\n+\n+NVStore::~NVStore()\n+{\n+    if (_init_done) {\n+        deinit();\n+    }\n+}\n+\n+uint16_t NVStore::get_max_keys() const\n+{\n+    return _max_keys;\n+}\n+\n+uint16_t NVStore::get_max_possible_keys()\n+{\n+    if (!_init_done) {\n+        init();\n+    }\n+\n+    size_t max_possible_keys = _size / align_up(sizeof(nvstore_record_header_t) * 2, _min_prog_size) - 1;\n+\n+    return (uint16_t)std::min(max_possible_keys, (size_t) last_reserved_key);\n+}\n+\n+void NVStore::set_max_keys(uint16_t num_keys)\n+{\n+    MBED_ASSERT(num_keys < get_max_possible_keys());\n+    _max_keys = num_keys;\n+    // User is allowed to change number of keys. As this affects init, need to deinitialize now.\n+    // Don't call init right away - it is lazily called by get/set functions if needed.\n+    deinit();\n+}\n+\n+int NVStore::flash_read_area(uint8_t area, uint32_t offset, uint32_t size, void *buf)\n+{\n+    return _flash->read(buf, _flash_area_params[area].address + offset, size);\n+}\n+\n+int NVStore::flash_write_area(uint8_t area, uint32_t offset, uint32_t size, const void *buf)\n+{\n+    int ret;\n+    // On some boards, write action can fail due to HW limitations (like critical drivers\n+    // that disable all other actions). Just retry a few times until success.\n+    for (int i = 0; i < num_write_retries; i++) {\n+        ret = _flash->program(buf, _flash_area_params[area].address + offset, size);\n+        if (!ret) {\n+            return ret;\n+        }\n+#ifdef MBED_CONF_RTOS_PRESENT\n+        rtos::Thread::wait(1);","path":"features/nvstore/source/nvstore.cpp","position":188,"original_position":188,"commit_id":"2b7766a73bdc888766d7146a81eb487ba01588cb","original_commit_id":"2b7766a73bdc888766d7146a81eb487ba01588cb","user":{"login":"sg-","id":496002,"avatar_url":"https://avatars1.githubusercontent.com/u/496002?v=4","gravatar_id":"","url":"https://api.github.com/users/sg-","html_url":"https://github.com/sg-","followers_url":"https://api.github.com/users/sg-/followers","following_url":"https://api.github.com/users/sg-/following{/other_user}","gists_url":"https://api.github.com/users/sg-/gists{/gist_id}","starred_url":"https://api.github.com/users/sg-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sg-/subscriptions","organizations_url":"https://api.github.com/users/sg-/orgs","repos_url":"https://api.github.com/users/sg-/repos","events_url":"https://api.github.com/users/sg-/events{/privacy}","received_events_url":"https://api.github.com/users/sg-/received_events","type":"User","site_admin":false},"body":"just calling wait for 1ms or greater will handle the rtos/non-rtos logic, it shouldn't be needed here.","created_at":"2018-02-26T18:12:01Z","updated_at":"2018-02-26T18:12:01Z","html_url":"https://github.com/ARMmbed/mbed-os/pull/5900#discussion_r170684209","pull_request_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/5900","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments/170684209"},"html":{"href":"https://github.com/ARMmbed/mbed-os/pull/5900#discussion_r170684209"},"pull_request":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/5900"}}},"pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/5900","id":164462244,"html_url":"https://github.com/ARMmbed/mbed-os/pull/5900","diff_url":"https://github.com/ARMmbed/mbed-os/pull/5900.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/5900.patch","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/5900","number":5900,"state":"open","locked":false,"title":"Add NVStore (A.K.A SOTP) feature","user":{"login":"davidsaada","id":30656454,"avatar_url":"https://avatars3.githubusercontent.com/u/30656454?v=4","gravatar_id":"","url":"https://api.github.com/users/davidsaada","html_url":"https://github.com/davidsaada","followers_url":"https://api.github.com/users/davidsaada/followers","following_url":"https://api.github.com/users/davidsaada/following{/other_user}","gists_url":"https://api.github.com/users/davidsaada/gists{/gist_id}","starred_url":"https://api.github.com/users/davidsaada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidsaada/subscriptions","organizations_url":"https://api.github.com/users/davidsaada/orgs","repos_url":"https://api.github.com/users/davidsaada/repos","events_url":"https://api.github.com/users/davidsaada/events{/privacy}","received_events_url":"https://api.github.com/users/davidsaada/received_events","type":"User","site_admin":false},"body":"# Description\r\n\r\nAdding the NVStore feature.\r\n\r\n## Status\r\n\r\nREADY\r\n\r\n## Migrations\r\n\r\nIf this PR changes any APIs or behaviors, give a short description of what *API users* should do when this PR is merged.\r\n\r\n NO\r\n\r\n## Related PRs\r\nNone.\r\n\r\nbranch | PR\r\n------ | ------\r\nother_pr_production | [link]()\r\nother_pr_master | [link]()\r\n\r\n## Todos\r\n\r\n- Documentation\r\n- Need to move configuration of area addresses and sizes from targets.json to local mbed_lib.json.\r\n\r\n## Steps to test or reproduce\r\n\r\nSee README.md for testing instructions.\r\n","created_at":"2018-01-23T01:38:27Z","updated_at":"2018-02-26T18:12:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"29fee262411124a00c119cc2c99b04be5972ac18","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":147112891,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/needs:%20review","name":"needs: review","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/5900/commits","review_comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/5900/comments","review_comment_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/5900/comments","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/2b7766a73bdc888766d7146a81eb487ba01588cb","head":{"label":"davidsaada:david_sotp_cpp","ref":"david_sotp_cpp","sha":"2b7766a73bdc888766d7146a81eb487ba01588cb","user":{"login":"davidsaada","id":30656454,"avatar_url":"https://avatars3.githubusercontent.com/u/30656454?v=4","gravatar_id":"","url":"https://api.github.com/users/davidsaada","html_url":"https://github.com/davidsaada","followers_url":"https://api.github.com/users/davidsaada/followers","following_url":"https://api.github.com/users/davidsaada/following{/other_user}","gists_url":"https://api.github.com/users/davidsaada/gists{/gist_id}","starred_url":"https://api.github.com/users/davidsaada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidsaada/subscriptions","organizations_url":"https://api.github.com/users/davidsaada/orgs","repos_url":"https://api.github.com/users/davidsaada/repos","events_url":"https://api.github.com/users/davidsaada/events{/privacy}","received_events_url":"https://api.github.com/users/davidsaada/received_events","type":"User","site_admin":false},"repo":{"id":113969228,"name":"mbed-os","full_name":"davidsaada/mbed-os","owner":{"login":"davidsaada","id":30656454,"avatar_url":"https://avatars3.githubusercontent.com/u/30656454?v=4","gravatar_id":"","url":"https://api.github.com/users/davidsaada","html_url":"https://github.com/davidsaada","followers_url":"https://api.github.com/users/davidsaada/followers","following_url":"https://api.github.com/users/davidsaada/following{/other_user}","gists_url":"https://api.github.com/users/davidsaada/gists{/gist_id}","starred_url":"https://api.github.com/users/davidsaada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidsaada/subscriptions","organizations_url":"https://api.github.com/users/davidsaada/orgs","repos_url":"https://api.github.com/users/davidsaada/repos","events_url":"https://api.github.com/users/davidsaada/events{/privacy}","received_events_url":"https://api.github.com/users/davidsaada/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/davidsaada/mbed-os","description":"ARM mbed OS is a platform operating system designed for the internet of things","fork":true,"url":"https://api.github.com/repos/davidsaada/mbed-os","forks_url":"https://api.github.com/repos/davidsaada/mbed-os/forks","keys_url":"https://api.github.com/repos/davidsaada/mbed-os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/davidsaada/mbed-os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/davidsaada/mbed-os/teams","hooks_url":"https://api.github.com/repos/davidsaada/mbed-os/hooks","issue_events_url":"https://api.github.com/repos/davidsaada/mbed-os/issues/events{/number}","events_url":"https://api.github.com/repos/davidsaada/mbed-os/events","assignees_url":"https://api.github.com/repos/davidsaada/mbed-os/assignees{/user}","branches_url":"https://api.github.com/repos/davidsaada/mbed-os/branches{/branch}","tags_url":"https://api.github.com/repos/davidsaada/mbed-os/tags","blobs_url":"https://api.github.com/repos/davidsaada/mbed-os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/davidsaada/mbed-os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/davidsaada/mbed-os/git/refs{/sha}","trees_url":"https://api.github.com/repos/davidsaada/mbed-os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/davidsaada/mbed-os/statuses/{sha}","languages_url":"https://api.github.com/repos/davidsaada/mbed-os/languages","stargazers_url":"https://api.github.com/repos/davidsaada/mbed-os/stargazers","contributors_url":"https://api.github.com/repos/davidsaada/mbed-os/contributors","subscribers_url":"https://api.github.com/repos/davidsaada/mbed-os/subscribers","subscription_url":"https://api.github.com/repos/davidsaada/mbed-os/subscription","commits_url":"https://api.github.com/repos/davidsaada/mbed-os/commits{/sha}","git_commits_url":"https://api.github.com/repos/davidsaada/mbed-os/git/commits{/sha}","comments_url":"https://api.github.com/repos/davidsaada/mbed-os/comments{/number}","issue_comment_url":"https://api.github.com/repos/davidsaada/mbed-os/issues/comments{/number}","contents_url":"https://api.github.com/repos/davidsaada/mbed-os/contents/{+path}","compare_url":"https://api.github.com/repos/davidsaada/mbed-os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/davidsaada/mbed-os/merges","archive_url":"https://api.github.com/repos/davidsaada/mbed-os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/davidsaada/mbed-os/downloads","issues_url":"https://api.github.com/repos/davidsaada/mbed-os/issues{/number}","pulls_url":"https://api.github.com/repos/davidsaada/mbed-os/pulls{/number}","milestones_url":"https://api.github.com/repos/davidsaada/mbed-os/milestones{/number}","notifications_url":"https://api.github.com/repos/davidsaada/mbed-os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/davidsaada/mbed-os/labels{/name}","releases_url":"https://api.github.com/repos/davidsaada/mbed-os/releases{/id}","deployments_url":"https://api.github.com/repos/davidsaada/mbed-os/deployments","created_at":"2017-12-12T09:19:54Z","updated_at":"2017-12-13T10:42:51Z","pushed_at":"2018-02-26T13:58:57Z","git_url":"git://github.com/davidsaada/mbed-os.git","ssh_url":"git@github.com:davidsaada/mbed-os.git","clone_url":"https://github.com/davidsaada/mbed-os.git","svn_url":"https://github.com/davidsaada/mbed-os","homepage":"https://mbed.com","size":193776,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"ARMmbed:master","ref":"master","sha":"107976773c22271617c51b3d037683535b91c7c4","user":{"login":"ARMmbed","id":8916057,"avatar_url":"https://avatars3.githubusercontent.com/u/8916057?v=4","gravatar_id":"","url":"https://api.github.com/users/ARMmbed","html_url":"https://github.com/ARMmbed","followers_url":"https://api.github.com/users/ARMmbed/followers","following_url":"https://api.github.com/users/ARMmbed/following{/other_user}","gists_url":"https://api.github.com/users/ARMmbed/gists{/gist_id}","starred_url":"https://api.github.com/users/ARMmbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARMmbed/subscriptions","organizations_url":"https://api.github.com/users/ARMmbed/orgs","repos_url":"https://api.github.com/users/ARMmbed/repos","events_url":"https://api.github.com/users/ARMmbed/events{/privacy}","received_events_url":"https://api.github.com/users/ARMmbed/received_events","type":"Organization","site_admin":false},"repo":{"id":8270972,"name":"mbed-os","full_name":"ARMmbed/mbed-os","owner":{"login":"ARMmbed","id":8916057,"avatar_url":"https://avatars3.githubusercontent.com/u/8916057?v=4","gravatar_id":"","url":"https://api.github.com/users/ARMmbed","html_url":"https://github.com/ARMmbed","followers_url":"https://api.github.com/users/ARMmbed/followers","following_url":"https://api.github.com/users/ARMmbed/following{/other_user}","gists_url":"https://api.github.com/users/ARMmbed/gists{/gist_id}","starred_url":"https://api.github.com/users/ARMmbed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ARMmbed/subscriptions","organizations_url":"https://api.github.com/users/ARMmbed/orgs","repos_url":"https://api.github.com/users/ARMmbed/repos","events_url":"https://api.github.com/users/ARMmbed/events{/privacy}","received_events_url":"https://api.github.com/users/ARMmbed/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ARMmbed/mbed-os","description":"ARM Mbed OS is a platform operating system designed for the internet of things","fork":false,"url":"https://api.github.com/repos/ARMmbed/mbed-os","forks_url":"https://api.github.com/repos/ARMmbed/mbed-os/forks","keys_url":"https://api.github.com/repos/ARMmbed/mbed-os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ARMmbed/mbed-os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ARMmbed/mbed-os/teams","hooks_url":"https://api.github.com/repos/ARMmbed/mbed-os/hooks","issue_events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/events{/number}","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/events","assignees_url":"https://api.github.com/repos/ARMmbed/mbed-os/assignees{/user}","branches_url":"https://api.github.com/repos/ARMmbed/mbed-os/branches{/branch}","tags_url":"https://api.github.com/repos/ARMmbed/mbed-os/tags","blobs_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/refs{/sha}","trees_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/{sha}","languages_url":"https://api.github.com/repos/ARMmbed/mbed-os/languages","stargazers_url":"https://api.github.com/repos/ARMmbed/mbed-os/stargazers","contributors_url":"https://api.github.com/repos/ARMmbed/mbed-os/contributors","subscribers_url":"https://api.github.com/repos/ARMmbed/mbed-os/subscribers","subscription_url":"https://api.github.com/repos/ARMmbed/mbed-os/subscription","commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/commits{/sha}","git_commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/git/commits{/sha}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/comments{/number}","issue_comment_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments{/number}","contents_url":"https://api.github.com/repos/ARMmbed/mbed-os/contents/{+path}","compare_url":"https://api.github.com/repos/ARMmbed/mbed-os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ARMmbed/mbed-os/merges","archive_url":"https://api.github.com/repos/ARMmbed/mbed-os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ARMmbed/mbed-os/downloads","issues_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues{/number}","pulls_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls{/number}","milestones_url":"https://api.github.com/repos/ARMmbed/mbed-os/milestones{/number}","notifications_url":"https://api.github.com/repos/ARMmbed/mbed-os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/labels{/name}","releases_url":"https://api.github.com/repos/ARMmbed/mbed-os/releases{/id}","deployments_url":"https://api.github.com/repos/ARMmbed/mbed-os/deployments","created_at":"2013-02-18T15:23:11Z","updated_at":"2018-02-26T15:53:46Z","pushed_at":"2018-02-26T18:09:44Z","git_url":"git://github.com/ARMmbed/mbed-os.git","ssh_url":"git@github.com:ARMmbed/mbed-os.git","clone_url":"https://github.com/ARMmbed/mbed-os.git","svn_url":"https://github.com/ARMmbed/mbed-os","homepage":"https://mbed.com","size":195882,"stargazers_count":1510,"watchers_count":1510,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1339,"mirror_url":null,"archived":false,"open_issues_count":405,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":1339,"open_issues":405,"watchers":1510,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/5900"},"html":{"href":"https://github.com/ARMmbed/mbed-os/pull/5900"},"issue":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/issues/5900"},"comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/issues/5900/comments"},"review_comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/5900/comments"},"review_comment":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/5900/commits"},"statuses":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/2b7766a73bdc888766d7146a81eb487ba01588cb"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"sg-"}}