Skip to content

Commit

Permalink
Update ch32v003fun, fix CI with latest macos14
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgerhardt committed Sep 14, 2024
1 parent 5206a4a commit 20679b4
Show file tree
Hide file tree
Showing 5 changed files with 10,310 additions and 423 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-13]
os: [ubuntu-latest, windows-latest, macos-14]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout PicoRVD
uses: actions/checkout@v3
with:
path: PicoRVD

- name: Checkout pico-sdk/master
- name: Checkout pico-sdk/1.5.1
uses: actions/checkout@v3
with:
repository: raspberrypi/pico-sdk
ref: master
ref: 1.5.1
path: pico-sdk

- name: Checkout pico-sdk submodules
Expand All @@ -35,16 +35,15 @@ jobs:
run: sudo apt-get update && sudo apt-get install -y build-essential git cmake gcc-arm-none-eabi gcc-riscv64-unknown-elf

- name: Install dependencies (Mac)
if: ${{ matrix.os == 'macos-13' }}
if: ${{ matrix.os == 'macos-14' }}
run: |
brew install cmake make
brew tap ArmMbed/homebrew-formulae
brew install arm-none-eabi-gcc
brew install gcc-arm-embedded
brew tap riscv-software-src/riscv
brew install riscv-tools
- name: Build Project (CH32V003 Blinky)
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-13' }}
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-14' }}
working-directory: ${{github.workspace}}/PicoRVD
shell: bash
run: |
Expand All @@ -69,4 +68,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: PicoRVD.uf2
path: ${{github.workspace}}/PicoRVD/bin/picorvd.uf2
path: ${{github.workspace}}/PicoRVD/bin/picorvd.uf2
3 changes: 1 addition & 2 deletions example/blink.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#define SYSTEM_CORE_CLOCK 48000000
#include "ch32v003fun.h"

__attribute__((noinline)) void busywait(int x) {
Expand All @@ -8,7 +7,7 @@ __attribute__((noinline)) void busywait(int x) {

int main()
{
SystemInit48HSI();
SystemInit();

// Enable GPIOD.
RCC->APB2PCENR |= RCC_APB2Periph_GPIOD;
Expand Down
Loading

0 comments on commit 20679b4

Please sign in to comment.