Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8806d23

Browse files
committed
CI(stm32variant): fix syswkup list
This partially revert this commit:ci(stm32variant): dynamically manage syswkup list575baf5Warning raised if the fixed value are too small.Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
1 parentab0548c commit8806d23

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎CI/update/stm32variant.py‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1231,15 +1231,21 @@ def print_peripheral():
12311231
# PinNamesVar.h generation
12321232
defmanage_syswkup():
12331233
iflen(syswkup_list)!=0:
1234-
# Find the max range of SYS_WKUP
1234+
# Find the max range of SYS_WKUP to ensure it doesn't exceed
1235+
# the current maximum range of SYS_WKUP used by STM32LowPower
12351236
max_range=syswkup_list[-1][2].replace("SYS_WKUP","")
12361237
max_range=int(max_range)ifmax_rangeelse1
12371238
# F446 start from 0
12381239
base_index=1
12391240
ifsyswkup_list[0][2].replace("SYS_WKUP","")=="0":
12401241
base_index=0
12411242
max_range+=1
1242-
syswkup_pins_list= [[]for_inrange(max_range)]
1243+
ifmax_range>8:
1244+
print(
1245+
f"Error: SYS_WKUP range exceeds the current maximum range of 8 -->{max_range}."
1246+
)
1247+
exit(1)
1248+
syswkup_pins_list= [[]for_inrange(8)]
12431249
forpinsyswkup_list:
12441250
num=p[2].replace("SYS_WKUP","")
12451251
num=int(num)ifnumelse1

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp