Skip to content

Commit

Permalink
stm_layout/chip_stm.py: Handle quirky full pin names that omit any ty…
Browse files Browse the repository at this point in the history
…pe of separate between the pin name and OSC32 or BOOT0.
  • Loading branch information
tgree committed Feb 15, 2022
1 parent f75c755 commit be8d8af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions stm_layout/chip_stm.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ def make_chip(part):
# PA11 [PA9] (stm32g050f6p6)
# PC14-OSC32_IN (PC14) (stm32u585qii3)
# PC14/OSC32_IN (stm32f767zit6)
# PC14OSC32_IN (stm32f091rch6)
# PC15OSC32_OUT (stm32f091rch6)
# PF11BOOT0 (stm32f091rch6)
# PC2_C (stm32h745xgh6 has PC2 and PC2_C)
#
# The short name is the initial prefix except in the case of an "_C"
Expand All @@ -245,6 +248,8 @@ def make_chip(part):
short_name = full_name.split('-')[0]
short_name = short_name.split('/')[0]
short_name = short_name.split(' ')[0]
short_name = short_name.split('OSC32_')[0]
short_name = short_name.split('BOOT0')[0]
gpio_key = short_name.split('_')[0]

# Extract the alternate (digital) functions and additional (analog)
Expand Down

0 comments on commit be8d8af

Please sign in to comment.