Skip to content

Commit 2138479

Browse files
committed
Update pin name formatting. PXn -> PX_n
Requested by: stm32duino/Arduino_Core_STM32#81 Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 2c61ba3 commit 2138479

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/genpinmap/genpinmap_arduino.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ def sort_my_lists():
561561
for s in itemlist:
562562
m = re.match(pinregex, s.attributes['Name'].value)
563563
if m:
564-
pin = m.group(0) # pin formatted P<port><number>: PFO
564+
pin = m.group(0)[:2] + '_' + m.group(0)[2:] # pin formatted P<port>_<number>: PF_O
565565
name = s.attributes['Name'].value.strip() # full name: "PF0 / OSC_IN"
566566
if s.attributes['Type'].value == "I/O":
567567
store_pin(pin, name)

0 commit comments

Comments
 (0)