{"action":"created","issue":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2926","labels_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2926/labels{/name}","comments_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2926/comments","events_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2926/events","html_url":"https://github.com/RIOT-OS/RIOT/pull/2926","id":73622386,"number":2926,"title":"sys: add new timer subsystem","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},"labels":[{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/core","name":"core","color":"0052cc"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/enhancement","name":"enhancement","color":"f17070"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/major","name":"major","color":"ff0000"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/new%20feature","name":"new feature","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/TimerTaskForce","name":"TimerTaskForce","color":"f0c0ff"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/Waiting%20For%20Other%20PR","name":"Waiting For Other PR","color":"009800"},{"url":"https://api.github.com/repos/RIOT-OS/RIOT/labels/WIP","name":"WIP","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-05-06T13:34:51Z","updated_at":"2015-05-26T11:41:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/pulls/2926","html_url":"https://github.com/RIOT-OS/RIOT/pull/2926","diff_url":"https://github.com/RIOT-OS/RIOT/pull/2926.diff","patch_url":"https://github.com/RIOT-OS/RIOT/pull/2926.patch"},"body":"This is my work-in-progress new timer implementation.\r\n\r\nPlease take a look...\r\n\r\nThe working title is \"wtimer\", but as that is hard to pronounce in english, I'm very open to suggestions.\r\n\r\nIn order to actually try the code, I've adapted vtimer_msg to this API, the test is in test/wtimer_msg.\r\n\r\n(PR depends on #2870 so it can be tested on native).\r\n\r\n*edit*\r\nTo do:\r\n- [ ] support for base timer with a speed != 1MHz\r\n- [ ] removal of timers\r\n- [ ] some of the convenience functions are only available in 32bit versions\r\n- [ ] some functions are missing\r\n- [ ] setting timers from whithin callbacks needs special care\r\n- [ ] use slow low power timer or RTC if available\r\n- [ ] per-platform tuning values"},"comment":{"url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/comments/105496095","html_url":"https://github.com/RIOT-OS/RIOT/pull/2926#issuecomment-105496095","issue_url":"https://api.github.com/repos/RIOT-OS/RIOT/issues/2926","id":105496095,"user":{"login":"lightblu","id":3353324,"avatar_url":"https://avatars.githubusercontent.com/u/3353324?v=3","gravatar_id":"","url":"https://api.github.com/users/lightblu","html_url":"https://github.com/lightblu","followers_url":"https://api.github.com/users/lightblu/followers","following_url":"https://api.github.com/users/lightblu/following{/other_user}","gists_url":"https://api.github.com/users/lightblu/gists{/gist_id}","starred_url":"https://api.github.com/users/lightblu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lightblu/subscriptions","organizations_url":"https://api.github.com/users/lightblu/orgs","repos_url":"https://api.github.com/users/lightblu/repos","events_url":"https://api.github.com/users/lightblu/events{/privacy}","received_events_url":"https://api.github.com/users/lightblu/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T11:41:28Z","updated_at":"2015-05-26T11:41:28Z","body":">> Hm, didn't we talk about that relying on a 1MHz timer is not a good idea?\r\n\r\n> Uh, I thought that we agreed that we could get a timer close (small factor) to that and then integrate this factor.\r\n\r\nI'm wondering too if this is not a too limiting decision. Can really every platform so far provide a 1 MHz timer? Because it looks like Freescale's Freedom boards are set up so that the low power timer could only use the 32 kHz clock as source in the low power modes (but I have to recheck that in detail).\r\n\r\n\r\n"}}