{"action":"created","issue":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4371","repository_url":"https://api.github.com/repos/RIOT-OS/RIOT","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4371/labels{/name}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4371/comments","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4371/events","html_url":"https://github.com/RIOT-OS/RIOT/issues/4371","id":119760030,"number":4371,"title":"periph/timer: API inconstency","user":{"login":"OlegHahm","id":1590423,"avatar_url":"https://avatars.githubusercontent.com/u/1590423?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegHahm","html_url":"https://github.com/OlegHahm","followers_url":"https://api.github.com/users/OlegHahm/followers","following_url":"https://api.github.com/users/OlegHahm/following{/other_user}","gists_url":"https://api.github.com/users/OlegHahm/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegHahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegHahm/subscriptions","organizations_url":"https://api.github.com/users/OlegHahm/orgs","repos_url":"https://api.github.com/users/OlegHahm/repos","events_url":"https://api.github.com/users/OlegHahm/events{/privacy}","received_events_url":"https://api.github.com/users/OlegHahm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/API%20CHANGE","name":"API CHANGE","color":"e11d21"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/Device%20driver","name":"Device driver","color":"aaffff"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/enhancement","name":"enhancement","color":"f17070"}],"state":"open","locked":false,"assignee":{"login":"A-Paul","id":12623350,"avatar_url":"https://avatars.githubusercontent.com/u/12623350?v=3","gravatar_id":"","url":"https://api.github.com/users/A-Paul","html_url":"https://github.com/A-Paul","followers_url":"https://api.github.com/users/A-Paul/followers","following_url":"https://api.github.com/users/A-Paul/following{/other_user}","gists_url":"https://api.github.com/users/A-Paul/gists{/gist_id}","starred_url":"https://api.github.com/users/A-Paul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/A-Paul/subscriptions","organizations_url":"https://api.github.com/users/A-Paul/orgs","repos_url":"https://api.github.com/users/A-Paul/repos","events_url":"https://api.github.com/users/A-Paul/events{/privacy}","received_events_url":"https://api.github.com/users/A-Paul/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/13","html_url":"https://github.com/RIOT-OS/RIOT/milestones/Release%202016.04","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/13/labels","id":1447832,"number":13,"title":"Release 2016.04","description":"The next major release.","creator":{"login":"OlegHahm","id":1590423,"avatar_url":"https://avatars.githubusercontent.com/u/1590423?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegHahm","html_url":"https://github.com/OlegHahm","followers_url":"https://api.github.com/users/OlegHahm/followers","following_url":"https://api.github.com/users/OlegHahm/following{/other_user}","gists_url":"https://api.github.com/users/OlegHahm/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegHahm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegHahm/subscriptions","organizations_url":"https://api.github.com/users/OlegHahm/orgs","repos_url":"https://api.github.com/users/OlegHahm/repos","events_url":"https://api.github.com/users/OlegHahm/events{/privacy}","received_events_url":"https://api.github.com/users/OlegHahm/received_events","type":"User","site_admin":false},"open_issues":66,"closed_issues":399,"state":"open","created_at":"2015-12-07T14:56:18Z","updated_at":"2016-03-31T15:03:59Z","due_on":"2016-04-14T22:00:00Z","closed_at":null},"comments":3,"created_at":"2015-12-01T16:53:06Z","updated_at":"2016-03-31T15:13:29Z","closed_at":null,"body":"Reviewing #4089 I realized that `periph/timer` API seems to be inconsistent. `timer_init()` returns 0 on success, while all other functions return 1 on success. I think all periph functions which just return a boolean value should return the same one. Ideally this would be rather a macro like `PERIPH_SUCCESS` than a literal."},"comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments/203981587","html_url":"https://github.com/RIOT-OS/RIOT/issues/4371#issuecomment-203981587","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/4371","id":203981587,"user":{"login":"haukepetersen","id":620834,"avatar_url":"https://avatars.githubusercontent.com/u/620834?v=3","gravatar_id":"","url":"https://api.github.com/users/haukepetersen","html_url":"https://github.com/haukepetersen","followers_url":"https://api.github.com/users/haukepetersen/followers","following_url":"https://api.github.com/users/haukepetersen/following{/other_user}","gists_url":"https://api.github.com/users/haukepetersen/gists{/gist_id}","starred_url":"https://api.github.com/users/haukepetersen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haukepetersen/subscriptions","organizations_url":"https://api.github.com/users/haukepetersen/orgs","repos_url":"https://api.github.com/users/haukepetersen/repos","events_url":"https://api.github.com/users/haukepetersen/events{/privacy}","received_events_url":"https://api.github.com/users/haukepetersen/received_events","type":"User","site_admin":false},"created_at":"2016-03-31T15:13:29Z","updated_at":"2016-03-31T15:13:29Z","body":"all driver interfaces except `spi` and `i2c` have been reworked, and including these two they all have the same return values.\r\n\r\n@OlegHahm: is this enough to close this PR, or do you insist on some macro on top of this?"}}