{"action":"created","comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/92607055","pull_request_review_id":13124809,"id":92607055,"diff_hunk":"@@ -0,0 +1,342 @@\n+/*\n+ * Copyright (C) 2016 Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>\n+ *\n+ * This file is subject to the terms and conditions of the GNU Lesser\n+ * General Public License v2.1. See the file LICENSE in the top level\n+ * directory for more details.\n+ */\n+\n+/**\n+ * @ingroup     tests\n+ * @{\n+ *\n+ * @file\n+ * @brief       Test application for the sd-card spi driver\n+ *\n+ * @author      Michel Rottleuthner <michel.rottleuthner@haw-hamburg.de>\n+ *\n+ * @}\n+ */\n+#include \"shell.h\"\n+#include \"sdcard_spi.h\"\n+#include \"fmt.h\"\n+#include <stdlib.h>\n+#include <string.h>\n+#include <stdio.h>\n+\n+/* independent of what you specify in a r/w cmd this is the maximum number of blocks read at once.\n+   If you call read with a bigger blockcount the read is performed in chunks*/\n+#define MAX_BLOCKS_IN_BUFFER 4\n+#define BLOCK_PRINT_BYTES_PER_LINE 16\n+#define FIRST_PRINTABLE_ASCII_CHAR 0x20\n+#define ASCII_UNPRINTABLE_REPLACEMENT \".\"\n+\n+/* this is provided by the sdcard_spi driver see sdcard_spi.c*/\n+extern sd_card_t cards[NUM_OF_SD_CARDS];\n+sd_card_t *card = &cards[0];\n+\n+char buffer[SD_HC_BLOCK_SIZE * MAX_BLOCKS_IN_BUFFER];\n+\n+static int _init(int argc, char **argv)\n+{\n+    printf(\"Initializing SD-card at SPI_%i...\", card->spi_dev);\n+\n+    if (sdcard_spi_init(card)) {\n+        puts(\"[OK]\");\n+        return 0;\n+    }\n+    else {\n+        puts(\"[FAILED]\");\n+        #if ENABLE_DEBUG != 1\n+        puts(\"enable debugging in sdcard_spi.c for further information!\");\n+        #endif\n+        return -2;\n+    }\n+\n+}\n+\n+static int _cid(int argc, char **argv)\n+{\n+    puts(\"----------------------------------------\");\n+    printf(\"MID: %d\\n\", card->cid.MID);\n+    printf(\"OID: %c%c\\n\", card->cid.OID[0], card->cid.OID[1]);\n+    printf(\"PNM: %c%c%c%c%c\\n\", card->cid.PNM[0], card->cid.PNM[1], card->cid.PNM[2],\n+                                card->cid.PNM[3], card->cid.PNM[4]);\n+    printf(\"PRV: %d\\n\", card->cid.PRV);\n+    printf(\"PSN: %lu\\n\", card->cid.PSN);\n+    printf(\"MDT: %d\\n\", card->cid.MDT);\n+    printf(\"CRC: %d\\n\", card->cid.CRC);\n+    puts(\"----------------------------------------\");\n+    return 0;\n+}\n+\n+static int _csd(int argc, char **argv)\n+{\n+    if (card->csd_structure == SD_CSD_V1) {\n+        puts(\"CSD V1\\n----------------------------------------\");\n+        printf(\"CSD_STRUCTURE: 0x%08x\\n\", card->csd.v1.CSD_STRUCTURE);\n+        printf(\"TAAC: 0x%08x\\n\", card->csd.v1.TAAC);\n+        printf(\"NSAC: 0x%08x\\n\", card->csd.v1.NSAC);\n+        printf(\"TRAN_SPEED: 0x%08x\\n\", card->csd.v1.TRAN_SPEED);\n+        printf(\"CCC: 0x%08x\\n\", card->csd.v1.CCC);\n+        printf(\"READ_BL_LEN: 0x%08x\\n\", card->csd.v1.READ_BL_LEN);\n+        printf(\"READ_BL_PARTIAL: 0x%08x\\n\", card->csd.v1.READ_BL_PARTIAL);\n+        printf(\"WRITE_BLK_MISALIGN: 0x%08x\\n\", card->csd.v1.WRITE_BLK_MISALIGN);\n+        printf(\"READ_BLK_MISALIGN: 0x%08x\\n\", card->csd.v1.READ_BLK_MISALIGN);\n+        printf(\"DSR_IMP: 0x%08x\\n\", card->csd.v1.DSR_IMP);\n+        printf(\"C_SIZE: 0x%08x\\n\", card->csd.v1.C_SIZE);\n+        printf(\"VDD_R_CURR_MIN: 0x%08x\\n\", card->csd.v1.VDD_R_CURR_MIN);\n+        printf(\"VDD_R_CURR_MAX: 0x%08x\\n\", card->csd.v1.VDD_R_CURR_MAX);\n+        printf(\"VDD_W_CURR_MIN: 0x%08x\\n\", card->csd.v1.VDD_W_CURR_MIN);\n+        printf(\"VDD_W_CURR_MAX: 0x%08x\\n\", card->csd.v1.VDD_W_CURR_MAX);\n+        printf(\"C_SIZE_MULT: 0x%08x\\n\", card->csd.v1.C_SIZE_MULT);\n+        printf(\"ERASE_BLK_EN: 0x%08x\\n\", card->csd.v1.ERASE_BLK_EN);\n+        printf(\"SECTOR_SIZE: 0x%08x\\n\", card->csd.v1.SECTOR_SIZE);\n+        printf(\"WP_GRP_SIZE: 0x%08x\\n\", card->csd.v1.WP_GRP_SIZE);\n+        printf(\"WP_GRP_ENABLE: 0x%08x\\n\", card->csd.v1.WP_GRP_ENABLE);\n+        printf(\"R2W_FACTOR: 0x%08x\\n\", card->csd.v1.R2W_FACTOR);\n+        printf(\"WRITE_BL_LEN: 0x%08x\\n\", card->csd.v1.WRITE_BL_LEN);\n+        printf(\"WRITE_BL_PARTIAL: 0x%08x\\n\", card->csd.v1.WRITE_BL_PARTIAL);\n+        printf(\"FILE_FORMAT_GRP: 0x%08x\\n\", card->csd.v1.FILE_FORMAT_GRP);\n+        printf(\"COPY: 0x%08x\\n\", card->csd.v1.COPY);\n+        printf(\"PERM_WRITE_PROTECT: 0x%08x\\n\", card->csd.v1.PERM_WRITE_PROTECT);\n+        printf(\"TMP_WRITE_PROTECT: 0x%08x\\n\", card->csd.v1.TMP_WRITE_PROTECT);\n+        printf(\"FILE_FORMAT: 0x%08x\\n\", card->csd.v1.FILE_FORMAT);\n+        printf(\"CRC: 0x%08x\\n\", card->csd.v1.CRC);\n+    }\n+    else if (card->csd_structure == SD_CSD_V2) {\n+        puts(\"CSD V2:\\n----------------------------------------\");\n+        printf(\"CSD_STRUCTURE: 0x%08x\\n\", card->csd.v2.CSD_STRUCTURE);\n+        printf(\"TAAC: 0x%08x\\n\", card->csd.v2.TAAC);\n+        printf(\"NSAC: 0x%08x\\n\", card->csd.v2.NSAC);\n+        printf(\"TRAN_SPEED: 0x%08x\\n\", card->csd.v2.TRAN_SPEED);\n+        printf(\"CCC: 0x%08x\\n\", card->csd.v2.CCC);\n+        printf(\"READ_BL_LEN: 0x%08x\\n\", card->csd.v2.READ_BL_LEN);\n+        printf(\"READ_BL_PARTIAL: 0x%08x\\n\", card->csd.v2.READ_BL_PARTIAL);\n+        printf(\"WRITE_BLK_MISALIGN: 0x%08x\\n\", card->csd.v2.WRITE_BLK_MISALIGN);\n+        printf(\"READ_BLK_MISALIGN: 0x%08x\\n\", card->csd.v2.READ_BLK_MISALIGN);\n+        printf(\"DSR_IMP: 0x%08x\\n\", card->csd.v2.DSR_IMP);\n+        printf(\"C_SIZE: 0x%08x\\n\", card->csd.v2.C_SIZE);\n+        printf(\"ERASE_BLK_EN: 0x%08x\\n\", card->csd.v2.ERASE_BLK_EN);\n+        printf(\"SECTOR_SIZE: 0x%08x\\n\", card->csd.v2.SECTOR_SIZE);\n+        printf(\"WP_GRP_SIZE: 0x%08x\\n\", card->csd.v2.WP_GRP_SIZE);\n+        printf(\"WP_GRP_ENABLE: 0x%08x\\n\", card->csd.v2.WP_GRP_ENABLE);\n+        printf(\"R2W_FACTOR: 0x%08x\\n\", card->csd.v2.R2W_FACTOR);\n+        printf(\"WRITE_BL_LEN: 0x%08x\\n\", card->csd.v2.WRITE_BL_LEN);\n+        printf(\"WRITE_BL_PARTIAL: 0x%08x\\n\", card->csd.v2.WRITE_BL_PARTIAL);\n+        printf(\"FILE_FORMAT_GRP: 0x%08x\\n\", card->csd.v2.FILE_FORMAT_GRP);\n+        printf(\"COPY: 0x%08x\\n\", card->csd.v2.COPY);\n+        printf(\"PERM_WRITE_PROTECT: 0x%08x\\n\", card->csd.v2.PERM_WRITE_PROTECT);\n+        printf(\"TMP_WRITE_PROTECT: 0x%08x\\n\", card->csd.v2.TMP_WRITE_PROTECT);\n+        printf(\"FILE_FORMAT: 0x%08x\\n\", card->csd.v2.FILE_FORMAT);\n+        printf(\"CRC: 0x%08x\\n\", card->csd.v2.CRC);\n+    }\n+    puts(\"----------------------------------------\");\n+    return 0;\n+}\n+\n+static int _size(int argc, char **argv)\n+{\n+    uint64_t bytes = sdcard_spi_get_capacity(card);\n+\n+    uint32_t gib_int = bytes / (1024 * 1024 * 1024);\n+    uint32_t gib_frac = ((((bytes/(1024 * 1024)) - gib_int * 1024) * 1000) / 1024);\n+\n+    uint32_t gb_int = bytes / (1000000000);\n+    uint32_t gb_frac = (bytes / (1000000)) - (gb_int * 1000); //[MB]\n+\n+    puts(\"\\nCard size: \");\n+    fflush(stdout);\n+    print_u64_dec( bytes );\n+    printf(\" bytes (%lu,%03lu GiB | %lu,%03lu GB)\\n\", gib_int, gib_frac, gb_int, gb_frac);\n+    return 0;\n+}\n+\n+static int _read(int argc, char **argv)\n+{\n+    int blockaddr;\n+    int cnt;\n+    bool print_as_char = false;\n+\n+    if (argc == 3 || argc == 4) {\n+        blockaddr = (uint32_t)atoi(argv[1]);\n+        cnt = (uint32_t)atoi(argv[2]);\n+        if (argc == 4 && (strcmp(\"-c\", argv[3]) == 0)) {\n+            print_as_char = true;\n+        }\n+    }\n+    else {\n+        printf(\"usage: %s blockaddr cnt [-c]\\n\", argv[0]);\n+        return -1;\n+    }\n+\n+    int total_read = 0;\n+    while (total_read < cnt) {\n+        int chunk_blocks = cnt - total_read;\n+        if (chunk_blocks > MAX_BLOCKS_IN_BUFFER) {\n+            chunk_blocks = MAX_BLOCKS_IN_BUFFER;\n+        }\n+        sd_rw_response_t state;\n+        int chunks_read = sdcard_spi_read_blocks(card, blockaddr + total_read, buffer,\n+                                                 SD_HC_BLOCK_SIZE, chunk_blocks, &state);\n+\n+        if (state != SD_RW_OK) {\n+            printf(\"read error %d (block %d/%d)\\n\", state, total_read + chunks_read, cnt);\n+            return -1;\n+        }\n+\n+        for (int i = 0; i < chunk_blocks * SD_HC_BLOCK_SIZE; i++) {\n+\n+            if (((i % SD_HC_BLOCK_SIZE) == 0)) {\n+                printf(\"BLOCK %d:\\n\", blockaddr + total_read + i / SD_HC_BLOCK_SIZE);\n+            }\n+\n+            if (print_as_char) {\n+                if (buffer[i] >= FIRST_PRINTABLE_ASCII_CHAR) {\n+                    printf(\"%c\", buffer[i]);\n+                }\n+                else {\n+                    printf(ASCII_UNPRINTABLE_REPLACEMENT);\n+                }\n+            }\n+            else {\n+                printf(\"%02x \", buffer[i]);\n+            }\n+\n+            if ((i % BLOCK_PRINT_BYTES_PER_LINE) == (BLOCK_PRINT_BYTES_PER_LINE - 1)) {\n+                puts(\"\"); /* line break after BLOCK_PRINT_BYTES_PER_LINE bytes */\n+            }\n+\n+            if ((i % SD_HC_BLOCK_SIZE) == (SD_HC_BLOCK_SIZE - 1)) {\n+                puts(\"\"); /* empty line after each printed block */\n+            }\n+        }\n+        total_read += chunks_read;\n+    }\n+    return 0;\n+}\n+\n+static int _write(int argc, char **argv)\n+{\n+    int bladdr;\n+    char *data;\n+    int size;\n+    bool repeat_data = false;\n+\n+    if (argc == 3 || argc == 4) {\n+        bladdr = (int)atoi(argv[1]);\n+        data = argv[2];\n+        size = strlen(argv[2]);\n+        printf(\"will write '%s' (%d chars) at start of block %d\\n\", data, size, bladdr);\n+        if (argc == 4 && (strcmp(\"-r\", argv[3]) == 0)) {\n+            repeat_data = true;\n+            puts(\"the rest of the block will be filled with copies of that string\");\n+        }\n+        else {\n+            puts(\"the rest of the block will be filled with zeros\");\n+        }\n+    }\n+    else {\n+        printf(\"usage: %s blockaddr string [-r]\\n\", argv[0]);\n+        return -1;\n+    }\n+\n+    if (size > SD_HC_BLOCK_SIZE) {\n+        printf(\"maximum stringsize to write at once is %d ...aborting\\n\", SD_HC_BLOCK_SIZE);\n+        return -1;\n+    }\n+\n+    /* copy data to a full-block-sized buffer an fill remaining block space according to -r param*/\n+    char buffer[SD_HC_BLOCK_SIZE];\n+    for (int i = 0; i < sizeof(buffer); i++) {\n+        if (repeat_data || i < size) {\n+            buffer[i] = data[i % size];\n+        }\n+        else {\n+            buffer[i] = 0;\n+        }\n+    }\n+\n+    sd_rw_response_t state;\n+    int chunks_written = sdcard_spi_write_blocks(card, bladdr, buffer, SD_HC_BLOCK_SIZE, 1, &state);\n+\n+    if (state != SD_RW_OK) {\n+        printf(\"write error %d (wrote %d/%d blocks)\\n\", state, chunks_written, 1);\n+        return -1;\n+    }\n+    else {\n+        printf(\"write block %d [OK]\\n\", bladdr);\n+        return 0;\n+    }\n+}\n+\n+static int _copy(int argc, char **argv)\n+{\n+    int src_block;\n+    int dst_block;\n+\n+    if (argc == 3) {\n+        src_block = (uint32_t)atoi(argv[1]);\n+        dst_block = (uint32_t)atoi(argv[2]);\n+    }\n+    else {\n+        printf(\"usage: %s src_block dst_block\\n\", argv[0]);\n+        return -1;\n+    }\n+\n+    char tmp_copy[SD_HC_BLOCK_SIZE];\n+\n+    sd_rw_response_t rd_state;\n+    sdcard_spi_read_blocks(card, src_block, tmp_copy, SD_HC_BLOCK_SIZE, 1, &rd_state);\n+    if (rd_state != SD_RW_OK) {\n+        printf(\"read error %d (block %d)\\n\", rd_state, src_block);\n+        return -1;\n+    }\n+    else {\n+        sd_rw_response_t wr_state;\n+        sdcard_spi_write_blocks(card, dst_block, tmp_copy, SD_HC_BLOCK_SIZE, 1, &wr_state);\n+\n+        if (wr_state != SD_RW_OK) {\n+            printf(\"write error %d (block %d)\\n\", wr_state, dst_block);\n+            return -1;\n+        }\n+        else {","path":"tests/driver_sdcard_spi/main.c","position":303,"original_position":303,"commit_id":"d8f46dfe79b408e8a2cc4c72fb1d490be4487d60","original_commit_id":"d8f46dfe79b408e8a2cc4c72fb1d490be4487d60","user":{"login":"smlng","id":10532675,"avatar_url":"https://avatars.githubusercontent.com/u/10532675?v=3","gravatar_id":"","url":"https://api.github.com/users/smlng","html_url":"https://github.com/smlng","followers_url":"https://api.github.com/users/smlng/followers","following_url":"https://api.github.com/users/smlng/following{/other_user}","gists_url":"https://api.github.com/users/smlng/gists{/gist_id}","starred_url":"https://api.github.com/users/smlng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smlng/subscriptions","organizations_url":"https://api.github.com/users/smlng/orgs","repos_url":"https://api.github.com/users/smlng/repos","events_url":"https://api.github.com/users/smlng/events{/privacy}","received_events_url":"https://api.github.com/users/smlng/received_events","type":"User","site_admin":false},"body":"again `else` not needed here","created_at":"2016-12-15T13:21:24Z","updated_at":"2016-12-15T13:36:55Z","html_url":"https://github.com/RIOT-OS/RIOT/pull/6031#discussion_r92607055","pull_request_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6031","_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/92607055"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/6031#discussion_r92607055"},"pull_request":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6031"}}},"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6031","id":91618308,"html_url":"https://github.com/RIOT-OS/RIOT/pull/6031","diff_url":"https://github.com/RIOT-OS/RIOT/pull/6031.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/6031.patch","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/6031","number":6031,"state":"open","locked":false,"title":"add driver for sd-cards (using spi)","user":{"login":"MichelRottleuthner","id":20105554,"avatar_url":"https://avatars.githubusercontent.com/u/20105554?v=3","gravatar_id":"","url":"https://api.github.com/users/MichelRottleuthner","html_url":"https://github.com/MichelRottleuthner","followers_url":"https://api.github.com/users/MichelRottleuthner/followers","following_url":"https://api.github.com/users/MichelRottleuthner/following{/other_user}","gists_url":"https://api.github.com/users/MichelRottleuthner/gists{/gist_id}","starred_url":"https://api.github.com/users/MichelRottleuthner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichelRottleuthner/subscriptions","organizations_url":"https://api.github.com/users/MichelRottleuthner/orgs","repos_url":"https://api.github.com/users/MichelRottleuthner/repos","events_url":"https://api.github.com/users/MichelRottleuthner/events{/privacy}","received_events_url":"https://api.github.com/users/MichelRottleuthner/received_events","type":"User","site_admin":false},"body":"This PR adds a driver to read/write sd-cards over spi. Also included is an interactive test application (tests/sdcard_spi) to perform some simple checks with various cards (init card, read/write/copy blocks, show CID and CSR card information).\r\nThis driver has been successfully tested with multiple micro-sd cards:\r\n1GB SDSC Kingston\r\n2GB SDSC SanDisk\r\n16GB SDHC SanDisk Ultra\r\n32GB SDHC SanDisk Ultra\r\n32GB SDHC Samsung Evo\r\n128GB SDXC SanDisk Ultra\r\nFor now i have only tried this on the samr21-xpro board, but since no board specific features are used it should also work with other platforms.\r\n","created_at":"2016-10-31T14:27:49Z","updated_at":"2016-12-15T13:36:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1856a9f07e89d703f41587fafd116f9bcb94224","assignee":{"login":"haukepetersen","id":620834,"avatar_url":"https://avatars.githubusercontent.com/u/620834?v=3","gravatar_id":"","url":"https://api.github.com/users/haukepetersen","html_url":"https://github.com/haukepetersen","followers_url":"https://api.github.com/users/haukepetersen/followers","following_url":"https://api.github.com/users/haukepetersen/following{/other_user}","gists_url":"https://api.github.com/users/haukepetersen/gists{/gist_id}","starred_url":"https://api.github.com/users/haukepetersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haukepetersen/subscriptions","organizations_url":"https://api.github.com/users/haukepetersen/orgs","repos_url":"https://api.github.com/users/haukepetersen/repos","events_url":"https://api.github.com/users/haukepetersen/events{/privacy}","received_events_url":"https://api.github.com/users/haukepetersen/received_events","type":"User","site_admin":false},"assignees":[{"login":"haukepetersen","id":620834,"avatar_url":"https://avatars.githubusercontent.com/u/620834?v=3","gravatar_id":"","url":"https://api.github.com/users/haukepetersen","html_url":"https://github.com/haukepetersen","followers_url":"https://api.github.com/users/haukepetersen/followers","following_url":"https://api.github.com/users/haukepetersen/following{/other_user}","gists_url":"https://api.github.com/users/haukepetersen/gists{/gist_id}","starred_url":"https://api.github.com/users/haukepetersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haukepetersen/subscriptions","organizations_url":"https://api.github.com/users/haukepetersen/orgs","repos_url":"https://api.github.com/users/haukepetersen/repos","events_url":"https://api.github.com/users/haukepetersen/events{/privacy}","received_events_url":"https://api.github.com/users/haukepetersen/received_events","type":"User","site_admin":false},{"login":"cgundogan","id":739129,"avatar_url":"https://avatars.githubusercontent.com/u/739129?v=3","gravatar_id":"","url":"https://api.github.com/users/cgundogan","html_url":"https://github.com/cgundogan","followers_url":"https://api.github.com/users/cgundogan/followers","following_url":"https://api.github.com/users/cgundogan/following{/other_user}","gists_url":"https://api.github.com/users/cgundogan/gists{/gist_id}","starred_url":"https://api.github.com/users/cgundogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgundogan/subscriptions","organizations_url":"https://api.github.com/users/cgundogan/orgs","repos_url":"https://api.github.com/users/cgundogan/repos","events_url":"https://api.github.com/users/cgundogan/events{/privacy}","received_events_url":"https://api.github.com/users/cgundogan/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/16","html_url":"https://github.com/RIOT-OS/RIOT/milestone/16","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/16/labels","id":2079772,"number":16,"title":"Release 2017.01","description":"","creator":{"login":"miri64","id":675644,"avatar_url":"https://avatars.githubusercontent.com/u/675644?v=3","gravatar_id":"","url":"https://api.github.com/users/miri64","html_url":"https://github.com/miri64","followers_url":"https://api.github.com/users/miri64/followers","following_url":"https://api.github.com/users/miri64/following{/other_user}","gists_url":"https://api.github.com/users/miri64/gists{/gist_id}","starred_url":"https://api.github.com/users/miri64/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miri64/subscriptions","organizations_url":"https://api.github.com/users/miri64/orgs","repos_url":"https://api.github.com/users/miri64/repos","events_url":"https://api.github.com/users/miri64/events{/privacy}","received_events_url":"https://api.github.com/users/miri64/received_events","type":"User","site_admin":false},"open_issues":264,"closed_issues":42,"state":"open","created_at":"2016-10-19T12:20:59Z","updated_at":"2016-12-15T11:59:14Z","due_on":"2017-01-31T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6031/commits","review_comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6031/comments","review_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/6031/comments","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/d8f46dfe79b408e8a2cc4c72fb1d490be4487d60","head":{"label":"MichelRottleuthner:sdcard_spi_testing","ref":"sdcard_spi_testing","sha":"d8f46dfe79b408e8a2cc4c72fb1d490be4487d60","user":{"login":"MichelRottleuthner","id":20105554,"avatar_url":"https://avatars.githubusercontent.com/u/20105554?v=3","gravatar_id":"","url":"https://api.github.com/users/MichelRottleuthner","html_url":"https://github.com/MichelRottleuthner","followers_url":"https://api.github.com/users/MichelRottleuthner/followers","following_url":"https://api.github.com/users/MichelRottleuthner/following{/other_user}","gists_url":"https://api.github.com/users/MichelRottleuthner/gists{/gist_id}","starred_url":"https://api.github.com/users/MichelRottleuthner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichelRottleuthner/subscriptions","organizations_url":"https://api.github.com/users/MichelRottleuthner/orgs","repos_url":"https://api.github.com/users/MichelRottleuthner/repos","events_url":"https://api.github.com/users/MichelRottleuthner/events{/privacy}","received_events_url":"https://api.github.com/users/MichelRottleuthner/received_events","type":"User","site_admin":false},"repo":{"id":62225163,"name":"RIOT","full_name":"MichelRottleuthner/RIOT","owner":{"login":"MichelRottleuthner","id":20105554,"avatar_url":"https://avatars.githubusercontent.com/u/20105554?v=3","gravatar_id":"","url":"https://api.github.com/users/MichelRottleuthner","html_url":"https://github.com/MichelRottleuthner","followers_url":"https://api.github.com/users/MichelRottleuthner/followers","following_url":"https://api.github.com/users/MichelRottleuthner/following{/other_user}","gists_url":"https://api.github.com/users/MichelRottleuthner/gists{/gist_id}","starred_url":"https://api.github.com/users/MichelRottleuthner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MichelRottleuthner/subscriptions","organizations_url":"https://api.github.com/users/MichelRottleuthner/orgs","repos_url":"https://api.github.com/users/MichelRottleuthner/repos","events_url":"https://api.github.com/users/MichelRottleuthner/events{/privacy}","received_events_url":"https://api.github.com/users/MichelRottleuthner/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/MichelRottleuthner/RIOT","description":"RIOT -  The friendly OS for IoT","fork":true,"url":"https://api.github.com/repos/MichelRottleuthner/RIOT","forks_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/forks","keys_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/teams","hooks_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/hooks","issue_events_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/events","assignees_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/tags","blobs_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/languages","stargazers_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/stargazers","contributors_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/contributors","subscribers_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/subscribers","subscription_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/subscription","commits_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/merges","archive_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/downloads","issues_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/releases{/id}","deployments_url":"https://api.github.com/repos/MichelRottleuthner/RIOT/deployments","created_at":"2016-06-29T12:45:57Z","updated_at":"2016-06-29T12:46:13Z","pushed_at":"2016-12-09T12:45:17Z","git_url":"git://github.com/MichelRottleuthner/RIOT.git","ssh_url":"git@github.com:MichelRottleuthner/RIOT.git","clone_url":"https://github.com/MichelRottleuthner/RIOT.git","svn_url":"https://github.com/MichelRottleuthner/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":31612,"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":"RIOT-OS:master","ref":"master","sha":"64c62e837aa311919514c6704239b325d058de22","user":{"login":"RIOT-OS","id":3079480,"avatar_url":"https://avatars.githubusercontent.com/u/3079480?v=3","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"repo":{"id":7370241,"name":"RIOT","full_name":"RIOT-OS/RIOT","owner":{"login":"RIOT-OS","id":3079480,"avatar_url":"https://avatars.githubusercontent.com/u/3079480?v=3","gravatar_id":"","url":"https://api.github.com/users/RIOT-OS","html_url":"https://github.com/RIOT-OS","followers_url":"https://api.github.com/users/RIOT-OS/followers","following_url":"https://api.github.com/users/RIOT-OS/following{/other_user}","gists_url":"https://api.github.com/users/RIOT-OS/gists{/gist_id}","starred_url":"https://api.github.com/users/RIOT-OS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RIOT-OS/subscriptions","organizations_url":"https://api.github.com/users/RIOT-OS/orgs","repos_url":"https://api.github.com/users/RIOT-OS/repos","events_url":"https://api.github.com/users/RIOT-OS/events{/privacy}","received_events_url":"https://api.github.com/users/RIOT-OS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RIOT-OS/RIOT","description":"RIOT -  The friendly OS for IoT","fork":false,"url":"https://api.github.com/repos/RIOT-OS/RIOT","forks_url":"https://api.github.com/repos/RIOT-OS/RIOT/forks","keys_url":"https://api.github.com/repos/RIOT-OS/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RIOT-OS/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RIOT-OS/RIOT/teams","hooks_url":"https://api.github.com/repos/RIOT-OS/RIOT/hooks","issue_events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/events","assignees_url":"https://api.github.com/repos/RIOT-OS/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/RIOT-OS/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/tags","blobs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/RIOT-OS/RIOT/languages","stargazers_url":"https://api.github.com/repos/RIOT-OS/RIOT/stargazers","contributors_url":"https://api.github.com/repos/RIOT-OS/RIOT/contributors","subscribers_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscribers","subscription_url":"https://api.github.com/repos/RIOT-OS/RIOT/subscription","commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/RIOT-OS/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/RIOT-OS/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RIOT-OS/RIOT/merges","archive_url":"https://api.github.com/repos/RIOT-OS/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RIOT-OS/RIOT/downloads","issues_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/RIOT-OS/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/RIOT-OS/RIOT/releases{/id}","deployments_url":"https://api.github.com/repos/RIOT-OS/RIOT/deployments","created_at":"2012-12-29T20:38:40Z","updated_at":"2016-12-14T21:40:54Z","pushed_at":"2016-12-15T12:46:15Z","git_url":"git://github.com/RIOT-OS/RIOT.git","ssh_url":"git@github.com:RIOT-OS/RIOT.git","clone_url":"https://github.com/RIOT-OS/RIOT.git","svn_url":"https://github.com/RIOT-OS/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":32164,"stargazers_count":1014,"watchers_count":1014,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":684,"mirror_url":null,"open_issues_count":546,"forks":684,"open_issues":546,"watchers":1014,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6031"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/6031"},"issue":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/6031"},"comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/6031/comments"},"review_comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6031/comments"},"review_comment":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/6031/commits"},"statuses":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/d8f46dfe79b408e8a2cc4c72fb1d490be4487d60"}}}}
{"actor":{"display_login":"smlng"}}