[genpinmap] Fix PinNamesVar.h format

To avoid astyle check issue

Signed-off-by: Frederic.Pillon <frederic.pillon@st.com>
This commit is contained in:
Frederic.Pillon 2019-02-15 14:54:37 +01:00
parent 0c0ccfad6c
commit 1308c7b361

View file

@ -619,7 +619,7 @@ def print_qspi():
def print_syswkup_h():
out_h_file.write(" /* SYS_WKUP */\n")
out_h_file.write("/* SYS_WKUP */\n")
# H7xx and F446 start from 0, inc by 1
num = syswkup_list[0][2].replace("SYS_WKUP", "")
inc = 0
@ -642,10 +642,10 @@ def print_syswkup_h():
num = p[2].replace("SYS_WKUP", "")
if len(num) == 0:
s1 = "#ifdef PWR_WAKEUP_PIN1\n"
s1 += " SYS_WKUP1" # single SYS_WKUP for this product
s1 += "SYS_WKUP1" # single SYS_WKUP for this product
else:
s1 = "#ifdef PWR_WAKEUP_PIN%i\n" % (int(num) + inc)
s1 += " SYS_WKUP" + str(int(num) + inc)
s1 += "SYS_WKUP" + str(int(num) + inc)
s1 += " = " + p[0] + ","
if (inc == 1) and (p[0] != "NC"):
s1 += " /* " + p[2] + " */"