{"action":"created","issue":{"url":"https://api.github.com/repos/contiki-os/contiki/issues/1294","labels_url":"https://api.github.com/repos/contiki-os/contiki/issues/1294/labels{/name}","comments_url":"https://api.github.com/repos/contiki-os/contiki/issues/1294/comments","events_url":"https://api.github.com/repos/contiki-os/contiki/issues/1294/events","html_url":"https://github.com/contiki-os/contiki/issues/1294","id":109354969,"number":1294,"title":"CC26xx & CC13xx ISR Flag Clear Issue","user":{"login":"bkozak-scanimetrics","id":12412857,"avatar_url":"https://avatars.githubusercontent.com/u/12412857?v=3","gravatar_id":"","url":"https://api.github.com/users/bkozak-scanimetrics","html_url":"https://github.com/bkozak-scanimetrics","followers_url":"https://api.github.com/users/bkozak-scanimetrics/followers","following_url":"https://api.github.com/users/bkozak-scanimetrics/following{/other_user}","gists_url":"https://api.github.com/users/bkozak-scanimetrics/gists{/gist_id}","starred_url":"https://api.github.com/users/bkozak-scanimetrics/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bkozak-scanimetrics/subscriptions","organizations_url":"https://api.github.com/users/bkozak-scanimetrics/orgs","repos_url":"https://api.github.com/users/bkozak-scanimetrics/repos","events_url":"https://api.github.com/users/bkozak-scanimetrics/events{/privacy}","received_events_url":"https://api.github.com/users/bkozak-scanimetrics/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/contiki-os/contiki/labels/Platform%20/%20CPU%20/%20ARM%20/%20CC13xx-CC26xx","name":"Platform / CPU / ARM / CC13xx-CC26xx","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-01T18:20:51Z","updated_at":"2015-10-24T18:43:59Z","closed_at":null,"body":"In the radio driver ISR routines, the flag register is getting cleared as follows: ```HWREG(RFC_DBELL_NONBUF_BASE + RFC_DBELL_O_RFCPEIFG) = 0x0 ``` \r\n\r\nThis is a problem because there are multiple flags which can trigger these routines. We could end up missing an event unnecessarily if the following were to occur:\r\n\r\n1. Event A triggers an interrupt\r\n2. The ISR runs, the flag register is read and event A is processed\r\n3. Just before clearing the flag register event B occurs\r\n4. the flag register is cleared and the event B flag is lost"},"comment":{"url":"https://api.github.com/repos/contiki-os/contiki/issues/comments/150840305","html_url":"https://github.com/contiki-os/contiki/issues/1294#issuecomment-150840305","issue_url":"https://api.github.com/repos/contiki-os/contiki/issues/1294","id":150840305,"user":{"login":"g-oikonomou","id":705207,"avatar_url":"https://avatars.githubusercontent.com/u/705207?v=3","gravatar_id":"","url":"https://api.github.com/users/g-oikonomou","html_url":"https://github.com/g-oikonomou","followers_url":"https://api.github.com/users/g-oikonomou/followers","following_url":"https://api.github.com/users/g-oikonomou/following{/other_user}","gists_url":"https://api.github.com/users/g-oikonomou/gists{/gist_id}","starred_url":"https://api.github.com/users/g-oikonomou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/g-oikonomou/subscriptions","organizations_url":"https://api.github.com/users/g-oikonomou/orgs","repos_url":"https://api.github.com/users/g-oikonomou/repos","events_url":"https://api.github.com/users/g-oikonomou/events{/privacy}","received_events_url":"https://api.github.com/users/g-oikonomou/received_events","type":"User","site_admin":false},"created_at":"2015-10-24T18:43:59Z","updated_at":"2015-10-24T18:43:59Z","body":"I'm flagging this as a bug. We should clear the corresponding flag within each if block."}}