Skip to content

Commit

Permalink
[CH32] build is possible for Nanjing Qinheng Micro CH32V307 target
Browse files Browse the repository at this point in the history
  • Loading branch information
lyusupov committed Jun 19, 2024
1 parent cde6a13 commit 1681f7c
Show file tree
Hide file tree
Showing 9 changed files with 808 additions and 13 deletions.
12 changes: 11 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
'rp2040:rp2040:generic',
'rp2040:rp2040:rpipicow',
'arduino:mbed_rp2040:pico',
'SiliconLabs:silabs:nano_matter'
'SiliconLabs:silabs:nano_matter',
'WCH:ch32v:CH32V30x_EVT'
]

env:
Expand Down Expand Up @@ -416,6 +417,12 @@ jobs:
# arduino-cli board attach -b $BOARD ;
cd $GITHUB_WORKSPACE ;
fi
if [[ "$BOARD" =~ "WCH:ch32v:" ]]; then
arduino --pref "boardsmanager.additional.urls=https://github.com/openwch/board_manager_files/raw/main/package_ch32v_index.json" --save-prefs ;
arduino --install-boards WCH:ch32v:1.0.4 ;
arduino --board $BOARD --save-prefs ;
cd $GITHUB_WORKSPACE ;
fi
- name: Run script
run: |
Expand Down Expand Up @@ -504,3 +511,6 @@ jobs:
if [[ "$BOARD" =~ "SiliconLabs:silabs:" ]]; then
arduino-cli compile -v -b "$BOARD" $PWD/software/firmware/source/SoftRF ;
fi ;
#if [[ "$BOARD" =~ "WCH:ch32v:" ]]; then
# arduino --verify --verbose-build --board $BOARD $PWD/software/firmware/source/SoftRF/SoftRF.ino ;
#fi ;
3 changes: 2 additions & 1 deletion software/firmware/source/SoftRF/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ PLAT_CPPS := $(PLATFORM_PATH)/ESP8266.cpp \
$(PLATFORM_PATH)/ASR66.cpp \
$(PLATFORM_PATH)/RP2040.cpp \
$(PLATFORM_PATH)/RA4M1.cpp \
$(PLATFORM_PATH)/EFR32.cpp
$(PLATFORM_PATH)/EFR32.cpp \
$(PLATFORM_PATH)/CH32.cpp

DRV_CPPS := $(DRIVER_PATH)/RF.cpp \
$(DRIVER_PATH)/radio/nordic.cpp \
Expand Down
Loading

0 comments on commit 1681f7c

Please sign in to comment.