Commit a107d29
committed
Allow F_CPU redefinition
To avoid any issue with `F_CPU` value, it is defined by default to
`SystemCoreClock` value which is updated automatically after each
clock configuration update.
Some libraries use `F_CPU` at build time for conditional purpose
(ex to #612).
This commit allow to redefine it at build time using `build_opt.h`
or `hal_conf_extra.h`:
https://github.com/stm32duino/wiki/wiki/Custom-definitions
then it will be possible to define it as a constant.
Important note:
**User have to ensure to set it to the proper value.**
Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>1 parent 7580479 commit a107d29
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
| |||
53 | 52 | | |
54 | 53 | | |
55 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| |||
0 commit comments