Skip to content

Commit

Permalink
added the link to the stm32duino repo
Browse files Browse the repository at this point in the history
  • Loading branch information
askuric committed Feb 26, 2024
1 parent 477be98 commit 0dc221b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: clone stm32duino
run: git clone https://github.com/stm32duino/Arduino_Core_STM32.git
run: git clone https://github.com/stm32duino/Arduino_Core_STM32.git --branch 2.7.1 --single-branch
- name: generate pinout
run: |
python3 parser.py
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: clone stm32duino
run: git clone https://github.com/stm32duino/Arduino_Core_STM32.git
run: git clone https://github.com/stm32duino/Arduino_Core_STM32.git --branch 2.7.1 --single-branch
- name: generate pinout
run: |
python3 parser.py
Expand Down
4 changes: 4 additions & 0 deletions parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ def process_family(family_path, family_name):

# Path to the directory containing family folders
families_path = 'Arduino_Core_STM32/variants/'
url_to_repo = 'https://github.com/stm32duino/Arduino_Core_STM32/blob/2.7.1/variants'

# Create a main page to list all family-specific main pages
main_page_content = []
Expand Down Expand Up @@ -174,8 +175,11 @@ def process_family(family_path, family_name):
f.write(f'title: {subfamily_folder} Pinout\n')
f.write('has_toc: false\n')
f.write('has_children: false\n')
f.write('nav_exclude: true\n')
f.write('---\n\n')

f.write(f" See more info in the [STM32duino repository]({url_to_repo}/{family_folder}/{subfamily_folder}/PeripheralPins.c)\n\n")

f.write("## PWM Timer Pins\n\n")

table_headers = ["Pin", "PWM Timer", "Channel"]
Expand Down

0 comments on commit 0dc221b

Please sign in to comment.