Rename Rev_1_0 to USB HW Rev and Rev_0_3 to Legacy HW Rev in workflows and documentation also rename corresponding folders
No files matched your search
@@ -29,14 +29,14 @@ jobs:
|
|||||||
- name: Init submodules to get tinyUSB stack
|
- name: Init submodules to get tinyUSB stack
|
||||||
run: ls && cd pico-sdk && git submodule update --init && cd ..
|
run: ls && cd pico-sdk && git submodule update --init && cd ..
|
||||||
|
|
||||||
- name: Configure and run CMake for Hardware Rev 0.3
|
- name: Configure and run CMake for Legacy Hardware Revision
|
||||||
run: cmake -B ${{github.workspace}}/Software/build-Rev-0_3 -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-Rev-0_3
|
run: cmake -B ${{github.workspace}}/Software/build-Legacy -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-Legacy
|
||||||
|
|
||||||
- name: Build for Hardware Rev 0.3
|
- name: Build for Legacy Hardware Revision
|
||||||
run: cmake --build ${{github.workspace}}/Software/build-Rev-0_3 --config ${{env.BUILD_TYPE}}
|
run: cmake --build ${{github.workspace}}/Software/build-Legacy --config ${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
- name: Configure and run CMake for Hardware Rev 1.0
|
- name: Configure and run CMake for USB Hardware Revision
|
||||||
run: cmake -B ${{github.workspace}}/Software/build-Rev-1_0 -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-Rev-1_0
|
run: cmake -B ${{github.workspace}}/Software/build-USB -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-USB
|
||||||
|
|
||||||
- name: Build for Hardware Rev 1.0
|
- name: Build for USB Hardware Revision
|
||||||
run: cmake --build ${{github.workspace}}/Software/build-Rev-1_0 --config ${{env.BUILD_TYPE}}
|
run: cmake --build ${{github.workspace}}/Software/build-USB --config ${{env.BUILD_TYPE}}
|
||||||
@@ -16,31 +16,31 @@ jobs:
|
|||||||
- name: Check out the repo
|
- name: Check out the repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Render PCB image and .mp4 (Rev 1.0)
|
- name: Render PCB image and .mp4 (USB Hardware Revision)
|
||||||
uses: linalinn/kicad-render@main
|
uses: linalinn/kicad-render@main
|
||||||
with:
|
with:
|
||||||
pcb_file: KiCad/Rev_1_0/RP2040-Decoder.kicad_pcb
|
pcb_file: KiCad/USB/RP2040-Decoder.kicad_pcb
|
||||||
output_path: ${{ github.workspace }}/images_rev_1_0
|
output_path: ${{ github.workspace }}/images_USB
|
||||||
animation: mp4
|
animation: mp4
|
||||||
|
|
||||||
- name: Render PCB image and .mp4 (Rev 0.3)
|
- name: Render PCB image and .mp4 (Legacy Hardware Revision)
|
||||||
uses: linalinn/kicad-render@main
|
uses: linalinn/kicad-render@main
|
||||||
with:
|
with:
|
||||||
pcb_file: KiCad/Rev_0_3/RP2040-Decoder.kicad_pcb
|
pcb_file: KiCad/Legacy/RP2040-Decoder.kicad_pcb
|
||||||
output_path: ${{ github.workspace }}/images_rev_0_3
|
output_path: ${{ github.workspace }}/images_Legacy
|
||||||
animation: mp4
|
animation: mp4
|
||||||
|
|
||||||
- name: Upload images and mp4 as artifact (Rev 1.0)
|
- name: Upload images and mp4 as artifact (USB Hardware Revision)
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pcb-images_rev_1_0
|
name: pcb-images_USB
|
||||||
path: images_rev_1_0/
|
path: images_USB/
|
||||||
|
|
||||||
- name: Upload images and mp4 as artifact (Rev 0.3)
|
- name: Upload images and mp4 as artifact (Legacy Hardware Revision)
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pcb-images_rev_0_3
|
name: pcb-images_Legacy
|
||||||
path: images_rev_0_3/
|
path: images_Legacy/
|
||||||
|
|
||||||
deploy-pages-main:
|
deploy-pages-main:
|
||||||
if: github.ref == 'refs/heads/main' # Only deploy on 'main' branch
|
if: github.ref == 'refs/heads/main' # Only deploy on 'main' branch
|
||||||
@@ -48,33 +48,33 @@ jobs:
|
|||||||
needs: render-images
|
needs: render-images
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download pcb-images_rev_1_0 artifact
|
- name: Download pcb-images_USB artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pcb-images_rev_1_0
|
name: pcb-images_USB
|
||||||
path: images_rev_1_0/
|
path: images_USB/
|
||||||
|
|
||||||
- name: Download pcb-images_rev_0_3 artifact
|
- name: Download pcb-images_Legacy artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pcb-images_rev_0_3
|
name: pcb-images_Legacy
|
||||||
path: images_rev_0_3/
|
path: images_Legacy/
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./images_rev_1_0
|
publish_dir: ./images_USB
|
||||||
publish_branch: gh-pages # Specify the target branch (gh-pages in this case)
|
publish_branch: gh-pages # Specify the target branch (gh-pages in this case)
|
||||||
destination_dir: img_rev_1_0
|
destination_dir: img_USB
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./images_rev_0_3
|
publish_dir: ./images_Legacy
|
||||||
publish_branch: gh-pages # Specify the target branch (gh-pages in this case)
|
publish_branch: gh-pages # Specify the target branch (gh-pages in this case)
|
||||||
destination_dir: img_rev_0_3
|
destination_dir: img_Legacy
|
||||||
|
|
||||||
deploy-pages-dev:
|
deploy-pages-dev:
|
||||||
if: github.ref == 'refs/heads/dev' # Only deploy on 'dev' branch
|
if: github.ref == 'refs/heads/dev' # Only deploy on 'dev' branch
|
||||||
@@ -82,30 +82,30 @@ jobs:
|
|||||||
needs: render-images
|
needs: render-images
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download pcb-images_rev_1_0 artifact
|
- name: Download pcb-images_USB artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pcb-images_rev_1_0
|
name: pcb-images_USB
|
||||||
path: images_rev_1_0/
|
path: images_USB/
|
||||||
|
|
||||||
- name: Download pcb-images_rev_0_3 artifact
|
- name: Download pcb-images_Legacy artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: pcb-images_rev_0_3
|
name: pcb-images_Legacy
|
||||||
path: images_rev_0_3/
|
path: images_Legacy/
|
||||||
|
|
||||||
- name: Deploy Rev 1.0
|
- name: Deploy USB Hardware Revision
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./images_rev_1_0
|
publish_dir: ./images_USB
|
||||||
publish_branch: gh-pages-dev # Specify the target branch (gh-pages-dev in this case)
|
publish_branch: gh-pages-dev # Specify the target branch (gh-pages-dev in this case)
|
||||||
destination_dir: img_rev_1_0
|
destination_dir: img_USB
|
||||||
|
|
||||||
- name: Deploy Rev 0.3
|
- name: Deploy Legacy Hardware Revision
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
publish_dir: ./images_rev_0_3
|
publish_dir: ./images_Legacy
|
||||||
publish_branch: gh-pages-dev # Specify the target branch (gh-pages-dev in this case)
|
publish_branch: gh-pages-dev # Specify the target branch (gh-pages-dev in this case)
|
||||||
destination_dir: img_rev_0_3
|
destination_dir: img_Legacy
|
||||||
@@ -24,35 +24,35 @@ jobs:
|
|||||||
- name: Init submodules to get tinyUSB stack
|
- name: Init submodules to get tinyUSB stack
|
||||||
run: ls && cd pico-sdk && git submodule update --init && cd ..
|
run: ls && cd pico-sdk && git submodule update --init && cd ..
|
||||||
|
|
||||||
- name: Configure and run CMake for Hardware Rev 0.3
|
- name: Configure and run CMake for Legacy Hardware Revision
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||||
run: cmake -B ${{github.workspace}}/Software/build-Rev-0_3 -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-Rev-0_3
|
run: cmake -B ${{github.workspace}}/Software/build-Legacy -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-Legacy
|
||||||
|
|
||||||
- name: Build for Hardware Rev 0.3
|
- name: Build for Legacy Hardware Revision
|
||||||
# Build your program with the given configuration
|
# Build your program with the given configuration
|
||||||
run: cmake --build ${{github.workspace}}/Software/build-Rev-0_3 --config ${{env.BUILD_TYPE}}
|
run: cmake --build ${{github.workspace}}/Software/build-Legacy --config ${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
- name: Configure and run CMake for Hardware Rev 1.0
|
- name: Configure and run CMake for USB Hardware Revision
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||||
run: cmake -B ${{github.workspace}}/Software/build-Rev-1_0 -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-Rev-1_0
|
run: cmake -B ${{github.workspace}}/Software/build-USB -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-USB
|
||||||
|
|
||||||
- name: Build for Hardware Rev 1.0
|
- name: Build for Hardware for USB Hardware Revision
|
||||||
# Build your program with the given configuration
|
# Build your program with the given configuration
|
||||||
run: cmake --build ${{github.workspace}}/Software/build-Rev-1_0 --config ${{env.BUILD_TYPE}}
|
run: cmake --build ${{github.workspace}}/Software/build-USB --config ${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
- name: Upload build files as artifact Rev 0.3
|
- name: Upload build files as artifact for Legacy Hardware Revision
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build_files_Rev-0_3
|
name: build_files_Legacy
|
||||||
path: ${{github.workspace}}/Software/build-Rev-0_3
|
path: ${{github.workspace}}/Software/build-Legacy
|
||||||
|
|
||||||
- name: Upload build files as artifact Rev 1.0
|
- name: Upload build files as artifact for USB Hardware Revision
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build_files_Rev-1_0
|
name: build_files_USB
|
||||||
path: ${{github.workspace}}/Software/build-Rev-1_0
|
path: ${{github.workspace}}/Software/build-USB
|
||||||
|
|
||||||
generate-fabrication-files:
|
generate-fabrication-files:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -74,14 +74,14 @@ jobs:
|
|||||||
- name: Run fab toolkit CLI
|
- name: Run fab toolkit CLI
|
||||||
run: |
|
run: |
|
||||||
cd Fabrication-Toolkit
|
cd Fabrication-Toolkit
|
||||||
python3 -m plugins.cli -p ../KiCad/Rev_1_0/RP2040-Decoder.kicad_pcb --autoTranslate --autoFill
|
python3 -m plugins.cli -p ../KiCad/USB/RP2040-Decoder.kicad_pcb --autoTranslate --autoFill
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: fab_outputs_rev_1_0
|
name: fab_outputs_USB
|
||||||
path: ./KiCad/Rev_1_0/production
|
path: ./KiCad/USB/production
|
||||||
|
|
||||||
prerelease:
|
prerelease:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -93,32 +93,32 @@ jobs:
|
|||||||
- name: Download fabrication outputs artifact
|
- name: Download fabrication outputs artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: fab_outputs_rev_1_0
|
name: fab_outputs_USB
|
||||||
path: fab_outputs_rev_1_0
|
path: fab_outputs_USB
|
||||||
|
|
||||||
- name: Download build files artifact for Rev 0.3
|
- name: Download build files artifact for Legacy Hardware Revision
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build_files_Rev-0_3
|
name: build_files_Legacy
|
||||||
path: build_files_Rev-0_3
|
path: build_files_Legacy
|
||||||
|
|
||||||
- name: Download build files artifact for Rev 1.0
|
- name: Download build files artifact for USB Hardware Revision
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build_files_Rev-1_0
|
name: build_files_USB
|
||||||
path: build_files_Rev-1_0
|
path: build_files_USB
|
||||||
|
|
||||||
- name: ls
|
- name: ls
|
||||||
run: ls
|
run: ls
|
||||||
|
|
||||||
- name: Zip fabrication outputs
|
- name: Zip fabrication outputs
|
||||||
run: zip -r FABRICATION_OUTPUTS-REV-1_0.zip fab_outputs_rev_1_0
|
run: zip -r FABRICATION_OUTPUTS-USB.zip fab_outputs_USB
|
||||||
|
|
||||||
- name: Zip Rev 0.3 build files
|
- name: Zip SW_BUILD-Legacy files
|
||||||
run: zip -r SW_BUILD-REV-0_3.zip build_files_Rev-0_3
|
run: zip -r SW_BUILD-Legacy.zip build_files_Legacy
|
||||||
|
|
||||||
- name: Zip Rev 1.0 build files
|
- name: Zip SW_BUILD-USB files
|
||||||
run: zip -r SW_BUILD-REV-1_0.zip build_files_Rev-1_0
|
run: zip -r SW_BUILD-USB.zip build_files_USB
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
@@ -126,6 +126,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
prerelease: true
|
prerelease: true
|
||||||
files: |
|
files: |
|
||||||
SW_BUILD-REV-0_3.zip
|
SW_BUILD-Legacy.zip
|
||||||
SW_BUILD-REV-1_0.zip
|
SW_BUILD-USB.zip
|
||||||
FABRICATION_OUTPUTS-REV-1_0.zip
|
FABRICATION_OUTPUTS-USB.zip
|
||||||
@@ -25,35 +25,35 @@ jobs:
|
|||||||
- name: Init submodules to get tinyUSB stack
|
- name: Init submodules to get tinyUSB stack
|
||||||
run: ls && cd pico-sdk && git submodule update --init && cd ..
|
run: ls && cd pico-sdk && git submodule update --init && cd ..
|
||||||
|
|
||||||
- name: Configure and run CMake for Hardware Rev 0.3
|
- name: Configure and run CMake for Legacy Hardware Revision
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||||
run: cmake -B ${{github.workspace}}/Software/build-Rev-0_3 -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-Rev-0_3
|
run: cmake -B ${{github.workspace}}/Software/build-Legacy -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-Legacy
|
||||||
|
|
||||||
- name: Build for Hardware Rev 0.3
|
- name: Build for Legacy Hardware Revision
|
||||||
# Build your program with the given configuration
|
# Build your program with the given configuration
|
||||||
run: cmake --build ${{github.workspace}}/Software/build-Rev-0_3 --config ${{env.BUILD_TYPE}}
|
run: cmake --build ${{github.workspace}}/Software/build-Legacy --config ${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
- name: Configure and run CMake for Hardware Rev 1.0
|
- name: Configure and run CMake for USB Hardware Revision
|
||||||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
|
||||||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
|
||||||
run: cmake -B ${{github.workspace}}/Software/build-Rev-1_0 -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-Rev-1_0
|
run: cmake -B ${{github.workspace}}/Software/build-USB -S ${{github.workspace}}/Software -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICO_BOARD=RP2040-Decoder-board-USB
|
||||||
|
|
||||||
- name: Build for Hardware Rev 1.0
|
- name: Build for USB Hardware Revision
|
||||||
# Build your program with the given configuration
|
# Build your program with the given configuration
|
||||||
run: cmake --build ${{github.workspace}}/Software/build-Rev-1_0 --config ${{env.BUILD_TYPE}}
|
run: cmake --build ${{github.workspace}}/Software/build-USB --config ${{env.BUILD_TYPE}}
|
||||||
|
|
||||||
- name: Upload build files as artifact Rev 0.3
|
- name: Upload build files as artifact for Legacy Hardware Revision
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build_files_Rev-0_3
|
name: build_files_Legacy
|
||||||
path: ${{github.workspace}}/Software/build-Rev-0_3
|
path: ${{github.workspace}}/Software/build-Legacy
|
||||||
|
|
||||||
- name: Upload build files as artifact Rev 1.0
|
- name: Upload build files as artifact for USB Hardware Revision
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build_files_Rev-1_0
|
name: build_files_USB
|
||||||
path: ${{github.workspace}}/Software/build-Rev-1_0
|
path: ${{github.workspace}}/Software/build-USB
|
||||||
|
|
||||||
generate-fabrication-files:
|
generate-fabrication-files:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -75,14 +75,14 @@ jobs:
|
|||||||
- name: Run fab toolkit CLI
|
- name: Run fab toolkit CLI
|
||||||
run: |
|
run: |
|
||||||
cd Fabrication-Toolkit
|
cd Fabrication-Toolkit
|
||||||
python3 -m plugins.cli -p ../KiCad/Rev_1_0/RP2040-Decoder.kicad_pcb --autoTranslate --autoFill
|
python3 -m plugins.cli -p ../KiCad/USB/RP2040-Decoder.kicad_pcb --autoTranslate --autoFill
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: fab_outputs_rev_1_0
|
name: fab_outputs_USB
|
||||||
path: ./KiCad/Rev_1_0/production
|
path: ./KiCad/USB/production
|
||||||
|
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -94,38 +94,38 @@ jobs:
|
|||||||
- name: Download fabrication outputs artifact
|
- name: Download fabrication outputs artifact
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: fab_outputs_rev_1_0
|
name: fab_outputs_USB
|
||||||
path: fab_outputs_rev_1_0
|
path: fab_outputs_USB
|
||||||
|
|
||||||
- name: Download build files artifact for Rev 0.3
|
- name: Download build files artifact for Legacy Hardware Revision
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build_files_Rev-0_3
|
name: build_files_Legacy
|
||||||
path: build_files_Rev-0_3
|
path: build_files_Legacy
|
||||||
|
|
||||||
- name: Download build files artifact for Rev 1.0
|
- name: Download build files artifact for USB Hardware Revision
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: build_files_Rev-1_0
|
name: build_files_USB
|
||||||
path: build_files_Rev-1_0
|
path: build_files_USB
|
||||||
|
|
||||||
- name: ls
|
- name: ls
|
||||||
run: ls
|
run: ls
|
||||||
|
|
||||||
- name: Zip fabrication outputs
|
- name: Zip fabrication outputs
|
||||||
run: zip -r FABRICATION_OUTPUTS-REV-1_0.zip fab_outputs_rev_1_0
|
run: zip -r FABRICATION_OUTPUTS-USB.zip fab_outputs_USB
|
||||||
|
|
||||||
- name: Zip Rev 0.3 build files
|
- name: Zip SW_BUILD-Legacy files
|
||||||
run: zip -r SW_BUILD-REV-0_3.zip build_files_Rev-0_3
|
run: zip -r SW_BUILD-Legacy.zip build_files_Legacy
|
||||||
|
|
||||||
- name: Zip Rev 1.0 build files
|
- name: Zip SW_BUILD-USB files
|
||||||
run: zip -r SW_BUILD-REV-1_0.zip build_files_Rev-1_0
|
run: zip -r SW_BUILD-USB.zip build_files_USB
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
with:
|
with:
|
||||||
files: |
|
files: |
|
||||||
SW_BUILD-REV-0_3.zip
|
SW_BUILD-Legacy.zip
|
||||||
SW_BUILD-REV-1_0.zip
|
SW_BUILD-USB.zip
|
||||||
FABRICATION_OUTPUTS-REV-1_0.zip
|
FABRICATION_OUTPUTS-USB.zip
|
||||||
@@ -30,15 +30,15 @@ License
|
|||||||
|
|
||||||
|
|
||||||
------------
|
------------
|
||||||
Rev 1.0
|
USB hardware version
|
||||||
<div style="display: flex; justify-content: space-between; align-items: center;">
|
<div style="display: flex; justify-content: space-between; align-items: center;">
|
||||||
<img src="https://raw.githubusercontent.com/gab-k/RP2040-Decoder/refs/heads/gh-pages-dev/img_rev_1_0/top.png" alt="Image 1" style="width: 45%;"/>
|
<img src="https://raw.githubusercontent.com/gab-k/RP2040-Decoder/refs/heads/gh-pages-dev/img_USB/top.png" alt="Image 1" style="width: 45%;"/>
|
||||||
<img src="https://raw.githubusercontent.com/gab-k/RP2040-Decoder/refs/heads/gh-pages-dev/img_rev_1_0/bottom.png" alt="Image 2" style="width: 45%;"/>
|
<img src="https://raw.githubusercontent.com/gab-k/RP2040-Decoder/refs/heads/gh-pages-dev/img_USB/bottom.png" alt="Image 2" style="width: 45%;"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
Rev 0.3
|
Legacy hardware version
|
||||||
<div style="display: flex; justify-content: space-between; align-items: center;">
|
<div style="display: flex; justify-content: space-between; align-items: center;">
|
||||||
<img src="https://raw.githubusercontent.com/gab-k/RP2040-Decoder/refs/heads/gh-pages-dev/img_rev_0_3/top.png" alt="Image 1" style="width: 45%;"/>
|
<img src="https://raw.githubusercontent.com/gab-k/RP2040-Decoder/refs/heads/gh-pages-dev/img_Legacy/top.png" alt="Image 1" style="width: 45%;"/>
|
||||||
<img src="https://raw.githubusercontent.com/gab-k/RP2040-Decoder/refs/heads/gh-pages-dev/img_rev_0_3/bottom.png" alt="Image 2" style="width: 45%;"/>
|
<img src="https://raw.githubusercontent.com/gab-k/RP2040-Decoder/refs/heads/gh-pages-dev/img_Legacy/bottom.png" alt="Image 2" style="width: 45%;"/>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -26,9 +26,9 @@ endif()
|
|||||||
set(PICO_BOARD_HEADER_DIRS ${CMAKE_SOURCE_DIR})
|
set(PICO_BOARD_HEADER_DIRS ${CMAKE_SOURCE_DIR})
|
||||||
# Board type selection:
|
# Board type selection:
|
||||||
#
|
#
|
||||||
# Please select RP2040-Decoder-board-Rev-1_0 for Rev >= 1.0 or RP2040-Decoder-board-Rev-0_3 for Rev <= 0.3
|
# Please select RP2040-Decoder-board-USB for Rev >= 1.0 or RP2040-Decoder-board-Legacy for Rev <= 0.3
|
||||||
# running cmake with -DPICO_BOARD=RP2040-Decoder-board-Rev-X_Y explicitly from command line overrides this setting
|
# running cmake with -DPICO_BOARD=RP2040-Decoder-board-*** explicitly from command line overrides this setting
|
||||||
set(PICO_BOARD RP2040-Decoder-board-Rev-1_0 CACHE STRING "Board type")
|
set(PICO_BOARD RP2040-Decoder-board-USB CACHE STRING "Board type")
|
||||||
|
|
||||||
# Pull in Raspberry Pi Pico SDK (must be before project)
|
# Pull in Raspberry Pi Pico SDK (must be before project)
|
||||||
include(pico_sdk_import.cmake)
|
include(pico_sdk_import.cmake)
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ The easiest way to do this is to just use `Visual Studio Code <https://code.visu
|
|||||||
The `official documentation <https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#vscode-extension>`_ of the Pi Pico does a great job of explaining this in detail.
|
The `official documentation <https://datasheets.raspberrypi.com/pico/getting-started-with-pico.pdf#vscode-extension>`_ of the Pi Pico does a great job of explaining this in detail.
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
- Make sure to choose the correct board definition file in your CMakeLists.txt file for example ``RP2040-Decoder-board-Rev-1_0`` for Hardware Rev 1.0.
|
- Make sure to choose the correct board definition file in your CMakeLists.txt file ``RP2040-Decoder-board-USB`` for the USB Hardware or ``RP2040-Decoder-board-Legacy`` for the old legacy version without usb.
|
||||||
- In VSCode open the "Software" subdirectory for the extension to detect you project automatically.
|
- In VSCode open the "Software" subdirectory for the extension to detect you project automatically.
|
||||||
|
|
||||||
.. _flashing_the_software:
|
.. _flashing_the_software:
|
||||||
@@ -70,8 +70,8 @@ The most relevant sections in the book are `Chapter 4.3. Debug <https://datashee
|
|||||||
----------------------------------
|
----------------------------------
|
||||||
|
|
||||||
| Please refer to the hardware section for your board:
|
| Please refer to the hardware section for your board:
|
||||||
| :ref:`Wiring Rev 1.0 <wiring_rev_1_0>`
|
| :ref:`Wiring USB Hardware Revision <wiring_USB>`
|
||||||
| :ref:`Wiring Rev 0.3 <wiring_rev_0_3>`
|
| :ref:`Wiring Legacy Hardware Revision <wiring_Legacy>`
|
||||||
|
|
||||||
6. Resolving issues
|
6. Resolving issues
|
||||||
----------------------------------
|
----------------------------------
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
Overview
|
Overview
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_0_3/Block_Diagram_Hardware.svg
|
.. figure:: ../../../../svg/hw/Legacy/Block_Diagram_Hardware.svg
|
||||||
:alt: Block Diagram
|
:alt: Block Diagram
|
||||||
:align: center
|
:align: center
|
||||||
|
|
||||||
@@ -51,7 +51,7 @@ Electrical Characteristics
|
|||||||
Input Stage
|
Input Stage
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_0_3/Input_Stage.svg
|
.. figure:: ../../../../svg/hw/Legacy/Input_Stage.svg
|
||||||
:alt: Input Stage
|
:alt: Input Stage
|
||||||
:align: center
|
:align: center
|
||||||
|
|
||||||
@@ -64,7 +64,7 @@ The MOSFET on the right effectively translates the rather high DCC voltage to a
|
|||||||
Motor Driver
|
Motor Driver
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_0_3/Motor_Driver.svg
|
.. figure:: ../../../../svg/hw/Legacy/Motor_Driver.svg
|
||||||
:alt: Motor Driver
|
:alt: Motor Driver
|
||||||
:align: center
|
:align: center
|
||||||
|
|
||||||
@@ -75,7 +75,7 @@ The Motor Driver is a special H-Bridge IC that is made for DC motors. To control
|
|||||||
Auxiliary Outputs
|
Auxiliary Outputs
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_0_3/Aux_Outputs.svg
|
.. figure:: ../../../../svg/hw/Legacy/Aux_Outputs.svg
|
||||||
:alt: Auxiliary Outputs
|
:alt: Auxiliary Outputs
|
||||||
:align: center
|
:align: center
|
||||||
|
|
||||||
@@ -93,7 +93,7 @@ To switch lighter loads, six GPIO soldering pads are connected to GPIO0 to GPIO5
|
|||||||
Microcontroller
|
Microcontroller
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_0_3/Microcontroller.svg
|
.. figure:: ../../../../svg/hw/Legacy/Microcontroller.svg
|
||||||
:alt: Microcontroller
|
:alt: Microcontroller
|
||||||
:align: center
|
:align: center
|
||||||
|
|
||||||
@@ -104,19 +104,19 @@ The Microcontroller needs a crystal oscillator for its clock. External flash mem
|
|||||||
Complete Schematic
|
Complete Schematic
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_0_3/RP2040-Decoder.svg
|
.. figure:: ../../../../svg/hw/Legacy/RP2040-Decoder.svg
|
||||||
:alt: Complete Schematic
|
:alt: Complete Schematic
|
||||||
:align: center
|
:align: center
|
||||||
|
|
||||||
Complete Schematic
|
Complete Schematic
|
||||||
|
|
||||||
|
|
||||||
.. _wiring_rev_0_3:
|
.. _wiring_Legacy:
|
||||||
|
|
||||||
Wiring the Decoder
|
Wiring the Decoder
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_0_3/Wiring_diagram.svg
|
.. figure:: ../../../../svg/hw/Legacy/Wiring_diagram.svg
|
||||||
:align: center
|
:align: center
|
||||||
:width: 700
|
:width: 700
|
||||||
:alt: Wiring Diagram
|
:alt: Wiring Diagram
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
Overview
|
Overview
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_1_0/Block_Diagram_Hardware.svg
|
.. figure:: ../../../../svg/hw/USB/Block_Diagram_Hardware.svg
|
||||||
:align: center
|
:align: center
|
||||||
:alt: Block Diagram
|
:alt: Block Diagram
|
||||||
|
|
||||||
@@ -55,7 +55,7 @@ Electrical Characteristics
|
|||||||
Input Stage
|
Input Stage
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_1_0/Input_Stage.svg
|
.. figure:: ../../../../svg/hw/USB/Input_Stage.svg
|
||||||
:align: center
|
:align: center
|
||||||
:alt: Input Stage
|
:alt: Input Stage
|
||||||
|
|
||||||
@@ -68,7 +68,7 @@ The MOSFET on the right effectively translates the rather high DCC voltage to a
|
|||||||
Motor Driver
|
Motor Driver
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_1_0/Motor_Driver.svg
|
.. figure:: ../../../../svg/hw/USB/Motor_Driver.svg
|
||||||
:align: center
|
:align: center
|
||||||
:alt: Motor Driver
|
:alt: Motor Driver
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ The Motor Driver is a special H-Bridge IC that is made for DC motors. To control
|
|||||||
Auxiliary Outputs
|
Auxiliary Outputs
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_1_0/Aux_Outputs.svg
|
.. figure:: ../../../../svg/hw/USB/Aux_Outputs.svg
|
||||||
:align: center
|
:align: center
|
||||||
:alt: Auxiliary Outputs
|
:alt: Auxiliary Outputs
|
||||||
|
|
||||||
@@ -95,7 +95,7 @@ To switch lighter loads, six GPIO soldering pads are connected to GPIO0 to GPIO5
|
|||||||
Microcontroller
|
Microcontroller
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_1_0/Microcontroller.svg
|
.. figure:: ../../../../svg/hw/USB/Microcontroller.svg
|
||||||
:align: center
|
:align: center
|
||||||
:alt: Microcontroller
|
:alt: Microcontroller
|
||||||
|
|
||||||
@@ -106,19 +106,19 @@ The Microcontroller needs a crystal oscillator for its clock. External flash mem
|
|||||||
Complete Schematic
|
Complete Schematic
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_1_0/RP2040-Decoder.svg
|
.. figure:: ../../../../svg/hw/USB/RP2040-Decoder.svg
|
||||||
:align: center
|
:align: center
|
||||||
:alt: Complete Schematic
|
:alt: Complete Schematic
|
||||||
|
|
||||||
Complete Schematic
|
Complete Schematic
|
||||||
|
|
||||||
|
|
||||||
.. _wiring_rev_1_0:
|
.. _wiring_USB:
|
||||||
|
|
||||||
Wiring the Decoder
|
Wiring the Decoder
|
||||||
==============================
|
==============================
|
||||||
|
|
||||||
.. figure:: ../../../../svg/hw/rev_1_0/Wiring_diagram.svg
|
.. figure:: ../../../../svg/hw/USB/Wiring_diagram.svg
|
||||||
:width: 700
|
:width: 700
|
||||||
:alt: Wiring Diagram
|
:alt: Wiring Diagram
|
||||||
:align: center
|
:align: center
|
||||||
@@ -7,7 +7,7 @@ Revision 1.0
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
rev_1_0/hw_description
|
USB/hw_description
|
||||||
|
|
||||||
Revision 0.3
|
Revision 0.3
|
||||||
------------
|
------------
|
||||||
@@ -15,4 +15,4 @@ Revision 0.3
|
|||||||
.. toctree::
|
.. toctree::
|
||||||
:maxdepth: 1
|
:maxdepth: 1
|
||||||
|
|
||||||
rev_0_3/hw_description
|
Legacy/hw_description
|
||||||
@@ -35,7 +35,7 @@ Software files high level overview:
|
|||||||
- Debug logging configuration (via stdio using UART/USB)
|
- Debug logging configuration (via stdio using UART/USB)
|
||||||
- Linked libraries
|
- Linked libraries
|
||||||
|
|
||||||
- **RP2040-Decoder-board-Rev-X_Y.h**
|
- **RP2040-Decoder-board-USB.h / RP2040-Decoder-board-Legacy.h**
|
||||||
|
|
||||||
- Flash Size
|
- Flash Size
|
||||||
- Pin definitions
|
- Pin definitions
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 630 KiB After Width: | Height: | Size: 630 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 521 KiB After Width: | Height: | Size: 521 KiB |
|
Before Width: | Height: | Size: 630 KiB After Width: | Height: | Size: 630 KiB |
|
Before Width: | Height: | Size: 609 KiB After Width: | Height: | Size: 609 KiB |
|
Before Width: | Height: | Size: 630 KiB After Width: | Height: | Size: 630 KiB |
|
Before Width: | Height: | Size: 518 KiB After Width: | Height: | Size: 518 KiB |
|
Before Width: | Height: | Size: 524 KiB After Width: | Height: | Size: 524 KiB |
|
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
|
Before Width: | Height: | Size: 140 KiB After Width: | Height: | Size: 140 KiB |
|
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
|
Before Width: | Height: | Size: 6.9 MiB After Width: | Height: | Size: 6.9 MiB |
|
Before Width: | Height: | Size: 6.8 MiB After Width: | Height: | Size: 6.8 MiB |
|
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.5 MiB |
|
Before Width: | Height: | Size: 1.3 MiB After Width: | Height: | Size: 1.3 MiB |