We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
What is the correct value as input to the kernel/tools/reciprocal.py script? The value in HZ or the value in MHz?
For example, for TIMER_FREQUENCY 24000000:
TIMER_FREQUENCY 24000000
CLK_MAGIC 2863311531llu
CLK_SHIFT 36u
CLK_MAGIC 375299969llu
CLK_SHIFT 53u
I haven't checked all other boards, but surely using the wrong values would mess up timing?
The text was updated successfully, but these errors were encountered:
Looking at the code (assuming USE_KHZ is false) it does:
USE_KHZ
static inline CONST time_t ticksToUs(ticks_t ticks) { /* simulate 64bit division using multiplication by reciprocal */ return (ticks * CLK_MAGIC) >> CLK_SHIFT; }
So it seems that using 24 as input is the correct thing to do and that the odroid defines are wrong.
Not sure what you're supposed to do when you don't have a round MHz value and USE_KHZ is true though.
Sorry, something went wrong.
No branches or pull requests
What is the correct value as input to the kernel/tools/reciprocal.py script? The value in HZ or the value in MHz?
For example, for
TIMER_FREQUENCY 24000000
:CLK_MAGIC 2863311531llu
andCLK_SHIFT 36u
as they used 24 MHz as input.CLK_MAGIC 375299969llu
andCLK_SHIFT 53u
as they used the HZ value as input.I haven't checked all other boards, but surely using the wrong values would mess up timing?
The text was updated successfully, but these errors were encountered: