-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tmgr library fix (now need testing) #39
Conversation
I quickly looked through your code, so here goes my small code rant^Wreview:
RTFM: https://www.kernel.org/doc/Documentation/CodingStyle You can also use checkstyle.pl from linux kernel dist (running this against the rest of the code is still a big TODO) Once your fix that stuff I'll give it a try to compile against different architectures to see if it works fine and merge. Thanks. |
Now timers looks more like in Linux kernel. Check it out and see docs. Now it needs testing! |
Looks a lot better. Unfortunately, I can't test it right now since I'm in Minsk till the end of the holidays. |
Signed-off-by: Maslov Nikita <[email protected]>
Signed-off-by: Maslov Nikita <[email protected]>
Signed-off-by: Nikita 'webconn' Maslov <[email protected]>
Features of reworked tmgr library: * Cross-platform, tiny task manager/scheduler * Two modes of operation: uptime-based (faster, but limited in device uptime) and countdown-based (a bit slower, but uptime-independent) * In uptime-based mode, the information about system uptime is available and could be used in projects (for debugging, logging etc.) * Time conversion functions (s/ms/us to timer ticks and vice versa) * Basic delay implementation Signed-off-by: Nikita 'webconn' Maslov <[email protected]>
Signed-off-by: Nikita 'webconn' Maslov <[email protected]>
Signed-off-by: Nikita 'webconn' Maslov <[email protected]>
Now structure is a bit closer to Linux kernel timers. See docs for further information. Signed-off-by: Nikita 'webconn' Maslov <[email protected]>
Remove Mode of Operation config entry. Signed-off-by: Nikita 'webconn' Maslov <[email protected]>
Now queue works more correct. Also, tmgr_set_fq() functions removed (you still need to set system timer frequency in menuconfig (see docs) Signed-off-by: Nikita 'webconn' Maslov <[email protected]>
tmgr library fix (now need testing)
Commit 0e4d8aa