Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
cb396827
Commit
cb396827
authored
Apr 07, 2021
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stm32/boards/pllvalues.py: Relax PLLQ constraints on STM32F413 MCUs.
Signed-off-by:
Damien George
<
damien@micropython.org
>
parent
f4340b7e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
ports/stm32/Makefile
ports/stm32/Makefile
+1
-1
ports/stm32/boards/pllvalues.py
ports/stm32/boards/pllvalues.py
+4
-4
No files found.
ports/stm32/Makefile
View file @
cb396827
...
...
@@ -750,7 +750,7 @@ CMSIS_MCU_HDR = $(CMSIS_DIR)/$(CMSIS_MCU_LOWER).h
modmachine.c
:
$(GEN_PLLFREQTABLE_HDR)
$(GEN_PLLFREQTABLE_HDR)
:
$(PLLVALUES) | $(HEADER_BUILD)
$(ECHO)
"GEN
$@
"
$(Q)$(PYTHON)
$(PLLVALUES)
-c
-m
$(
MCU_SERIES
)
file:
$(BOARD_DIR)
/stm32
$(MCU_SERIES)
xx_hal_conf.h
>
$@
$(Q)$(PYTHON)
$(PLLVALUES)
-c
-m
$(
CMSIS_MCU_LOWER
)
file:
$(BOARD_DIR)
/stm32
$(MCU_SERIES)
xx_hal_conf.h
>
$@
$(BUILD)/modstm.o
:
$(GEN_STMCONST_HDR)
# Use a pattern rule here so that make will only call make-stmconst.py once to
...
...
ports/stm32/boards/pllvalues.py
View file @
cb396827
...
...
@@ -240,7 +240,7 @@ def main():
argv
=
sys
.
argv
[
1
:]
c_table
=
False
mcu_series
=
"f4"
mcu_series
=
"
stm32
f4"
hse
=
None
hsi
=
None
...
...
@@ -271,13 +271,13 @@ def main():
hse
=
int
(
argv
[
0
])
# Select MCU parameters
if
mcu_series
==
"h7"
:
if
mcu_series
.
startswith
(
"stm32h7"
)
:
mcu
=
mcu_h7
else
:
mcu
=
mcu_default
# Relax constrai
ght on PLLQ being 48MHz on F7 and H7 MCUs,
which have separate PLLs for 48MHz
relax_pll48
=
mcu_series
in
(
"f7"
,
"h7"
)
# Relax constrai
nt on PLLQ being 48MHz on MCUs
which have separate PLLs for 48MHz
relax_pll48
=
mcu_series
.
startswith
((
"stm32f413"
,
"stm32f7"
,
"stm32h7"
)
)
hse_valid_plls
=
compute_pll_table
(
hse
,
relax_pll48
)
if
hsi
is
not
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment