{"action":"created","issue":{"url":"https://api.github.com/repos/japaric/stm32f103xx-hal/issues/108","repository_url":"https://api.github.com/repos/japaric/stm32f103xx-hal","labels_url":"https://api.github.com/repos/japaric/stm32f103xx-hal/issues/108/labels{/name}","comments_url":"https://api.github.com/repos/japaric/stm32f103xx-hal/issues/108/comments","events_url":"https://api.github.com/repos/japaric/stm32f103xx-hal/issues/108/events","html_url":"https://github.com/japaric/stm32f103xx-hal/issues/108","id":372091938,"node_id":"MDU6SXNzdWUzNzIwOTE5Mzg=","number":108,"title":"Constrain AFIO leads to unsafe code when setting up EXTI","user":{"login":"freiguy1","id":613651,"node_id":"MDQ6VXNlcjYxMzY1MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/613651?v=4","gravatar_id":"","url":"https://api.github.com/users/freiguy1","html_url":"https://github.com/freiguy1","followers_url":"https://api.github.com/users/freiguy1/followers","following_url":"https://api.github.com/users/freiguy1/following{/other_user}","gists_url":"https://api.github.com/users/freiguy1/gists{/gist_id}","starred_url":"https://api.github.com/users/freiguy1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freiguy1/subscriptions","organizations_url":"https://api.github.com/users/freiguy1/orgs","repos_url":"https://api.github.com/users/freiguy1/repos","events_url":"https://api.github.com/users/freiguy1/events{/privacy}","received_events_url":"https://api.github.com/users/freiguy1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-10-19T19:44:52Z","updated_at":"2018-10-22T17:38:39Z","closed_at":"2018-10-22T17:38:39Z","author_association":"NONE","body":"I'm working on a little hobby project on a blue pill with rtfm and this lib. I just added some PWM to the project which required calling `constrain` on AFIO.  A few lines after constraining, I want to do something like this:\r\n\r\n```rust\r\np.device.AFIO.exticr3.write(|w| unsafe { w.exti11().bits(0x01) });\r\n```\r\n\r\nTo enable EXTI11 on port B. Constrained AFIO does not have EXTICR3 available, so I tried it this way. However, AFIO has been _moved_ so this line doesn't work and instead I need to do the `unsafe { &*AFIO::ptr() }` bit to get access to it. \r\n\r\nI'm striving to minimize unsafe code. Is this a thing that will eventually be implemented on afio::Parts? Or is there a better way I can be doing this?"},"comment":{"url":"https://api.github.com/repos/japaric/stm32f103xx-hal/issues/comments/431909893","html_url":"https://github.com/japaric/stm32f103xx-hal/issues/108#issuecomment-431909893","issue_url":"https://api.github.com/repos/japaric/stm32f103xx-hal/issues/108","id":431909893,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMTkwOTg5Mw==","user":{"login":"freiguy1","id":613651,"node_id":"MDQ6VXNlcjYxMzY1MQ==","avatar_url":"https://avatars1.githubusercontent.com/u/613651?v=4","gravatar_id":"","url":"https://api.github.com/users/freiguy1","html_url":"https://github.com/freiguy1","followers_url":"https://api.github.com/users/freiguy1/followers","following_url":"https://api.github.com/users/freiguy1/following{/other_user}","gists_url":"https://api.github.com/users/freiguy1/gists{/gist_id}","starred_url":"https://api.github.com/users/freiguy1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freiguy1/subscriptions","organizations_url":"https://api.github.com/users/freiguy1/orgs","repos_url":"https://api.github.com/users/freiguy1/repos","events_url":"https://api.github.com/users/freiguy1/events{/privacy}","received_events_url":"https://api.github.com/users/freiguy1/received_events","type":"User","site_admin":false},"created_at":"2018-10-22T17:38:39Z","updated_at":"2018-10-22T17:38:39Z","author_association":"NONE","body":"PR is available: #113 "}}
{"actor":{"display_login":"freiguy1"}}