summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2023-08-09 18:21:15 +1000
committerDamien George <damien@micropython.org>2023-08-16 16:16:40 +1000
commit974f99482cc54fdc9be1623569c46e4be569ebd6 (patch)
treeb2943ea64f469e53c1a948600e57724780655aa9
parent29c022e0f141be4228d9e71469c691daabf372b2 (diff)
renesas-ra/boards: Remove unreachable code in make-pins.py.
Looks like copy-paste from the stm32 make-pins.py, references a function that is not present in the renesas-ra version. Found by Ruff checking F821. Signed-off-by: Angus Gratton <angus@redyak.com.au>
-rw-r--r--ports/renesas-ra/boards/make-pins.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/ports/renesas-ra/boards/make-pins.py b/ports/renesas-ra/boards/make-pins.py
index 1b4588f02..5147d2794 100644
--- a/ports/renesas-ra/boards/make-pins.py
+++ b/ports/renesas-ra/boards/make-pins.py
@@ -220,13 +220,7 @@ class Pins(object):
for named_pin in self.board_pins:
qstr_set |= set([named_pin.name()])
for qstr in sorted(qstr_set):
- cond_var = None
- if qstr.startswith("AF"):
- af_words = qstr.split("_")
- cond_var = conditional_var(af_words[1])
- print_conditional_if(cond_var, file=qstr_file)
print("Q({})".format(qstr), file=qstr_file)
- # print_conditional_endif(cond_var, file=qstr_file)
def print_ad_hdr(self, ad_const_filename):
with open(ad_const_filename, "wt") as ad_const_file: