{"action":"created","comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments/110369882","pull_request_review_id":31539091,"id":110369882,"diff_hunk":"@@ -0,0 +1,232 @@\n+/* mbed Microcontroller Library\n+ * Copyright (c) 2006-2013 ARM Limited\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may 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,\n+ * WITHOUT 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+#ifndef _PINNAMES_H_\n+#define _PINNAMES_H_\n+\n+#include \"cmsis.h\"\n+\n+#ifdef __cplusplus\n+extern \"C\" {\n+#endif\n+\n+typedef enum {\n+    PORT_A = 0,\n+    PORT_B = 1,\n+    PORT_C = 2,\n+    PORT_D = 3,\n+    PORT_E = 4,\n+    PORT_F = 5,\n+    PORT_G = 6,\n+    PORT_H = 7,\n+    PORT_I = 8,\n+    PORT_J = 9,\n+    PORT_K = 10,\n+\n+    PORT_V = 11,\n+    PORT_U = 12,\n+    PORT_MAX\n+} GPIO_PORT;\n+\n+#define RTL_PIN_PERI(FUN, IDX, SEL)      ((int)(((FUN) << 8) | ((IDX)<<4) | (SEL)))\n+#define RTL_PIN_FUNC(FUN, SEL)      ((int)(((FUN) << 7) | (SEL)))\n+#define RTL_GET_PERI_SEL(peri)      ((int)((peri)&0x0F))\n+#define RTL_GET_PERI_IDX(peri)      ((int)(((peri) >> 4)&0x0F))\n+\n+typedef enum {\n+    PIN_INPUT=0,\n+    PIN_OUTPUT\n+} PinDirection;\n+\n+typedef enum {\n+    PA_0  = (PORT_A<<4|0),\n+    PA_1  = (PORT_A<<4|1),\n+    PA_2  = (PORT_A<<4|2),\n+    PA_3  = (PORT_A<<4|3),\n+    PA_4  = (PORT_A<<4|4),\n+    PA_5  = (PORT_A<<4|5),\n+    PA_6  = (PORT_A<<4|6),\n+    PA_7  = (PORT_A<<4|7),\n+\n+    PB_0  = (PORT_B<<4|0),\n+    PB_1  = (PORT_B<<4|1),\n+    PB_2  = (PORT_B<<4|2),\n+    PB_3  = (PORT_B<<4|3),\n+    PB_4  = (PORT_B<<4|4),\n+    PB_5  = (PORT_B<<4|5),\n+    PB_6  = (PORT_B<<4|6),\n+    PB_7  = (PORT_B<<4|7),\n+\n+    PC_0  = (PORT_C<<4|0),\n+    PC_1  = (PORT_C<<4|1),\n+    PC_2  = (PORT_C<<4|2),\n+    PC_3  = (PORT_C<<4|3),\n+    PC_4  = (PORT_C<<4|4),\n+    PC_5  = (PORT_C<<4|5),\n+    PC_6  = (PORT_C<<4|6),\n+    PC_7  = (PORT_C<<4|7),\n+    PC_8  = (PORT_C<<4|8),\n+    PC_9  = (PORT_C<<4|9),\n+\n+    PD_0  = (PORT_D<<4|0),\n+    PD_1  = (PORT_D<<4|1),\n+    PD_2  = (PORT_D<<4|2),\n+    PD_3  = (PORT_D<<4|3),\n+    PD_4  = (PORT_D<<4|4),\n+    PD_5  = (PORT_D<<4|5),\n+    PD_6  = (PORT_D<<4|6),\n+    PD_7  = (PORT_D<<4|7),\n+    PD_8  = (PORT_D<<4|8),\n+    PD_9  = (PORT_D<<4|9),\n+  \n+    PE_0  = (PORT_E<<4|0),\n+    PE_1  = (PORT_E<<4|1),\n+    PE_2  = (PORT_E<<4|2),\n+    PE_3  = (PORT_E<<4|3),\n+    PE_4  = (PORT_E<<4|4),\n+    PE_5  = (PORT_E<<4|5),\n+    PE_6  = (PORT_E<<4|6),\n+    PE_7  = (PORT_E<<4|7),\n+    PE_8  = (PORT_E<<4|8),\n+    PE_9  = (PORT_E<<4|9),\n+    PE_A  = (PORT_E<<4|10),\n+  \n+    PF_0  = (PORT_F<<4|0),\n+    PF_1  = (PORT_F<<4|1),\n+    PF_2  = (PORT_F<<4|2),\n+    PF_3  = (PORT_F<<4|3),\n+    PF_4  = (PORT_F<<4|4),\n+    PF_5  = (PORT_F<<4|5),\n+//    PF_6  = (PORT_F<<4|6),\n+//    PF_7  = (PORT_F<<4|7),","path":"targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/PinNames.h","position":null,"original_position":113,"commit_id":"0c51a31d19015440a8db9c9177d3753f8559d2ce","original_commit_id":"95c027a194bd1571954f0048c1862385d82ea7d0","user":{"login":"Archcady","id":25738273,"avatar_url":"https://avatars2.githubusercontent.com/u/25738273?v=3","gravatar_id":"","url":"https://api.github.com/users/Archcady","html_url":"https://github.com/Archcady","followers_url":"https://api.github.com/users/Archcady/followers","following_url":"https://api.github.com/users/Archcady/following{/other_user}","gists_url":"https://api.github.com/users/Archcady/gists{/gist_id}","starred_url":"https://api.github.com/users/Archcady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Archcady/subscriptions","organizations_url":"https://api.github.com/users/Archcady/orgs","repos_url":"https://api.github.com/users/Archcady/repos","events_url":"https://api.github.com/users/Archcady/events{/privacy}","received_events_url":"https://api.github.com/users/Archcady/received_events","type":"User","site_admin":false},"body":"comments added","created_at":"2017-04-07T11:32:45Z","updated_at":"2017-04-07T11:32:45Z","html_url":"https://github.com/ARMmbed/mbed-os/pull/3758#discussion_r110369882","pull_request_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/3758","_links":{"self":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/comments/110369882"},"html":{"href":"https://github.com/ARMmbed/mbed-os/pull/3758#discussion_r110369882"},"pull_request":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/3758"}}},"pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/3758","id":105899147,"html_url":"https://github.com/ARMmbed/mbed-os/pull/3758","diff_url":"https://github.com/ARMmbed/mbed-os/pull/3758.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/3758.patch","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3758","number":3758,"state":"open","locked":false,"title":"Add REALTEK_RTL8195AM to mbed-os","user":{"login":"Archcady","id":25738273,"avatar_url":"https://avatars2.githubusercontent.com/u/25738273?v=3","gravatar_id":"","url":"https://api.github.com/users/Archcady","html_url":"https://github.com/Archcady","followers_url":"https://api.github.com/users/Archcady/followers","following_url":"https://api.github.com/users/Archcady/following{/other_user}","gists_url":"https://api.github.com/users/Archcady/gists{/gist_id}","starred_url":"https://api.github.com/users/Archcady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Archcady/subscriptions","organizations_url":"https://api.github.com/users/Archcady/orgs","repos_url":"https://api.github.com/users/Archcady/repos","events_url":"https://api.github.com/users/Archcady/events{/privacy}","received_events_url":"https://api.github.com/users/Archcady/received_events","type":"User","site_admin":false},"body":"## Description\r\nAdd REALTEK_RTL8195AM to mbed-os\r\n\r\n\r\n## Status\r\nIN DEVELOPMENT\r\nGreentea test\r\nARMCC: \r\nmbedgt: test suite results: 48 OK\r\nmbedgt: test case results: 164 OK\r\n\r\nGCC:\r\nmbedgt: test suite results: 48 OK\r\nmbedgt: test case results: 164 OK\r\n\r\nIAR:\r\nmbedgt: test suite results: 48 OK\r\nmbedgt: test case results: 164 OK\r\n\r\n## Todos\r\n- [x] Debug Ticker drifting issue\r\n- [ ] Tests\r\n- [ ] Documentation\r\n\r\n\r\n","created_at":"2017-02-13T14:03:38Z","updated_at":"2017-04-07T11:32:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e0b7d951a2f1f0f3b47c0fb08bda53fe9407d235","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/3758/commits","review_comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/3758/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/3758/comments","statuses_url":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/0c51a31d19015440a8db9c9177d3753f8559d2ce","head":{"label":"Archcady:mbed-os-5.3","ref":"mbed-os-5.3","sha":"0c51a31d19015440a8db9c9177d3753f8559d2ce","user":{"login":"Archcady","id":25738273,"avatar_url":"https://avatars2.githubusercontent.com/u/25738273?v=3","gravatar_id":"","url":"https://api.github.com/users/Archcady","html_url":"https://github.com/Archcady","followers_url":"https://api.github.com/users/Archcady/followers","following_url":"https://api.github.com/users/Archcady/following{/other_user}","gists_url":"https://api.github.com/users/Archcady/gists{/gist_id}","starred_url":"https://api.github.com/users/Archcady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Archcady/subscriptions","organizations_url":"https://api.github.com/users/Archcady/orgs","repos_url":"https://api.github.com/users/Archcady/repos","events_url":"https://api.github.com/users/Archcady/events{/privacy}","received_events_url":"https://api.github.com/users/Archcady/received_events","type":"User","site_admin":false},"repo":{"id":81802524,"name":"mbed-os","full_name":"Archcady/mbed-os","owner":{"login":"Archcady","id":25738273,"avatar_url":"https://avatars2.githubusercontent.com/u/25738273?v=3","gravatar_id":"","url":"https://api.github.com/users/Archcady","html_url":"https://github.com/Archcady","followers_url":"https://api.github.com/users/Archcady/followers","following_url":"https://api.github.com/users/Archcady/following{/other_user}","gists_url":"https://api.github.com/users/Archcady/gists{/gist_id}","starred_url":"https://api.github.com/users/Archcady/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Archcady/subscriptions","organizations_url":"https://api.github.com/users/Archcady/orgs","repos_url":"https://api.github.com/users/Archcady/repos","events_url":"https://api.github.com/users/Archcady/events{/privacy}","received_events_url":"https://api.github.com/users/Archcady/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Archcady/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/Archcady/mbed-os","forks_url":"https://api.github.com/repos/Archcady/mbed-os/forks","keys_url":"https://api.github.com/repos/Archcady/mbed-os/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Archcady/mbed-os/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Archcady/mbed-os/teams","hooks_url":"https://api.github.com/repos/Archcady/mbed-os/hooks","issue_events_url":"https://api.github.com/repos/Archcady/mbed-os/issues/events{/number}","events_url":"https://api.github.com/repos/Archcady/mbed-os/events","assignees_url":"https://api.github.com/repos/Archcady/mbed-os/assignees{/user}","branches_url":"https://api.github.com/repos/Archcady/mbed-os/branches{/branch}","tags_url":"https://api.github.com/repos/Archcady/mbed-os/tags","blobs_url":"https://api.github.com/repos/Archcady/mbed-os/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Archcady/mbed-os/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Archcady/mbed-os/git/refs{/sha}","trees_url":"https://api.github.com/repos/Archcady/mbed-os/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Archcady/mbed-os/statuses/{sha}","languages_url":"https://api.github.com/repos/Archcady/mbed-os/languages","stargazers_url":"https://api.github.com/repos/Archcady/mbed-os/stargazers","contributors_url":"https://api.github.com/repos/Archcady/mbed-os/contributors","subscribers_url":"https://api.github.com/repos/Archcady/mbed-os/subscribers","subscription_url":"https://api.github.com/repos/Archcady/mbed-os/subscription","commits_url":"https://api.github.com/repos/Archcady/mbed-os/commits{/sha}","git_commits_url":"https://api.github.com/repos/Archcady/mbed-os/git/commits{/sha}","comments_url":"https://api.github.com/repos/Archcady/mbed-os/comments{/number}","issue_comment_url":"https://api.github.com/repos/Archcady/mbed-os/issues/comments{/number}","contents_url":"https://api.github.com/repos/Archcady/mbed-os/contents/{+path}","compare_url":"https://api.github.com/repos/Archcady/mbed-os/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Archcady/mbed-os/merges","archive_url":"https://api.github.com/repos/Archcady/mbed-os/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Archcady/mbed-os/downloads","issues_url":"https://api.github.com/repos/Archcady/mbed-os/issues{/number}","pulls_url":"https://api.github.com/repos/Archcady/mbed-os/pulls{/number}","milestones_url":"https://api.github.com/repos/Archcady/mbed-os/milestones{/number}","notifications_url":"https://api.github.com/repos/Archcady/mbed-os/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Archcady/mbed-os/labels{/name}","releases_url":"https://api.github.com/repos/Archcady/mbed-os/releases{/id}","deployments_url":"https://api.github.com/repos/Archcady/mbed-os/deployments","created_at":"2017-02-13T08:34:24Z","updated_at":"2017-02-13T08:36:04Z","pushed_at":"2017-04-07T11:32:34Z","git_url":"git://github.com/Archcady/mbed-os.git","ssh_url":"git@github.com:Archcady/mbed-os.git","clone_url":"https://github.com/Archcady/mbed-os.git","svn_url":"https://github.com/Archcady/mbed-os","homepage":"https://mbed.com","size":134107,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ARMmbed:master","ref":"master","sha":"067fe9b0e5634781aad5e22fb625cbb4b01f0419","user":{"login":"ARMmbed","id":8916057,"avatar_url":"https://avatars0.githubusercontent.com/u/8916057?v=3","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://avatars0.githubusercontent.com/u/8916057?v=3","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":"2017-04-07T00:54:53Z","pushed_at":"2017-04-07T11:32:38Z","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":120915,"stargazers_count":989,"watchers_count":989,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":932,"mirror_url":null,"open_issues_count":460,"forks":932,"open_issues":460,"watchers":989,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/3758"},"html":{"href":"https://github.com/ARMmbed/mbed-os/pull/3758"},"issue":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3758"},"comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/issues/3758/comments"},"review_comments":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/3758/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/3758/commits"},"statuses":{"href":"https://api.github.com/repos/ARMmbed/mbed-os/statuses/0c51a31d19015440a8db9c9177d3753f8559d2ce"}}}}
{"actor":{"display_login":"Archcady"}}