{"action":"created","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/1249","labels_url":"https://api.github.com/repos/micropython/micropython/issues/1249/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/1249/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/1249/events","html_url":"https://github.com/micropython/micropython/pull/1249","id":75162921,"number":1249,"title":"Add initial RIOT port","user":{"login":"kaspar030","id":4679640,"avatar_url":"https://avatars.githubusercontent.com/u/4679640?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspar030","html_url":"https://github.com/kaspar030","followers_url":"https://api.github.com/users/kaspar030/followers","following_url":"https://api.github.com/users/kaspar030/following{/other_user}","gists_url":"https://api.github.com/users/kaspar030/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspar030/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspar030/subscriptions","organizations_url":"https://api.github.com/users/kaspar030/orgs","repos_url":"https://api.github.com/users/kaspar030/repos","events_url":"https://api.github.com/users/kaspar030/events{/privacy}","received_events_url":"https://api.github.com/users/kaspar030/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-11T10:07:15Z","updated_at":"2015-05-11T11:00:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/micropython/micropython/pulls/1249","html_url":"https://github.com/micropython/micropython/pull/1249","diff_url":"https://github.com/micropython/micropython/pull/1249.diff","patch_url":"https://github.com/micropython/micropython/pull/1249.patch"},"body":"This PR adds initial support for the [RIOT](https://github.com/RIOT-OS/RIOT) operating system.\r\n\r\nRIOT is a nice, portable, small but feature rich OS for small embedded devices, with small meaning from 4k RAM and up. The focus is on IoT applications, with a full-featured IPv6/6LoWPAN/RPL/... network stack nearing completion. It runs on 8bit, 16bit and 32bit platforms, sporting an O(1) preemptive scheduler, fast IPC and syncronization and nicely abstracted hardware support.\r\n\r\nThis port has been PRed for integration in RIOT as #2968 (in riot's github repo).\r\n\r\nIt cannot do much as no library has been ported.\r\n\r\nTODO:\r\n- there's a bug that eats the parentheses when entering \"help()\" on upy's command line. But e.g., \"print()\" works fine. don't know why. (works fine on RIOT's native linux port)\r\n- the garbage collector doesn't consider register contents, so it will probably not work correctly\r\n- there needs to be either a mapping for riot C libs -> micropython libs or an adaption of micropythons \"pyb.\" lib\r\n\r\nThis PR contains some cleanup commits:\r\n- one for accepting both 0xa and 0xd as newline for readline, needed to support our native port's console input\r\n- one that fixes obobject.c when not using ```MICROPY_CPYTHON_COMPAT``` (a .locals_dict had a broken definition when setting that flag)\r\n- one that changes a function pointer from void* to void(*)(void) to make it ISO C\r\n- one to make mp_binary_get_size unsigned as otherwise later comparisons trigger a sign-compare warning"},"comment":{"url":"https://api.github.com/repos/micropython/micropython/issues/comments/100869070","html_url":"https://github.com/micropython/micropython/pull/1249#issuecomment-100869070","issue_url":"https://api.github.com/repos/micropython/micropython/issues/1249","id":100869070,"user":{"login":"kaspar030","id":4679640,"avatar_url":"https://avatars.githubusercontent.com/u/4679640?v=3","gravatar_id":"","url":"https://api.github.com/users/kaspar030","html_url":"https://github.com/kaspar030","followers_url":"https://api.github.com/users/kaspar030/followers","following_url":"https://api.github.com/users/kaspar030/following{/other_user}","gists_url":"https://api.github.com/users/kaspar030/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspar030/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspar030/subscriptions","organizations_url":"https://api.github.com/users/kaspar030/orgs","repos_url":"https://api.github.com/users/kaspar030/repos","events_url":"https://api.github.com/users/kaspar030/events{/privacy}","received_events_url":"https://api.github.com/users/kaspar030/received_events","type":"User","site_admin":false},"created_at":"2015-05-11T11:00:44Z","updated_at":"2015-05-11T11:00:44Z","body":"> @kaspar030 are you able to maintain this port?\r\n\r\nI think so. Actually I'm pretty sure that my fellow RIOT friends will help fill in the pyb.* stuff and keep this updated.\r\n\r\nI can keep this in my micropython fork for now until it has enough code to justify the top-level dir."}}