{"action":"created","issue":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3967","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3967/labels{/name}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3967/comments","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3967/events","html_url":"https://github.com/RIOT-OS/RIOT/issues/3967","id":108291665,"number":3967,"title":"periph/timer: Drop timer_reset() ?","user":{"login":"gebart","id":317506,"avatar_url":"https://avatars.githubusercontent.com/u/317506?v=3","gravatar_id":"","url":"https://api.github.com/users/gebart","html_url":"https://github.com/gebart","followers_url":"https://api.github.com/users/gebart/followers","following_url":"https://api.github.com/users/gebart/following{/other_user}","gists_url":"https://api.github.com/users/gebart/gists{/gist_id}","starred_url":"https://api.github.com/users/gebart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gebart/subscriptions","organizations_url":"https://api.github.com/users/gebart/orgs","repos_url":"https://api.github.com/users/gebart/repos","events_url":"https://api.github.com/users/gebart/events{/privacy}","received_events_url":"https://api.github.com/users/gebart/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/Request%20for%20Comments","name":"Request for Comments","color":"23F823"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/timer","name":"timer","color":"a00070"}],"state":"open","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/10","html_url":"https://github.com/RIOT-OS/RIOT/milestones/Release%20NEXT%20MAJOR","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/milestones/10/labels","id":871004,"number":10,"title":"Release NEXT MAJOR","description":"This is the next major milestone. It gets a valid name if we know the next date to release on.","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":141,"closed_issues":80,"state":"open","created_at":"2014-11-18T10:51:58Z","updated_at":"2015-10-14T08:22:09Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-09-25T09:26:30Z","updated_at":"2015-10-14T19:15:34Z","closed_at":null,"body":"I propose to remove this function from the periph/timer API.\r\n\r\n```c\r\n/**\r\n * @brief Reset the up-counting value to zero for the given timer\r\n *\r\n * Note that this function effects all currently set channels and it can lead to\r\n * non-deterministic timeouts if any channel is active when this function is\r\n * called.\r\n *\r\n * @param[in] dev           the timer to reset\r\n */\r\nvoid timer_reset(tim_t dev);\r\n```\r\n\r\nIt is currently implemented for all periph/timer implementations, but not used anywhere. The rationale behind removing it is that the warning in the API documentation makes this function unsuitable for any kind of reusable code in my opinion. The problem it solves can just as easily be solved by using the xtimer API or using timer stop/start in sequence."},"comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments/148163977","html_url":"https://github.com/RIOT-OS/RIOT/issues/3967#issuecomment-148163977","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/3967","id":148163977,"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-10-14T19:15:34Z","updated_at":"2015-10-14T19:15:34Z","body":"+1, let's get rid of it."}}