{"action":"created","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/1649","labels_url":"https://api.github.com/repos/micropython/micropython/issues/1649/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/1649/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/1649/events","html_url":"https://github.com/micropython/micropython/pull/1649","id":118962098,"number":1649,"title":"stmhal: Make stm.mem32 work better","user":{"login":"dhylands","id":127500,"avatar_url":"https://avatars.githubusercontent.com/u/127500?v=3","gravatar_id":"","url":"https://api.github.com/users/dhylands","html_url":"https://github.com/dhylands","followers_url":"https://api.github.com/users/dhylands/followers","following_url":"https://api.github.com/users/dhylands/following{/other_user}","gists_url":"https://api.github.com/users/dhylands/gists{/gist_id}","starred_url":"https://api.github.com/users/dhylands/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dhylands/subscriptions","organizations_url":"https://api.github.com/users/dhylands/orgs","repos_url":"https://api.github.com/users/dhylands/repos","events_url":"https://api.github.com/users/dhylands/events{/privacy}","received_events_url":"https://api.github.com/users/dhylands/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-11-26T02:58:32Z","updated_at":"2015-11-26T19:17:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/micropython/micropython/pulls/1649","html_url":"https://github.com/micropython/micropython/pull/1649","diff_url":"https://github.com/micropython/micropython/pull/1649.diff","patch_url":"https://github.com/micropython/micropython/pull/1649.patch"},"body":"I'd like to put forth these proposed changes.\r\n\r\nWith these you can now do things like:\r\n\r\nstm.mem32[0x20000000] = 0x80000000\r\n\r\nand read 32-bit values. You can also read all the way to the end\r\nof memory using either stm.mem32[0xfffffffc] or stm.mem32[-4]\r\n\r\nIRQs shouldn't use mem32 at all since they'd fail if the top 2 bits\r\nweren't equal, so IRQs should be using 16-bit I/O."},"comment":{"url":"https://api.github.com/repos/micropython/micropython/issues/comments/159979116","html_url":"https://github.com/micropython/micropython/pull/1649#issuecomment-159979116","issue_url":"https://api.github.com/repos/micropython/micropython/issues/1649","id":159979116,"user":{"login":"pfalcon","id":500451,"avatar_url":"https://avatars.githubusercontent.com/u/500451?v=3","gravatar_id":"","url":"https://api.github.com/users/pfalcon","html_url":"https://github.com/pfalcon","followers_url":"https://api.github.com/users/pfalcon/followers","following_url":"https://api.github.com/users/pfalcon/following{/other_user}","gists_url":"https://api.github.com/users/pfalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/pfalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfalcon/subscriptions","organizations_url":"https://api.github.com/users/pfalcon/orgs","repos_url":"https://api.github.com/users/pfalcon/repos","events_url":"https://api.github.com/users/pfalcon/events{/privacy}","received_events_url":"https://api.github.com/users/pfalcon/received_events","type":"User","site_admin":false},"created_at":"2015-11-26T19:17:18Z","updated_at":"2015-11-26T19:17:18Z","body":"> I'll do a separate PR to add the mem functions/constants to the machine module.\r\n\r\nThanks. to hint how this would be done, extmod/modmachine.c should be decomposed to export machine_mem8_obj & friends, not a complete module, and unix should get its own copy of modmachine.c. "}}