{"action":"created","comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/68955076","id":68955076,"diff_hunk":"@@ -0,0 +1,107 @@\n+/*\n+ * Copyright (C) 2014 Freie Universität Berlin, Hinnerk van Bruinehsen\n+ *               2016 Laurent Navet <laurent.navet@gmail.com>\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     boards_arduino-uno\n+ * @{\n+ *\n+ * @file\n+ * @brief       Peripheral MCU configuration for the Arduino Uno board\n+ *\n+ * @author      Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de>\n+ * @author      Laurent Navet <laurent.navet@gmail.com>\n+ */\n+\n+#ifndef PERIPH_CONF_H_\n+#define PERIPH_CONF_H_\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+/**\n+ * @brief   Clock configuration\n+ * @{\n+ */\n+#define CLOCK_CORECLOCK     (16000000L)\n+/** @} */\n+\n+/**\n+ * @brief   Timer configuration\n+ *\n+ * The timer driver only supports the 16-bit timer (Timer1)\n+ * so this is the only one we can use here.\n+ *\n+ * @{\n+ */\n+#define TIMER_NUMOF         (2U)\n+\n+#define TIMER_0             MEGA_TIMER1\n+#define TIMER_0_MASK        &TIMSK1\n+#define TIMER_0_FLAG        &TIFR1\n+#define TIMER_0_ISRA        TIMER1_COMPA_vect\n+#define TIMER_0_ISRB        TIMER1_COMPB_vect\n+/** @} */\n+\n+/**\n+ * @brief   UART configuration\n+ * @{\n+ */\n+#define UART_NUMOF          (1U)\n+#define UART_0_EN           1\n+\n+/* UART 0 registers */\n+#define UART0_CTRL_STAT_A   UCSR0A\n+#define UART0_CTRL_STAT_B   UCSR0B\n+#define UART0_CTRL_STAT_C   UCSR0C\n+#define UART0_BAUD_RATE_L   UBRR0L\n+#define UART0_BAUD_RATE_H   UBRR0H\n+#define UART0_DATA_REGISTER UDR0\n+\n+/* Flags */\n+#define UART0_RX_COMPLETE   RXC0\n+#define UART0_DATA_EMPTY    UDRE0\n+#define UART0_RX_EN         RXEN0\n+#define UART0_TX_EN         TXEN0\n+#define UART0_RXC_IRQ_EN    RXCIE0\n+#define UART0_TXC_IRQ_EN    TXCIE0\n+#define UART0_8BIT_SIZE     (1 << UCSZ00) | (1 << UCSZ01)\n+\n+/* UART0 helper macros */\n+#define UART0_RX_TX_EN      UART0_CTRL_STAT_B |= (1 << UART0_RX_EN) | (1 << UART0_TX_EN)\n+#define UART0_RX_IRQ_EN     UART0_CTRL_STAT_B |= (1 << UART0_RXC_IRQ_EN)\n+#define UART0_SET_8BIT_SIZE UART0_CTRL_STAT_C |= UART0_8BIT_SIZE\n+#define UART0_RECEIVED_DATA (UART0_CTRL_STAT_A & (1 << UART0_RX_COMPLETE))\n+#define UART0_DTREG_EMPTY   (UART0_CTRL_STAT_A & (1 << UART0_DATA_EMPTY))\n+","path":"boards/arduino-uno/include/periph_conf.h","position":82,"original_position":82,"commit_id":"65d817483b5c3efa58af2e5f2f7a135948b3e664","original_commit_id":"65d817483b5c3efa58af2e5f2f7a135948b3e664","user":{"login":"kYc0o","id":5419775,"avatar_url":"https://avatars.githubusercontent.com/u/5419775?v=3","gravatar_id":"","url":"https://api.github.com/users/kYc0o","html_url":"https://github.com/kYc0o","followers_url":"https://api.github.com/users/kYc0o/followers","following_url":"https://api.github.com/users/kYc0o/following{/other_user}","gists_url":"https://api.github.com/users/kYc0o/gists{/gist_id}","starred_url":"https://api.github.com/users/kYc0o/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kYc0o/subscriptions","organizations_url":"https://api.github.com/users/kYc0o/orgs","repos_url":"https://api.github.com/users/kYc0o/repos","events_url":"https://api.github.com/users/kYc0o/events{/privacy}","received_events_url":"https://api.github.com/users/kYc0o/received_events","type":"User","site_admin":false},"body":"Please look at the new UART implementation, for instance on the mega2560 [here](https://github.com/RIOT-OS/RIOT/blob/master/boards/arduino-mega2560/include/periph_conf.h#L69).","created_at":"2016-06-29T14:26:02Z","updated_at":"2016-06-29T14:26:02Z","html_url":"https://github.com/RIOT-OS/RIOT/pull/5451#discussion_r68955076","pull_request_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/5451","_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/comments/68955076"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/5451#discussion_r68955076"},"pull_request":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/5451"}}},"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/5451","id":70581238,"html_url":"https://github.com/RIOT-OS/RIOT/pull/5451","diff_url":"https://github.com/RIOT-OS/RIOT/pull/5451.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/5451.patch","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/5451","number":5451,"state":"open","locked":false,"title":"boards/arduino-uno : add basic support","user":{"login":"mali","id":215366,"avatar_url":"https://avatars.githubusercontent.com/u/215366?v=3","gravatar_id":"","url":"https://api.github.com/users/mali","html_url":"https://github.com/mali","followers_url":"https://api.github.com/users/mali/followers","following_url":"https://api.github.com/users/mali/following{/other_user}","gists_url":"https://api.github.com/users/mali/gists{/gist_id}","starred_url":"https://api.github.com/users/mali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mali/subscriptions","organizations_url":"https://api.github.com/users/mali/orgs","repos_url":"https://api.github.com/users/mali/repos","events_url":"https://api.github.com/users/mali/events{/privacy}","received_events_url":"https://api.github.com/users/mali/received_events","type":"User","site_admin":false},"body":"Add basic support of :\r\n\t- atmega328p MCU\r\n\t- arduino uno board","created_at":"2016-05-18T19:00:27Z","updated_at":"2016-06-29T14:26:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2eac8ffaf7dd13e196117c1c947a61ed75e96356","assignee":{"login":"aabadie","id":1375137,"avatar_url":"https://avatars.githubusercontent.com/u/1375137?v=3","gravatar_id":"","url":"https://api.github.com/users/aabadie","html_url":"https://github.com/aabadie","followers_url":"https://api.github.com/users/aabadie/followers","following_url":"https://api.github.com/users/aabadie/following{/other_user}","gists_url":"https://api.github.com/users/aabadie/gists{/gist_id}","starred_url":"https://api.github.com/users/aabadie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aabadie/subscriptions","organizations_url":"https://api.github.com/users/aabadie/orgs","repos_url":"https://api.github.com/users/aabadie/repos","events_url":"https://api.github.com/users/aabadie/events{/privacy}","received_events_url":"https://api.github.com/users/aabadie/received_events","type":"User","site_admin":false},"assignees":[{"login":"aabadie","id":1375137,"avatar_url":"https://avatars.githubusercontent.com/u/1375137?v=3","gravatar_id":"","url":"https://api.github.com/users/aabadie","html_url":"https://github.com/aabadie","followers_url":"https://api.github.com/users/aabadie/followers","following_url":"https://api.github.com/users/aabadie/following{/other_user}","gists_url":"https://api.github.com/users/aabadie/gists{/gist_id}","starred_url":"https://api.github.com/users/aabadie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aabadie/subscriptions","organizations_url":"https://api.github.com/users/aabadie/orgs","repos_url":"https://api.github.com/users/aabadie/repos","events_url":"https://api.github.com/users/aabadie/events{/privacy}","received_events_url":"https://api.github.com/users/aabadie/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/14","html_url":"https://github.com/RIOT-OS/RIOT/milestones/Release%202016.07","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/14/labels","id":1657251,"number":14,"title":"Release 2016.07","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":224,"closed_issues":114,"state":"open","created_at":"2016-03-21T13:28:08Z","updated_at":"2016-06-29T11:45:20Z","due_on":"2016-07-14T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/5451/commits","review_comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/5451/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/5451/comments","statuses_url":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/65d817483b5c3efa58af2e5f2f7a135948b3e664","head":{"label":"mali:uno","ref":"uno","sha":"65d817483b5c3efa58af2e5f2f7a135948b3e664","user":{"login":"mali","id":215366,"avatar_url":"https://avatars.githubusercontent.com/u/215366?v=3","gravatar_id":"","url":"https://api.github.com/users/mali","html_url":"https://github.com/mali","followers_url":"https://api.github.com/users/mali/followers","following_url":"https://api.github.com/users/mali/following{/other_user}","gists_url":"https://api.github.com/users/mali/gists{/gist_id}","starred_url":"https://api.github.com/users/mali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mali/subscriptions","organizations_url":"https://api.github.com/users/mali/orgs","repos_url":"https://api.github.com/users/mali/repos","events_url":"https://api.github.com/users/mali/events{/privacy}","received_events_url":"https://api.github.com/users/mali/received_events","type":"User","site_admin":false},"repo":{"id":57994717,"name":"RIOT","full_name":"mali/RIOT","owner":{"login":"mali","id":215366,"avatar_url":"https://avatars.githubusercontent.com/u/215366?v=3","gravatar_id":"","url":"https://api.github.com/users/mali","html_url":"https://github.com/mali","followers_url":"https://api.github.com/users/mali/followers","following_url":"https://api.github.com/users/mali/following{/other_user}","gists_url":"https://api.github.com/users/mali/gists{/gist_id}","starred_url":"https://api.github.com/users/mali/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mali/subscriptions","organizations_url":"https://api.github.com/users/mali/orgs","repos_url":"https://api.github.com/users/mali/repos","events_url":"https://api.github.com/users/mali/events{/privacy}","received_events_url":"https://api.github.com/users/mali/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mali/RIOT","description":"RIOT -  The friendly OS for IoT","fork":true,"url":"https://api.github.com/repos/mali/RIOT","forks_url":"https://api.github.com/repos/mali/RIOT/forks","keys_url":"https://api.github.com/repos/mali/RIOT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mali/RIOT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mali/RIOT/teams","hooks_url":"https://api.github.com/repos/mali/RIOT/hooks","issue_events_url":"https://api.github.com/repos/mali/RIOT/issues/events{/number}","events_url":"https://api.github.com/repos/mali/RIOT/events","assignees_url":"https://api.github.com/repos/mali/RIOT/assignees{/user}","branches_url":"https://api.github.com/repos/mali/RIOT/branches{/branch}","tags_url":"https://api.github.com/repos/mali/RIOT/tags","blobs_url":"https://api.github.com/repos/mali/RIOT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mali/RIOT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mali/RIOT/git/refs{/sha}","trees_url":"https://api.github.com/repos/mali/RIOT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mali/RIOT/statuses/{sha}","languages_url":"https://api.github.com/repos/mali/RIOT/languages","stargazers_url":"https://api.github.com/repos/mali/RIOT/stargazers","contributors_url":"https://api.github.com/repos/mali/RIOT/contributors","subscribers_url":"https://api.github.com/repos/mali/RIOT/subscribers","subscription_url":"https://api.github.com/repos/mali/RIOT/subscription","commits_url":"https://api.github.com/repos/mali/RIOT/commits{/sha}","git_commits_url":"https://api.github.com/repos/mali/RIOT/git/commits{/sha}","comments_url":"https://api.github.com/repos/mali/RIOT/comments{/number}","issue_comment_url":"https://api.github.com/repos/mali/RIOT/issues/comments{/number}","contents_url":"https://api.github.com/repos/mali/RIOT/contents/{+path}","compare_url":"https://api.github.com/repos/mali/RIOT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mali/RIOT/merges","archive_url":"https://api.github.com/repos/mali/RIOT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mali/RIOT/downloads","issues_url":"https://api.github.com/repos/mali/RIOT/issues{/number}","pulls_url":"https://api.github.com/repos/mali/RIOT/pulls{/number}","milestones_url":"https://api.github.com/repos/mali/RIOT/milestones{/number}","notifications_url":"https://api.github.com/repos/mali/RIOT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mali/RIOT/labels{/name}","releases_url":"https://api.github.com/repos/mali/RIOT/releases{/id}","deployments_url":"https://api.github.com/repos/mali/RIOT/deployments","created_at":"2016-05-03T19:10:09Z","updated_at":"2016-05-03T19:12:29Z","pushed_at":"2016-06-27T19:37:49Z","git_url":"git://github.com/mali/RIOT.git","ssh_url":"git@github.com:mali/RIOT.git","clone_url":"https://github.com/mali/RIOT.git","svn_url":"https://github.com/mali/RIOT","homepage":"https://github.com/RIOT-OS/RIOT/wiki","size":27008,"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":"RIOT-OS:master","ref":"master","sha":"ed2c94764b6d724e0d9ea6af70ffdaa0fcd3dedb","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-06-28T22:11:25Z","pushed_at":"2016-06-29T14:16:06Z","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":92743,"stargazers_count":816,"watchers_count":816,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":574,"mirror_url":null,"open_issues_count":497,"forks":574,"open_issues":497,"watchers":816,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/5451"},"html":{"href":"https://github.com/RIOT-OS/RIOT/pull/5451"},"issue":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/5451"},"comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/issues/5451/comments"},"review_comments":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/5451/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/5451/commits"},"statuses":{"href":"https://api.github.com/repos/RIOT-OS/RIOT/statuses/65d817483b5c3efa58af2e5f2f7a135948b3e664"}}}}
{"actor":{"display_login":"kYc0o"}}