is there a MACRO definition tell target board core frequency? #1457
-
Previously I use F_CPU for other architecture (samd), but on stm32 core, the F_CPU is SystemCoreClock, which is not predefined value. my question is that is there a MACRO definition tell target board core frequency? I need the value for compiler to pre-calculate the proper clock cycle for systick. |
Beta Was this translation helpful? Give feedback.
Answered by
ABOSTM
Aug 2, 2021
Replies: 1 comment
-
Hi @xiongyu0523, |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
fpistm
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @xiongyu0523,
Thanks to PR: #613
you can now override definition of F_CPU with a predefine value of your choice (of course it must match the clock value which will be configured).